0026460: Implicit cast to TopoDS_Shape compilation error due to ambiguous conversion
[occt.git] / adm / cmake / opencl.cmake
CommitLineData
9f33b387 1#OpenCl
2
3SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_HEADER $ENV{AMDAPPSDKROOT}/include
4 $ENV{INTELOCLSDKROOT}/include
5 $ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/inc
6 $ENV{ATISTREAMSDKROOT}/include)
7
8
9IF(${COMPILER_BITNESS} STREQUAL 32)
10 SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_LIB $ENV{AMDAPPSDKROOT}/lib/x86
11 $ENV{INTELOCLSDKROOT}/lib/x86
12 $ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/lib/Win32
13 $ENV{ATISTREAMSDKROOT}/lib/x86)
14ELSEIF(${COMPILER_BITNESS} STREQUAL 64)
15 SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_LIB $ENV{AMDAPPSDKROOT}/lib/x86_64
16 $ENV{INTELOCLSDKROOT}/lib/x64
17 $ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/lib/x64
18 $ENV{ATISTREAMSDKROOT}/lib/x86_64)
19ENDIF()
20
21THIRDPARTY_PRODUCT("OPENCL" "CL/cl.h" "OpenCL" "OpenCLd")
22
23# if CL/cl.h isn't found (and 3RDPARTY_OPENCL_INCLUDE_DIR isn't defined)
24# then try to find OpenCL/cl.h (all other variable won't be changed)
25IF(NOT 3RDPARTY_OPENCL_INCLUDE_DIR OR NOT EXISTS "${3RDPARTY_OPENCL_INCLUDE_DIR}")
26 THIRDPARTY_PRODUCT("OPENCL" "OpenCL/cl.h" "OpenCL" "OpenCLd")
27ENDIF()