Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,15 @@ cl_int CLVK_API_CALL clGetDeviceInfo(cl_device_id dev,
case CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS:
case CL_DEVICE_PIPE_SUPPORT:
case CL_DEVICE_WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT:
case CL_DEVICE_GENERIC_ADDRESS_SPACE_SUPPORT:
val_bool = CL_FALSE;
copy_ptr = &val_bool;
size_ret = sizeof(val_bool);
break;
case CL_DEVICE_GENERIC_ADDRESS_SPACE_SUPPORT:
val_bool = CL_TRUE;
copy_ptr = &val_bool;
size_ret = sizeof(val_bool);
break;
case CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES:
val_dev_enqueue_caps = 0;
copy_ptr = &val_dev_enqueue_caps;
Expand Down
2 changes: 2 additions & 0 deletions src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ void cvk_device::build_extension_ils_list() {
MAKE_NAME_VERSION(3, 0, 0, "__opencl_c_images"),
MAKE_NAME_VERSION(3, 0, 0, "__opencl_c_read_write_images"),
MAKE_NAME_VERSION(3, 0, 0, "__opencl_c_3d_image_writes"),
MAKE_NAME_VERSION(3, 0, 0, "__opencl_c_generic_address_space"),
MAKE_NAME_VERSION(3, 0, 0, "__opencl_c_program_scope_global_variables"),
};
if (supports_atomic_order_acq_rel()) {
m_opencl_c_features.push_back(
Expand Down
1 change: 1 addition & 0 deletions src/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ std::string cvk_program::prepare_build_options(const cvk_device* device) const {
{"-cl-strict-aliasing", ""},
// clspv require entrypoint inlining for OpenCL 2.0
{"-cl-std=CL2.0", "-cl-std=CL2.0 -inline-entry-points"},
{"-cl-std=CL3.0", "-cl-std=CL3.0 -inline-entry-points"},
{"-create-library", ""},
};

Expand Down