Results 1 to 2 of 2

Thread: Program run on CPU and GPU

  1. #1
    Newbie
    Join Date
    Jul 2018
    Posts
    1

    Program run on CPU and GPU

    If i run the program on CPU having say 2 cores,which i ran on gpu having many cores and in program all threads ran simultaneously,but .how it will be run on CPU? if same program is run on both GPU and CPU....so it will run only on single core of CPU or both cores of CPU simultaneously ....
    thanks

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    252
    It depends on the particular OpenCL runtime, but yes, in general, when you run an OpenCL kernel on CPU, it will run on all cores, and in some cases will also take advantage of vector instructions (such as SSE/AVX) to run multiple work items per core.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean