Fix syntax
This commit is contained in:
parent
f82dead7cc
commit
f7204385f9
@ -3,6 +3,7 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
|
||||||
@ -112,7 +114,7 @@ def cmake_args(self):
|
|||||||
|
|
||||||
options.append(self.define_from_variant("ENABLE_HIP", "rocm"))
|
options.append(self.define_from_variant("ENABLE_HIP", "rocm"))
|
||||||
if spec.satisfies("+rocm"):
|
if spec.satisfies("+rocm"):
|
||||||
rocm_root = dirname(spec["llvm-amdgpu"].prefix)
|
rocm_root = os.path.dirname(spec["llvm-amdgpu"].prefix)
|
||||||
options.append("-DROCM_PATH={0}".format(rocm_root))
|
options.append("-DROCM_PATH={0}".format(rocm_root))
|
||||||
|
|
||||||
# there is only one dir like this, but the version component is unknown
|
# there is only one dir like this, but the version component is unknown
|
||||||
|
Loading…
Reference in New Issue
Block a user