Skip to content

Commit

Permalink
MIOpen-hip , RocFFT packages: fix miopendriver failure and build fail…
Browse files Browse the repository at this point in the history
…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
srekolam authored Aug 7, 2024
1 parent 470a26b commit ca9a7b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions var/spack/repos/builtin/packages/miopen-hip/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions var/spack/repos/builtin/packages/rocfft/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca9a7b2

Please sign in to comment.