Updating rvs binary path. (#40604)
* Updating rvs binary path * Updating spec check as per the recommendation
This commit is contained in:
		 renjithravindrankannath
					renjithravindrankannath
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							95558d67ae
						
					
				
				
					commit
					50f25964cf
				
			| @@ -179,14 +179,18 @@ def setup_build_environment(self, build_env): | |||||||
|         depends_on("hip-rocclr@" + ver, when="@" + ver) |         depends_on("hip-rocclr@" + ver, when="@" + ver) | ||||||
| 
 | 
 | ||||||
|     def patch(self): |     def patch(self): | ||||||
|         if "@4.5.0:5.1" in self.spec: |         if self.spec.satisfies("@4.5:5.1"): | ||||||
|             filter_file( |             filter_file( | ||||||
|                 "@ROCM_PATH@/rvs", self.spec.prefix.rvs, "rvs/conf/deviceid.sh.in", string=True |                 "@ROCM_PATH@/rvs", self.spec.prefix.rvs, "rvs/conf/deviceid.sh.in", string=True | ||||||
|             ) |             ) | ||||||
|         elif "@5.2.0:" in self.spec: |         elif self.spec.satisfies("@5.2:5.4"): | ||||||
|             filter_file( |             filter_file( | ||||||
|                 "@ROCM_PATH@/bin", self.spec.prefix.bin, "rvs/conf/deviceid.sh.in", string=True |                 "@ROCM_PATH@/bin", self.spec.prefix.bin, "rvs/conf/deviceid.sh.in", string=True | ||||||
|             ) |             ) | ||||||
|  |         elif self.spec.satisfies("@5.5:"): | ||||||
|  |             filter_file( | ||||||
|  |                 "@ROCM_PATH@/rvs", self.spec.prefix.rvs, "rvs/conf/deviceid.sh.in", string=True | ||||||
|  |             ) | ||||||
| 
 | 
 | ||||||
|     def cmake_args(self): |     def cmake_args(self): | ||||||
|         args = [ |         args = [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user