nvpl-lapack: fix versioning and add missing dependency (#42599)
* fix wrong versioning use doc version and not the one extrapolated from the path (i.e. 0.2.0.1) * nvpl-lapack requires nvpl-blas propagate matching variants to nvpl-blas dependency Co-authored-by: albestro <albestro@users.noreply.github.com>
This commit is contained in:
		 Alberto Invernizzi
					Alberto Invernizzi
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							2e5bdd2679
						
					
				
				
					commit
					6dbb56ba36
				
			| @@ -22,21 +22,29 @@ class NvplLapack(Package): | |||||||
| 
 | 
 | ||||||
|     license("UNKNOWN") |     license("UNKNOWN") | ||||||
| 
 | 
 | ||||||
|     version("0.1.0", sha256="7054f775b18916ee662c94ad7682ace53debbe8ee36fa926000fe412961edb0b") |     version("0.2.0", sha256="7054f775b18916ee662c94ad7682ace53debbe8ee36fa926000fe412961edb0b") | ||||||
| 
 | 
 | ||||||
|     provides("lapack") |     provides("lapack") | ||||||
| 
 | 
 | ||||||
|     variant("ilp64", default=False, description="Force 64-bit Fortran native integers") |     variant("ilp64", default=False, description="Force 64-bit Fortran native integers") | ||||||
|  | 
 | ||||||
|  |     threadings = ("openmp", "none") | ||||||
|     variant( |     variant( | ||||||
|         "threads", |         "threads", | ||||||
|         default="none", |         default="none", | ||||||
|         description="Multithreading support", |         description="Multithreading support", | ||||||
|         values=("openmp", "none"), |         values=threadings, | ||||||
|         multi=False, |         multi=False, | ||||||
|     ) |     ) | ||||||
| 
 | 
 | ||||||
|     requires("target=armv8.2a:", msg="Any CPU with Arm-v8.2a+ microarch") |     requires("target=armv8.2a:", msg="Any CPU with Arm-v8.2a+ microarch") | ||||||
| 
 | 
 | ||||||
|  |     # propagate variants for depends_on("nvpl-blas") | ||||||
|  |     depends_on("nvpl-blas +ilp64", when="+ilp64") | ||||||
|  |     depends_on("nvpl-blas ~ilp64", when="~ilp64") | ||||||
|  |     for threads in threadings: | ||||||
|  |         depends_on(f"nvpl-blas threads={threads}", when=f"threads={threads}") | ||||||
|  | 
 | ||||||
|     conflicts("%gcc@:7") |     conflicts("%gcc@:7") | ||||||
|     conflicts("%clang@:13") |     conflicts("%clang@:13") | ||||||
| 
 | 
 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user