gdrcopy: specify CUDA envvar during build (#45415)

otherwise /usr/local/cuda is used
This commit is contained in:
Andrew W Elble 2024-08-06 02:32:31 -04:00 committed by GitHub
parent 16a2a5047c
commit fa38dd9386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,9 @@ class Gdrcopy(MakefilePackage, CudaPackage):
depends_on("check")
requires("+cuda")
def setup_build_environment(self, env):
env.set("CUDA", self.spec["cuda"].prefix)
def build(self, spec, prefix):
make("lib")
make("exes")