forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIOpen-hip , RocFFT packages: fix miopendriver failure and build fail…
…ure with centos-8 os (spack#45429) * MIOpen-hip package: fix miopendriver failure with centos-8 os * fix the centos-8 build error with lstdc++
- Loading branch information
Showing
2 changed files
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,8 @@ class MiopenHip(CMakePackage): | |
def setup_build_environment(self, env): | ||
lib_dir = self.spec["zlib-api"].libs.directories[0] | ||
env.prepend_path("LIBRARY_PATH", lib_dir) | ||
if self.spec.satisfies("%[email protected]:8.9") and self.spec.satisfies("@6.1:"): | ||
env.append_flags("LDFLAGS", "-lstdc++fs") | ||
|
||
def get_bitcode_dir(self): | ||
return self.spec["llvm-amdgpu"].prefix.amdgcn.bitcode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,8 @@ class Rocfft(CMakePackage): | |
|
||
def setup_build_environment(self, env): | ||
env.set("CXX", self.spec["hip"].hipcc) | ||
if self.spec.satisfies("%[email protected]:8.9") and self.spec.satisfies("@6.1:"): | ||
env.append_flags("LDFLAGS", "-lstdc++fs") | ||
|
||
@run_after("build") | ||
@on_package_attributes(run_tests=True) | ||
|