Skip to content

Commit 7bcbc2f

Browse files
authored
Propagate compile flags (#512)
1 parent 849e5c0 commit 7bcbc2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl-capi/source/dpctl_sycl_program_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ __dpctl_give DPCTLSyclProgramRef
7272
createOpenCLInterOpProgram(const context &SyclCtx,
7373
__dpctl_keep const void *IL,
7474
size_t length,
75-
const char * /* */)
75+
const char *CompileOpts)
7676
{
7777
cl_int err;
7878
auto CLCtx = SyclCtx.get();
@@ -93,7 +93,7 @@ createOpenCLInterOpProgram(const context &SyclCtx,
9393

9494
// Build the OpenCL interoperability program
9595
err = clBuildProgram(CLProgram, (cl_uint)(SyclDevices.size()), CLDevices,
96-
nullptr, nullptr, nullptr);
96+
CompileOpts, nullptr, nullptr);
9797
// free the CLDevices array
9898
delete[] CLDevices;
9999

0 commit comments

Comments
 (0)