Improve cmakefile when GT-Pin headers are absent

Change-Id: Ib947a3deee6dfb834476ac159c51a596ecc32530
This commit is contained in:
Napiatek, Henryk J
2017-12-21 10:28:37 +01:00
committed by sys_ocldev
parent 6f51da22d9
commit 1e78649540
3 changed files with 183 additions and 5 deletions

View File

@@ -746,11 +746,13 @@ if(NOT GMMUMD_LIB_NAME)
endif()
target_link_libraries(${NEO_STATIC_LIB_NAME} ${GMMUMD_LIB_NAME})
if( "${IGDRCL_OPTION__BITS}" STREQUAL "32" )
set( DEF_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/OpenCLExports32.def" )
else( "${IGDRCL_OPTION__BITS}" STREQUAL "32" )
set( DEF_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/OpenCLExports64.def" )
endif( "${IGDRCL_OPTION__BITS}" STREQUAL "32" )
if(WIN32)
if(GTPIN_HEADERS_DIR)
set( DEF_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/GTPinExports${IGDRCL_OPTION__BITS}.def" )
else(GTPIN_HEADERS_DIR)
set( DEF_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/OpenCLExports${IGDRCL_OPTION__BITS}.def" )
endif(GTPIN_HEADERS_DIR)
endif(WIN32)
list(APPEND LIB_FLAGS_DEFINITIONS -DCIF_HEADERS_ONLY_BUILD ${SUPPORTED_GEN_FLAGS_DEFINITONS})

View File

@@ -0,0 +1,88 @@
; Copyright (c) 2017, Intel Corporation
;
; Permission is hereby granted, free of charge, to any person obtaining a
; copy of this software and associated documentation files (the "Software"),
; to deal in the Software without restriction, including without limitation
; the rights to use, copy, modify, merge, publish, distribute, sublicense,
; and/or sell copies of the Software, and to permit persons to whom the
; Software is furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included
; in all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
; OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
; OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
; ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
; OTHER DEALINGS IN THE SOFTWARE.
LIBRARY "igdrcl32"
EXPORTS
clGetPlatformIDs
clGetPlatformInfo
clGetDeviceIDs
clGetDeviceInfo
clCreateContext
clCreateContextFromType
clRetainContext
clReleaseContext
clGetContextInfo
clCreateCommandQueue
clRetainCommandQueue
clReleaseCommandQueue
clGetCommandQueueInfo
clCreateBuffer
clCreateImage2D
clCreateImage3D
clRetainMemObject
clReleaseMemObject
clGetSupportedImageFormats
clGetMemObjectInfo
clGetImageInfo
clCreateSampler
clRetainSampler
clReleaseSampler
clGetSamplerInfo
clCreateProgramWithSource
clCreateProgramWithBinary
clRetainProgram
clReleaseProgram
clBuildProgram
clGetProgramInfo
clGetProgramBuildInfo
clCreateKernel
clCreateKernelsInProgram
clRetainKernel
clReleaseKernel
clSetKernelArg
clGetKernelInfo
clGetKernelSubGroupInfoKHR
clGetKernelWorkGroupInfo
clWaitForEvents
clGetEventInfo
clRetainEvent
clReleaseEvent
clGetEventProfilingInfo
clFlush
clFinish
clEnqueueReadBuffer
clEnqueueWriteBuffer
clEnqueueCopyBuffer
clEnqueueReadImage
clEnqueueWriteImage
clEnqueueCopyImage
clEnqueueCopyImageToBuffer
clEnqueueCopyBufferToImage
clEnqueueMapBuffer
clEnqueueMapImage
clEnqueueUnmapMemObject
clEnqueueNDRangeKernel
clEnqueueTask
clEnqueueNativeKernel
clEnqueueMarker
clEnqueueWaitForEvents
clEnqueueBarrier
clGetExtensionFunctionAddress
GTPin_Init

View File

@@ -0,0 +1,88 @@
; Copyright (c) 2017, Intel Corporation
;
; Permission is hereby granted, free of charge, to any person obtaining a
; copy of this software and associated documentation files (the "Software"),
; to deal in the Software without restriction, including without limitation
; the rights to use, copy, modify, merge, publish, distribute, sublicense,
; and/or sell copies of the Software, and to permit persons to whom the
; Software is furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included
; in all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
; OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
; OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
; ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
; OTHER DEALINGS IN THE SOFTWARE.
LIBRARY "igdrcl64"
EXPORTS
clGetPlatformIDs
clGetPlatformInfo
clGetDeviceIDs
clGetDeviceInfo
clCreateContext
clCreateContextFromType
clRetainContext
clReleaseContext
clGetContextInfo
clCreateCommandQueue
clRetainCommandQueue
clReleaseCommandQueue
clGetCommandQueueInfo
clCreateBuffer
clCreateImage2D
clCreateImage3D
clRetainMemObject
clReleaseMemObject
clGetSupportedImageFormats
clGetMemObjectInfo
clGetImageInfo
clCreateSampler
clRetainSampler
clReleaseSampler
clGetSamplerInfo
clCreateProgramWithSource
clCreateProgramWithBinary
clRetainProgram
clReleaseProgram
clBuildProgram
clGetProgramInfo
clGetProgramBuildInfo
clCreateKernel
clCreateKernelsInProgram
clRetainKernel
clReleaseKernel
clSetKernelArg
clGetKernelInfo
clGetKernelSubGroupInfoKHR
clGetKernelWorkGroupInfo
clWaitForEvents
clGetEventInfo
clRetainEvent
clReleaseEvent
clGetEventProfilingInfo
clFlush
clFinish
clEnqueueReadBuffer
clEnqueueWriteBuffer
clEnqueueCopyBuffer
clEnqueueReadImage
clEnqueueWriteImage
clEnqueueCopyImage
clEnqueueCopyImageToBuffer
clEnqueueCopyBufferToImage
clEnqueueMapBuffer
clEnqueueMapImage
clEnqueueUnmapMemObject
clEnqueueNDRangeKernel
clEnqueueTask
clEnqueueNativeKernel
clEnqueueMarker
clEnqueueWaitForEvents
clEnqueueBarrier
clGetExtensionFunctionAddress
GTPin_Init