How to use 2 OpenCL runtimes -
i want utilize 2 opencl runtimes in 1 scheme (in case amd , nvidia, question pretty generic).
i know can compile programme sdk. when running program, need provide libopencl.so. how can provide libs of both runtimes see 3 devices (amd cpu, amd gpu, nvidia gpu) in opencl program?
i know must possible somehow, didn't find description on how linux, yet.
thanks lot, tomas
the smith , thomas answers correct; expanding on information: when enumerate opencl platforms, you'll 1 each installed driver. within each platform enumerate devices. amd , intel drivers expose cpu devices. on populated machines, might see amd platform (with cpu , gpu devices), nvidia platform (with gpu device), , intel platform (with cpu , gpu devices). code creates context on whichever devices want use, , 1 or more command queues feed them work. can maintain them busy working on things, can share info buffers between devices same platform. share info across platforms, must nail cpu memory in between.
opencl
No comments:
Post a Comment