0

I use OpenCL on AMD Radeon Vega 64. In the task manager i see that GPU using at 7% max. How to maximize use the GPU?

NDRange global(100000);
queue.enqueueNDRangeKernel(kernel, NULL, global));
asked May 2, 2018 at 13:43
0

2 Answers 2

1

Mostly through trial and error. Depending on your kernel, the easiest way is to simply increase the global work size. You can also attempt to use available info like CL_DEVICE_MAX_COMPUTE_UNITS or CL_DEVICE_MAX_WORK_ITEM_SIZES to programmatically determine the work size, but it's not totally reliable.

answered May 2, 2018 at 15:13
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, i'll try to do this.
0

You can try to manually set the work group size to a value that will increase performance. Typically the defaults are good enough, but sometimes you may want to use clGetKernelWorkGroupInfo to obtain kernel-specific values, such as CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE. The latter can be used as an indication of what a good custom work group size can be for a given OpenCL kernel.

answered May 4, 2018 at 9:45

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.