Skip to content

Commit

Permalink
Fixing build for gcc opencl support.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 29, 2024
1 parent 174cb64 commit 6edfb92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/apex/apex_opencl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#else
#include <CL/cl.h>
#endif
#endif

#include <type_traits>
#ifndef _GNU_SOURCE
Expand Down Expand Up @@ -555,7 +554,7 @@ clCreateBufferWithProperties(cl_context context,
void * host_ptr,
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_3_0 {
GET_SYMBOL_TIMER(clCreateBufferWithProperties);
auto rc = function_ptr(context, properties, flags, size, host_prt, errcode_ret);
auto rc = function_ptr(context, properties, flags, size, host_ptr, errcode_ret);
apex::sample_value("OpenCL:Create Buffer Bytes", size);
return rc;
}
Expand Down

0 comments on commit 6edfb92

Please sign in to comment.