initial commit to add check function to rocthrust (#43405)

This commit is contained in:
afzpatel 2024-03-27 16:06:55 -04:00 committed by GitHub
parent e4c64865f1
commit 32deca2a4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,6 +74,10 @@ class Rocthrust(CMakePackage):
depends_on(f"rocprim@{ver}", when=f"@{ver}") depends_on(f"rocprim@{ver}", when=f"@{ver}")
depends_on(f"rocm-cmake@{ver}:", type="build", 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): def setup_build_environment(self, env):
env.set("CXX", self.spec["hip"].hipcc) env.set("CXX", self.spec["hip"].hipcc)