initial commit to add check function to rocthrust (#43405)
This commit is contained in:
parent
e4c64865f1
commit
32deca2a4c
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue