Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: how to run on cpu graphics card

  1. #1

    how to run on cpu graphics card

    in function below when i select CPU
    clGetDeviceIDs(platform_id,CL_DEVICE_TYPE_CPU,1,&d evice_id,&num_of_devices)
    then opencl program or kernel run on CPU or Graphics card of CPU?

    thanks

  2. #2

    Re: how to run on cpu graphics card

    It will run on the CPU. If you want the GPU that is built into the CPU then you must specify CL_DEVICE_TYPE_GPU.

  3. #3

    Re: how to run on cpu graphics card

    thank you
    it means that if i am using 2 core CPU ,then it will utilize both core of CPU as it does in GPU (in which it utilizes all cores of GPU)

  4. #4

    Re: how to run on cpu graphics card

    It will also, if possible, vectorize your code to use suitable SSE or AVX instructions.

  5. #5

    Re: how to run on cpu graphics card

    and if i do not write opencl program then program will use only single core of CPU
    or more?

  6. #6

    Re: how to run on cpu graphics card

    pls reply if anybody knows that
    in function below when i select CPU
    clGetDeviceIDs(platform_id,CL_DEVICE_TYPE_CPU,1,&d evice_id,&num_of_devices)
    then opencl program or kernel run on CPU and if my CPU have 4 core than the kernel utilize 4 core or single core means then it will be termed as a sequential program on CPU or not?

    thanks

  7. #7
    Senior Member
    Join Date
    Oct 2012
    Posts
    166

    Re: how to run on cpu graphics card

    it should be executed on all 4 cores and should also be optimized to sse if possible. See the intel/amd specs for that. Or just have a look at your Taskmanager

  8. #8

    Re: how to run on cpu graphics card

    anybody have the ans.......

  9. #9
    Senior Member
    Join Date
    Oct 2012
    Posts
    166

    Re: how to run on cpu graphics card

    how many other answers do you need?

  10. #10

    Re: how to run on cpu graphics card

    pls differentiate simple sequential c program and opencl CPU program ?
    which should i compare with GPU ?
    thanks

Page 1 of 2 12 LastLast

Similar Threads

  1. What is an opengl graphics card?
    By hualian in forum OpenGL ES 1.X - fixed function hardware
    Replies: 1
    Last Post: 02-10-2013, 03:22 PM
  2. when run on cpu or graphics card of cpu
    By prince in forum OpenCL
    Replies: 2
    Last Post: 01-20-2013, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •