GPUOcelot
|
A unit test for the ability of the CUDA runtime to switch between devices and use multiple threads. More...
#include <TestDeviceSwitching.h>
Public Member Functions | |
TestDeviceSwitching () | |
The constructor sets the description. |
A unit test for the ability of the CUDA runtime to switch between devices and use multiple threads.
Test Points: 1) In a single threaded application, iterate across all devices launching the same simple kernel each time 2) Test context migration support in ocelot. Iterate across all devices, launching a simple kernel that updates shared variable. Use the context switch mechanism to migrate the shared data. 3) Test multi-threading support. Launch one host thread to allocate memory, pass pointers to worker threads, each of which should launch independent kernels in parallel.
test::TestDeviceSwitching::TestDeviceSwitching | ( | ) |
The constructor sets the description.