Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started