Skip to content

Commit

Permalink
Adding first half of OpenCL host API
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 18, 2024
1 parent 9e89c38 commit a53a864
Show file tree
Hide file tree
Showing 3 changed files with 1,254 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,10 @@ endif()

find_package(OpenMP)
find_package(OpenACC)
if(APEX_WITH_OPENCL)
find_package(OpenCL)
endif(APEX_WITH_OPENCL)

if(OpenACC_CXX_FOUND)
find_package(OpenACCProfiling)
endif()
Expand Down Expand Up @@ -1240,6 +1244,7 @@ dump_cmake_variables("^PAPI")
dump_cmake_variables("^STARPU")
dump_cmake_variables("^PHIPROF")
dump_cmake_variables("^HWLOC")
dump_cmake_variables("^OpenCL")
dump_defines()
MESSAGE(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
MESSAGE(STATUS "Libraries: " ${LIBS})
Expand Down
7 changes: 7 additions & 0 deletions src/apex/CMakeLists_standalone.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ if (OpenACC_CXX_FOUND AND OpenACCProfiling_FOUND)
set(OpenACC_SOURCE apex_openacc.cpp)
endif (OpenACC_CXX_FOUND AND OpenACCProfiling_FOUND)

if (OpenCL_FOUND)
set(OpenCL_SOURCE apex_opencl.cpp)
include_directories(${OpenCL_INCLUDE_DIR})
add_definitions(-DCL_TARGET_OPENCL_VERSION=${OpenCL_VERSION_MAJOR}${OpenCL_VERSION_MINOR}0)
endif (OpenCL_FOUND)

if (APEX_WITH_RAJA AND RAJA_FOUND)
set(RAJA_SOURCE apex_raja.cpp)
endif (APEX_WITH_RAJA AND RAJA_FOUND)
Expand Down Expand Up @@ -79,6 +85,7 @@ event_filter.cpp
apex_policies.cpp
${bfd_SOURCE}
${OpenACC_SOURCE}
${OpenCL_SOURCE}
${RAJA_SOURCE}
${STARPU_SOURCE}
${PHIPROF_SOURCE}
Expand Down
Loading

0 comments on commit a53a864

Please sign in to comment.