Changeset 2491 in CLRX


Ignore:
Timestamp:
Oct 5, 2016, 9:55:19 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Fixed detection for AMGPU-PRO driver.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/Config.h.in

    r1905 r2491  
    3535#cmakedefine HAVE_INT128
    3636
     37#cmakedefine HAVE_UBUNTU_GPUPRO
     38
    3739/* architecture setup */
    3840
     
    135137#  define DEFAULT_AMDOCLPATH "/usr/lib/libamdocl32.so"
    136138#  else
    137 #  define DEFAULT_AMDOCLPATH "/usr/lib64/libamdocl64.so"
     139#    ifdef HAVE_UBUNTU_GPUPRO
     140#    define DEFAULT_AMDOCLPATH "/usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl64.so"
     141#    else
     142#    define DEFAULT_AMDOCLPATH "/usr/lib64/libamdocl64.so"
     143#    endif
    138144#  endif
    139145
  • CLRadeonExtender/trunk/CMakeLists.txt

    r2431 r2491  
    116116ENDIF(BUILD_32BIT)
    117117
     118IF(IS_DIRECTORY "/usr/lib/x86_64-linux-gnu/amdgpu-pro")
     119SET(HAVE_UBUNTU_GPUPRO TRUE)
     120MESSAGE(STATUS "AMDGPU-PRO for Ubuntu is found")
     121ENDIF(IS_DIRECTORY "/usr/lib/x86_64-linux-gnu/amdgpu-pro")
     122
    118123IF("${PROJECT_SOURCE_DIR}" MATCHES "${PROJECT_BINARY_DIR}")
    119124    MESSAGE("Please do an out-of-tree build:")
Note: See TracChangeset for help on using the changeset viewer.