Question: 1) Assume that clEnqueueNDRangeKernel() is called on the host with the following arguments: cl_uint work_dim = 3; const size_t global_work_size[3]={10, 24, 25}; const size_t local_work_size[3]={2,

 1) Assume that clEnqueueNDRangeKernel() is called on the host with the

1) Assume that clEnqueueNDRangeKernel() is called on the host with the following arguments: cl_uint work_dim = 3; const size_t global_work_size[3]={10, 24, 25}; const size_t local_work_size[3]={2, 4, 5}; cl_int clEnqueueNDRangeKernel (cl_command_queue command_queue, cl kernel kernel cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) if get_global_id(0)=5, get_global_id(1)=4, and get_global_id(2)=9 for a thread, then what would be get_local_id(0), get_local_id(1), and get_local_id(2) for the same thread? (3 points) 1) Assume that clEnqueueNDRangeKernel() is called on the host with the following arguments: cl_uint work_dim = 3; const size_t global_work_size[3]={10, 24, 25}; const size_t local_work_size[3]={2, 4, 5}; cl_int clEnqueueNDRangeKernel (cl_command_queue command_queue, cl kernel kernel cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event) if get_global_id(0)=5, get_global_id(1)=4, and get_global_id(2)=9 for a thread, then what would be get_local_id(0), get_local_id(1), and get_local_id(2) for the same thread? (3 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!