Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The API below is used to launch a kernel. Initialize work_dim , global_work_size , and local_work_size so that a 3-dimensial kernel is launched. Assume that

The API below is used to launch a kernel. Initialize work_dim, global_work_size, and local_work_size so that a 3-dimensial kernel is launched. Assume that the total number of threads is 1,000,000. The global number of threads per dimension is the same and there are 5 work-groups per dimension. Ignore the other arguments of clEnqueueNDRangeKernel().

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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

Communication Myths

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago