nccl-tests: respect cuda_arch variant during build (#21995)
This commit is contained in:
parent
f957f1936c
commit
f2f58b70b1
@ -31,6 +31,11 @@ def build_targets(self):
|
||||
targets.append('MPI=1')
|
||||
return targets
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
cuda_arch = self.spec.variants["cuda_arch"].value
|
||||
cuda_gencode = " ".join(self.cuda_flags(cuda_arch))
|
||||
env.set("NVCC_GENCODE", cuda_gencode)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
mkdirp(prefix.bin)
|
||||
install_tree('./build', prefix.bin)
|
||||
|
Loading…
Reference in New Issue
Block a user