Add Caliper variant in hypre package (#38651)
This commit is contained in:
		| @@ -75,6 +75,7 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage): | |||||||
|     variant("gptune", default=False, description="Add the GPTune hookup code") |     variant("gptune", default=False, description="Add the GPTune hookup code") | ||||||
|     variant("umpire", default=False, description="Enable Umpire support") |     variant("umpire", default=False, description="Enable Umpire support") | ||||||
|     variant("sycl", default=False, description="Enable SYCL support") |     variant("sycl", default=False, description="Enable SYCL support") | ||||||
|  |     variant("caliper", default=False, description="Enable Caliper support") | ||||||
| 
 | 
 | ||||||
|     # Patch to add gptune hookup codes |     # Patch to add gptune hookup codes | ||||||
|     patch("ij_gptune.patch", when="+gptune@2.19.0") |     patch("ij_gptune.patch", when="+gptune@2.19.0") | ||||||
| @@ -104,6 +105,8 @@ def patch(self):  # fix sequential compilation in 'src/seq_mv' | |||||||
|     depends_on("rocrand", when="+rocm") |     depends_on("rocrand", when="+rocm") | ||||||
|     depends_on("rocprim", when="+rocm") |     depends_on("rocprim", when="+rocm") | ||||||
|     depends_on("umpire", when="+umpire") |     depends_on("umpire", when="+umpire") | ||||||
|  |     depends_on("caliper", when="+caliper") | ||||||
|  | 
 | ||||||
|     for sm_ in CudaPackage.cuda_arch_values: |     for sm_ in CudaPackage.cuda_arch_values: | ||||||
|         depends_on( |         depends_on( | ||||||
|             "umpire+cuda cuda_arch={0}".format(sm_), when="+umpire+cuda cuda_arch={0}".format(sm_) |             "umpire+cuda cuda_arch={0}".format(sm_), when="+umpire+cuda cuda_arch={0}".format(sm_) | ||||||
| @@ -217,6 +220,11 @@ def configure_args(self): | |||||||
|             else: |             else: | ||||||
|                 configure_args.append("--with-umpire") |                 configure_args.append("--with-umpire") | ||||||
| 
 | 
 | ||||||
|  |         if "+caliper" in spec: | ||||||
|  |             configure_args.append("--with-caliper") | ||||||
|  |             configure_args.append("--with-caliper-include=%s" % spec["caliper"].prefix.include) | ||||||
|  |             configure_args.append("--with-caliper-lib=%s" % spec["caliper"].libs) | ||||||
|  | 
 | ||||||
|         configure_args.extend(self.enable_or_disable("debug")) |         configure_args.extend(self.enable_or_disable("debug")) | ||||||
| 
 | 
 | ||||||
|         if "+cuda" in spec: |         if "+cuda" in spec: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Boehme
					David Boehme