Skip to content

Commit d1abcd8

Browse files
Vedran Miletićal42and
Vedran Miletić
authored andcommittedOct 23, 2024
Added missing version define for OpenCL
1 parent edcbc0e commit d1abcd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎cmake/gmxManageOpenCL.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ elseif(NOT GMX_GPU_FFT_CLFFT)
7474
endif()
7575

7676
add_definitions(${OpenCL_DEFINITIONS})
77+
math(EXPR REQUIRED_OPENCL_MIN_VERSION_DEF "100 * ${REQUIRED_OPENCL_MIN_VERSION_MAJOR} + 10 * ${REQUIRED_OPENCL_MIN_VERSION_MINOR}" OUTPUT_FORMAT DECIMAL)
78+
add_definitions("-DCL_TARGET_OPENCL_VERSION=${REQUIRED_OPENCL_MIN_VERSION_DEF}")
7779

7880
include_directories(SYSTEM ${OpenCL_INCLUDE_DIRS})
7981

0 commit comments

Comments
 (0)
Please sign in to comment.