Fix syntax

This commit is contained in:
Adrien M. BERNEDE 2025-03-27 17:59:12 +01:00
parent f82dead7cc
commit f7204385f9
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import socket
import sys
from spack.package import *

View File

@ -2,6 +2,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
@ -112,7 +114,7 @@ def cmake_args(self):
options.append(self.define_from_variant("ENABLE_HIP", "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))
# there is only one dir like this, but the version component is unknown