-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup tests / update submodule (#140)
* revert: change matrix size in test * Fixed the wrong results bug in the GPU backend. * add tiled-mm recipe to local repo * tiled-mm 2.3.1 --------- Co-authored-by: Marko Kabic <[email protected]>
- Loading branch information
1 parent
236d584
commit 09fc581
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Tiled-MM
updated
3 files
+1 −1 | CMakeLists.txt | |
+4 −4 | src/Tiled-MM/tiled_mm.cpp | |
+13 −1 | tests/test-multiply.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.package import * | ||
|
||
|
||
class TiledMm(CMakePackage, CudaPackage, ROCmPackage): | ||
"""Matrix multiplication on GPUs for matrices stored on a CPU. Similar to cublasXt, | ||
but ported to both NVIDIA and AMD GPUs.""" | ||
|
||
homepage = "https://github.com/eth-cscs/Tiled-MM/" | ||
url = "https://github.com/eth-cscs/Tiled-MM/archive/refs/tags/v2.0.tar.gz" | ||
git = "https://github.com/eth-cscs/Tiled-MM.git" | ||
|
||
maintainers("mtaillefumier", "simonpintarelli", "RMeli") | ||
|
||
license("BSD-3-Clause") | ||
|
||
version("master", branch="master") | ||
|
||
version("2.3.1", sha256="68914a483e62f796b790ea428210b1d5ef5943d6289e53d1aa62f56a20fbccc8") | ||
version("2.3", sha256="504c6201f5a9be9741c55036bf8e2656ae3f4bc19996295b264ee5e303c9253c") | ||
version("2.2", sha256="6d0b49c9588ece744166822fd44a7bc5bec3dc666b836de8bf4bf1a7bb675aac") | ||
version("2.0", sha256="ea554aea8c53d7c8e40044e6d478c0e8137d7e8b09d7cb9650703430d92cf32e") | ||
|
||
variant("shared", default=True, description="Build shared libraries") | ||
variant("examples", default=False, description="Enable examples") | ||
variant("tests", default=False, description="Enable tests") | ||
|
||
depends_on("rocblas", when="+rocm") | ||
depends_on("cxxopts", when="+tests") | ||
depends_on("cxxopts", when="+examples") | ||
|
||
conflicts("~cuda~rocm") | ||
conflicts("+cuda", when="+rocm") | ||
|
||
def cmake_args(self): | ||
args = [ | ||
self.define_from_variant("BUILD_SHARED_LIBS", "shared"), | ||
self.define_from_variant("TILEDMM_WITH_EXAMPLES", "examples"), | ||
self.define_from_variant("TILEDMM_WITH_TESTS", "tests"), | ||
] | ||
|
||
if "+rocm" in self.spec: | ||
args.extend([self.define("TILEDMM_GPU_BACKEND", "ROCM")]) | ||
|
||
if "+cuda" in self.spec: | ||
args.extend([self.define("TILEDMM_GPU_BACKEND", "CUDA")]) | ||
|
||
return args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters