Skip to content
/ cuq Public
forked from tiermak/cuq

CUDA multi-GPU concurrent tasks queue

License

Notifications You must be signed in to change notification settings

biocad/cuq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cuq

CUDA multi-GPU concurrent tasks queue

Build

Requrements:

  • CMake of version 3.10 or higher
mkdir build && cd build
cmake ..
make -j 8
[sudo] make install # to install library into lib directory and header into include (may require sudo)

Example

int N = 42;

//create some tasks
GPUTask * tasks[N];
for (int i = 0; i < N; i++) 
  tasks[i] = createTask(...); //create task somehow

int devicesCount = 8;

//run all tasks on 8 devices
processTasks(tasks, N, devicesCount);

//then get results back from tasks
...

//there is a flag in processTasks to delete tasks automatically

Working demo

examples/concurrent_gpu_demo.cu

About

CUDA multi-GPU concurrent tasks queue

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 98.3%
  • Cuda 1.2%
  • Other 0.5%