Name change of setting to NETLIB_PERSISTENT_OPENCL

pull/310/head
Cedric Nugteren 2018-08-07 22:41:06 +02:00
parent fe639455bd
commit 9d9f09fce9
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
Development (next version)
- Added support for shuffle instructions for NVIDIA GPUs (thanks to 'tyler-utah')
- Added an option to compile the Netlib API with static OpenCL device and context (-DNETLIB_STATIC_OPENCL=ON)
- Added an option to compile the Netlib API with static OpenCL device and context (-DNETLIB_PERSISTENT_OPENCL=ON)
- The tuners now check beforehand on invalid local thread sizes and skip those completely
- Fixed an issue with conjugate transpose not being executed in certain cases for a.o. XOMATCOPY
- Fixed an issue with AMD GPUs and the new GEMMK == 1 kernel

View File

@ -36,12 +36,12 @@ option(CUBLAS "Enables performance comparison against cuBLAS on NVIDIA GPUs" OFF
# The optional Netlib API for CLBlast
option(NETLIB "Enable compilation of the CBLAS Netlib API" OFF)
option(NETLIB_STATIC_OPENCL "Makes OpenCL device and context in the CBLAS Netlib API static" OFF)
option(NETLIB_PERSISTENT_OPENCL "Makes OpenCL device and context in the CBLAS Netlib API static" OFF)
if(NETLIB)
message("-- Building the Netlib API of CLBlast")
if(NETLIB_STATIC_OPENCL)
if(NETLIB_PERSISTENT_OPENCL)
message(" ^^ while using static variables for OpenCL device and context")
add_definitions(-DNETLIB_STATIC_OPENCL)
add_definitions(-DNETLIB_PERSISTENT_OPENCL)
endif()
endif()

View File

@ -25,7 +25,7 @@ using double2 = clblast::double2;
// Option to make OpenCL device and context static to avoid re-creation upon multiple calls to the
// Netlib API. Disadvantage is that they are not cleaned-up until program termination.
#ifdef NETLIB_STATIC_OPENCL
#ifdef NETLIB_PERSISTENT_OPENCL
#define OPTIONAL_STATIC static
#else
#define OPTIONAL_STATIC