Skip to content

Commit

Permalink
Fix typo (Xilinx#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsoe authored May 13, 2019
1 parent 9b45ed7 commit cd32e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/xocl/api/detail/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ validHostPtrOrError(cl_mem_flags flags, const void* host_ptr)
// CL_INVALID_HOST_PTR if host_ptr is NULL and CL_MEM_EXT_PTR_XILINX is set
// In this case host_ptr is actually a ptr to some struct
if (!host_ptr && (flags & CL_MEM_EXT_PTR_XILINX))
throw error(CL_INVALID_HOST_PTR,"host_ptr may not be nullptr when CL_ME_EXT_PTR_XILINX is specified");
throw error(CL_INVALID_HOST_PTR,"host_ptr may not be nullptr when CL_MEM_EXT_PTR_XILINX is specified");

// CL_INVALID_HOST_PTR if host_ptr is NULL and CL_MEM_USE_HOST_PTR
// or CL_MEM_COPY_HOST_PTR are set in flags or if host_ptr is not
Expand Down

0 comments on commit cd32e19

Please sign in to comment.