@@ -18,6 +18,7 @@ class Apex(CMakePackage):
1818
1919 version ("develop" , branch = "develop" )
2020 version ("master" , branch = "master" )
21+ version ("2.7.1" , sha256 = "5a31f5d790908e3b266e85abd03ea6affef8001c1276f8b883a55fda7a213aae" )
2122 version ("2.7.0" , sha256 = "81cd7e8dbea35cec2360d6404e20f7527f66410614f06a73c8c782ac2cfdb0b0" )
2223 version ("2.6.5" , sha256 = "2ba29a1198c904ac209fc6bc02962304a1416443b249f34ef96889aff39644ce" )
2324 version ("2.6.4" , sha256 = "281a673f447762a488577beaa60e48d88cb6354f220457cf8f05c1de2e1fce70" )
@@ -97,13 +98,15 @@ class Apex(CMakePackage):
9798 variant ("lmsensors" , default = False , description = "Enables LM-Sensors support" )
9899 variant ("mpi" , default = False , description = "Enables MPI support" )
99100 variant ("starpu" , default = False , description = "Enables StarPU support" )
101+ variant ("opencl" , default = False , description = "Enables OpenCL support" , when = "@2.7:" )
100102 variant ("tests" , default = False , description = "Build Unit Tests" )
101103 variant ("examples" , default = False , description = "Build Examples" )
102104
103105 # Dependencies
104106 depends_on ("zlib-api" )
105107 depends_on ("cmake@3.10.0:" , type = "build" )
106- depends_on ("kokkos" , type = "build" , when = "+kokkos" )
108+ depends_on ("cmake@3.20.1:" , type = "build" , when = "@2.6.2:" )
109+ depends_on ("kokkos+pic+tuning" , type = "build" , when = "+kokkos" )
107110 depends_on ("binutils@2.33:+libiberty+headers" , when = "+binutils" )
108111 depends_on ("gettext" , when = "+binutils ^binutils+nls" )
109112 depends_on ("activeharmony@4.6:" , when = "+activeharmony" )
@@ -135,6 +138,9 @@ class Apex(CMakePackage):
135138 # https://github.com/UO-OACISS/apex/issues/180.
136139 conflicts ("~kokkos" , when = "@:2.6.5" )
137140
141+ # Disable OpenCL when using SYCL support
142+ conflicts ("+opencl" , when = "+sycl" )
143+
138144 # Patches
139145
140146 # This patch ensures that the missing dependency_tree.hpp header is
@@ -156,6 +162,7 @@ def cmake_args(self):
156162 args .append (self .define_from_variant ("APEX_WITH_CUDA" , "cuda" ))
157163 args .append (self .define_from_variant ("APEX_WITH_HIP" , "hip" ))
158164 args .append (self .define_from_variant ("APEX_WITH_LEVEL0" , "sycl" ))
165+ args .append (self .define_from_variant ("APEX_WITH_OPENCL" , "opencl" ))
159166 args .append (self .define_from_variant (prefix + "_MPI" , "mpi" ))
160167 args .append (self .define_from_variant (prefix + "_OMPT" , "openmp" ))
161168 args .append (self .define_from_variant (prefix + "_OTF2" , "otf2" ))
0 commit comments