MIOpen-hip , RocFFT packages: fix miopendriver failure and build failure with centos-8 os (#45429)
* MIOpen-hip package: fix miopendriver failure with centos-8 os * fix the centos-8 build error with lstdc++
This commit is contained in:
		 Sreenivasa Murthy Kolam
					Sreenivasa Murthy Kolam
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							470a26bbcd
						
					
				
				
					commit
					ca9a7b2033
				
			| @@ -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("%gcc@8.0: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 | ||||
|   | ||||
| @@ -104,6 +104,8 @@ class Rocfft(CMakePackage): | ||||
| 
 | ||||
|     def setup_build_environment(self, env): | ||||
|         env.set("CXX", self.spec["hip"].hipcc) | ||||
|         if self.spec.satisfies("%gcc@8.0:8.9") and self.spec.satisfies("@6.1:"): | ||||
|             env.append_flags("LDFLAGS", "-lstdc++fs") | ||||
| 
 | ||||
|     @run_after("build") | ||||
|     @on_package_attributes(run_tests=True) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user