From b4a0fd8b17e1c8530067a33a7b24d389e8536bc2 Mon Sep 17 00:00:00 2001 From: Erik Charlebois Date: Wed, 14 Apr 2010 01:28:21 -0700 Subject: [PATCH] Remove some inline flags for info words to avoid out of memory on 32-bit archs. --- extra/opencl/opencl.factor | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/extra/opencl/opencl.factor b/extra/opencl/opencl.factor index 91a264e85c..17f0143ae1 100644 --- a/extra/opencl/opencl.factor +++ b/extra/opencl/opencl.factor @@ -163,6 +163,7 @@ C: cl-buffer-range SYMBOLS: cl-current-context cl-current-queue cl-current-device ; char*-array ( strings -- char*-array ) [ ascii encode dup length dup malloc [ cl-not-null ] - keep &free [ -rot memcpy ] keep ] void*-array{ } map-as ; inline + keep &free [ -rot memcpy ] keep ] void*-array{ } map-as ; : (program) ( cl-context sources -- program-handle ) [ handle>> ] dip [ @@ -354,19 +355,19 @@ M: cl-filter-linear filter-mode-constant drop CL_FILTER_LINEAR ; } case ; : kernel-info-string ( handle name -- string ) - [ clGetKernelInfo ] info-string ; inline + [ clGetKernelInfo ] info-string ; : kernel-info-uint ( handle name -- uint ) - [ clGetKernelInfo ] info-uint ; inline + [ clGetKernelInfo ] info-uint ; : kernel-work-group-info-size_t ( handle1 handle2 name -- size_t ) - [ clGetKernelWorkGroupInfo ] 2info-size_t ; inline + [ clGetKernelWorkGroupInfo ] 2info-size_t ; : event-info-uint ( handle name -- uint ) - [ clGetEventInfo ] info-uint ; inline + [ clGetEventInfo ] info-uint ; : event-info-int ( handle name -- int ) - [ clGetEventInfo ] info-int ; inline + [ clGetEventInfo ] info-int ; : cl_command_type>command-type ( cl_command-type -- command-type ) { @@ -399,8 +400,7 @@ M: cl-filter-linear filter-mode-constant drop CL_FILTER_LINEAR ; } case ; inline : profiling-info-ulong ( handle name -- ulong ) - [ clGetEventProfilingInfo ] info-ulong ; inline - + [ clGetEventProfilingInfo ] info-ulong ; : bind-kernel-arg-buffer ( kernel index buffer -- ) [ handle>> ] [ cl_mem heap-size ] [ handle>> ] tri* @@ -535,10 +535,10 @@ PRIVATE> cl-kernel new-disposable swap >>handle ; inline : cl-kernel-name ( kernel -- string ) - handle>> CL_KERNEL_FUNCTION_NAME kernel-info-string ; inline + handle>> CL_KERNEL_FUNCTION_NAME kernel-info-string ; : cl-kernel-arity ( kernel -- arity ) - handle>> CL_KERNEL_NUM_ARGS kernel-info-uint ; inline + handle>> CL_KERNEL_NUM_ARGS kernel-info-uint ; : cl-kernel-local-size ( kernel -- size ) (current-cl-device) [ handle>> ] bi@ CL_KERNEL_WORK_GROUP_SIZE kernel-work-group-info-size_t ; inline