ADD: cuda PSI package

This commit is contained in:
2024-07-25 09:01:53 +02:00
parent 9f104ef945
commit a3cd601e79

18
packages/cuda/package.py Normal file
View File

@ -0,0 +1,18 @@
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
from spack.pkg.builtin.cuda import Cuda as SpackCuda
class Cuda(SpackCuda):
def setup_run_environment(self, env):
super().setup_run_environment(self, env)
if '%nvhpc' in self.spec:
env.prepend_path("LD_LIBRARY_PATH", self.prefix.lib64)
env.prepend_path("LD_LIBRARY_PATH", join_path(self.prefix, '../math_libs/lib64'))