Changeset 4055 in CLRX


Ignore:
Timestamp:
May 1, 2018, 6:57:31 AM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: Fixed automatic opencl detection for AMDGPU-PRO without system OpenCL headers but with AMDGPU-PRO OpenCL headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3891 r4055  
    302302            SET(OPENCL_LIBRARY_DIRS "/opt/amdgpu-pro/lib/i386-linux-gnu")
    303303        ENDIF(HAVE_64BIT)
     304        IF(NOT EXISTS /usr/include/CL/cl.h)
     305            SET(OPENCL_INCLUDE_DIRS "/opt/amdgpu-pro/include")
     306        ENDIF(NOT EXISTS /usr/include/CL/cl.h)
    304307    ENDIF(HAVE_GPUPRO_NEW)
    305308    IF(HAVE_GPUPRO_SLES)
     
    309312            SET(OPENCL_LIBRARY_DIRS "/opt/amdgpu-pro/lib")
    310313        ENDIF(HAVE_64BIT)
     314        IF(NOT EXISTS /usr/include/CL/cl.h)
     315            SET(OPENCL_INCLUDE_DIRS "/opt/amdgpu-pro/include")
     316        ENDIF(NOT EXISTS /usr/include/CL/cl.h)
    311317    ENDIF(HAVE_GPUPRO_SLES)
    312318ENDIF(HAVE_OPENCL)
Note: See TracChangeset for help on using the changeset viewer.