summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorafzpatel <122491982+afzpatel@users.noreply.github.com>2024-03-27 16:06:55 -0400
committerGitHub <noreply@github.com>2024-03-27 13:06:55 -0700
commit32deca2a4ce0f05b44d67a09887434fc8057a5fa (patch)
tree2e2d599a82b8fabc829f7b878d6844e866191c26
parente4c64865f1f3b7c9148b8059ac6bd822e0f86da2 (diff)
downloadspack-32deca2a4ce0f05b44d67a09887434fc8057a5fa.tar.gz
spack-32deca2a4ce0f05b44d67a09887434fc8057a5fa.tar.bz2
spack-32deca2a4ce0f05b44d67a09887434fc8057a5fa.tar.xz
spack-32deca2a4ce0f05b44d67a09887434fc8057a5fa.zip
initial commit to add check function to rocthrust (#43405)
-rw-r--r--var/spack/repos/builtin/packages/rocthrust/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rocthrust/package.py b/var/spack/repos/builtin/packages/rocthrust/package.py
index 229724dc88..1a198d61eb 100644
--- a/var/spack/repos/builtin/packages/rocthrust/package.py
+++ b/var/spack/repos/builtin/packages/rocthrust/package.py
@@ -74,6 +74,10 @@ class Rocthrust(CMakePackage):
depends_on(f"rocprim@{ver}", when=f"@{ver}")
depends_on(f"rocm-cmake@{ver}:", type="build", when=f"@{ver}")
+ def check(self):
+ with working_dir(self.builder.build_directory):
+ make("test")
+
def setup_build_environment(self, env):
env.set("CXX", self.spec["hip"].hipcc)