Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starting with ngscuda C++ programming

Documentation

Some simple use-cases:

size_t n = 100;
auto dev_array = Dev<int>::Malloc(n);
    
DeviceParallelFor(n, [dev_array] DEVICE_LAMBDA (size_t tid) {
    dev_array[tid] = 2*tid;
});

cout << "array[5] = " << dev_array[5] << endl;

Free (dev_array);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages