Skip to content

queue.enqueue_1d_range_kernel, (boost::compute), enqueue_nd_range_kernel

boost::compute enqueue_1d_range_kernel

boost::compute::command_queue::enqueue_1d_range_kernel

event boost::compute::command_queue::enqueue_1d_range_kernel(
        const kernel & kernel,
        size_t global_work_offset,
        size_t global_work_size,
        size_t local_work_size,
        const wait_list &events = wait_list());

global_work_offset = 0

global_work_size = local_work_size * n

BOOST_COMPUTE_STRINGIZE_SOURCE

BOOST_COMPUTE_STRINGIZE_SOURCE

const char source[] = BOOST_COMPUTE_STRINGIZE_SOURCE(
      __kernel void trans_it(__global const float * in, int in_size,
            __global float * out, int out_size)
      {
          const uint i = get_global_id(0);
          out[i] = exp(sqrt(1.0f/in[i]));
      }
);

compute::vector

compute::vector<T>

compute::vector<float> input{size, context};

 

 

 

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options

Submitted comments will be subject to moderation before being displayed.

@cppfx.xyz