mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Reduce exported symbols on Windows in release
Related-To: NEO-4142 Change-Id: I589e1d560b3e96001c816c3a5439cfd3e050f1f5 Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
73762dcfb4
commit
259cdae5cd
@@ -106,7 +106,11 @@ if(WIN32)
|
||||
set(EXPORTS_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/OpenCLExports${IGDRCL_OPTION__BITS}.def")
|
||||
set(MSVC_DEF_LIB_NAME "igdrcl${IGDRCL_OPTION__BITS}")
|
||||
set(MSVC_DEF_HEADER "This file was generated during CMake project configuration - please don't edit")
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/OpenCLExports.def.in" "${EXPORTS_FILENAME}")
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/OpenCLReleaseExports.def.in" "${EXPORTS_FILENAME}")
|
||||
else()
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dll/windows/OpenCLInternalExports.def.in" "${EXPORTS_FILENAME}")
|
||||
endif()
|
||||
endif(WIN32)
|
||||
|
||||
if(${GENERATE_EXECUTABLE})
|
||||
|
||||
@@ -35,6 +35,7 @@ clCreateCommandQueue
|
||||
clRetainCommandQueue
|
||||
clReleaseCommandQueue
|
||||
clGetCommandQueueInfo
|
||||
clSetCommandQueueProperty
|
||||
clCreateBuffer
|
||||
clCreateImage2D
|
||||
clCreateImage3D
|
||||
@@ -52,6 +53,7 @@ clCreateProgramWithBinary
|
||||
clRetainProgram
|
||||
clReleaseProgram
|
||||
clBuildProgram
|
||||
clUnloadCompiler
|
||||
clGetProgramInfo
|
||||
clGetProgramBuildInfo
|
||||
clCreateKernel
|
||||
@@ -60,7 +62,6 @@ clRetainKernel
|
||||
clReleaseKernel
|
||||
clSetKernelArg
|
||||
clGetKernelInfo
|
||||
clGetKernelSubGroupInfoKHR
|
||||
clGetKernelWorkGroupInfo
|
||||
clWaitForEvents
|
||||
clGetEventInfo
|
||||
@@ -87,4 +88,57 @@ clEnqueueMarker
|
||||
clEnqueueWaitForEvents
|
||||
clEnqueueBarrier
|
||||
clGetExtensionFunctionAddress
|
||||
clSetEventCallback
|
||||
clCreateSubBuffer
|
||||
clSetMemObjectDestructorCallback
|
||||
clCreateUserEvent
|
||||
clSetUserEventStatus
|
||||
clEnqueueReadBufferRect
|
||||
clEnqueueWriteBufferRect
|
||||
clEnqueueCopyBufferRect
|
||||
clCreateSubDevices
|
||||
clRetainDevice
|
||||
clReleaseDevice
|
||||
clCreateImage
|
||||
clCreateProgramWithBuiltInKernels
|
||||
clCompileProgram
|
||||
clLinkProgram
|
||||
clUnloadPlatformCompiler
|
||||
clGetKernelArgInfo
|
||||
clEnqueueFillBuffer
|
||||
clEnqueueFillImage
|
||||
clEnqueueMigrateMemObjects
|
||||
clEnqueueMarkerWithWaitList
|
||||
clEnqueueBarrierWithWaitList
|
||||
clGetExtensionFunctionAddressForPlatform
|
||||
clCreateCommandQueueWithProperties
|
||||
clCreatePipe
|
||||
clGetPipeInfo
|
||||
clSVMAlloc
|
||||
clSVMFree
|
||||
clEnqueueSVMFree
|
||||
clEnqueueSVMMemcpy
|
||||
clEnqueueSVMMemFill
|
||||
clEnqueueSVMMap
|
||||
clEnqueueSVMUnmap
|
||||
clCreateSamplerWithProperties
|
||||
clSetKernelArgSVMPointer
|
||||
clSetKernelExecInfo
|
||||
clGetKernelSubGroupInfoKHR
|
||||
clCloneKernel
|
||||
clCreateProgramWithIL
|
||||
clEnqueueSVMMigrateMem
|
||||
clGetDeviceAndHostTimer
|
||||
clGetHostTimer
|
||||
clGetKernelSubGroupInfo
|
||||
clSetDefaultDeviceCommandQueue
|
||||
clSetProgramSpecializationConstant
|
||||
clGetKernelArgInfo
|
||||
clGetImageParamsINTEL
|
||||
clCreatePerfCountersCommandQueueINTEL
|
||||
clCreateAcceleratorINTEL
|
||||
clGetAcceleratorInfoINTEL
|
||||
clRetainAcceleratorINTEL
|
||||
clReleaseAcceleratorINTEL
|
||||
clSetPerformanceConfigurationINTEL
|
||||
${MSVC_DEF_ADDITIONAL_EXPORTS}
|
||||
27
opencl/source/dll/windows/OpenCLReleaseExports.def.in
Normal file
27
opencl/source/dll/windows/OpenCLReleaseExports.def.in
Normal file
@@ -0,0 +1,27 @@
|
||||
; Copyright (c) 2017 - 2020, 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.
|
||||
|
||||
; ${MSVC_DEF_HEADER}
|
||||
|
||||
LIBRARY "${MSVC_DEF_LIB_NAME}"
|
||||
EXPORTS
|
||||
clGetPlatformInfo
|
||||
clGetExtensionFunctionAddress
|
||||
${MSVC_DEF_ADDITIONAL_EXPORTS}
|
||||
Reference in New Issue
Block a user