Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F76712122
test_cuda.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 10, 00:22
Size
316 B
Mime Type
text/x-c
Expires
Mon, Aug 12, 00:22 (2 d)
Engine
blob
Format
Raw Data
Handle
19755825
Attached To
rTAMAAS tamaas
test_cuda.cpp
View Options
#include "tamaas.hh"
#include "grid.hh"
#include <algorithm>
using namespace tamaas;
int main() {
initialize();
Grid<Real, 1> grid({20}, 1);
std::iota(grid.begin(), grid.end(), 0);
Loop::loop([] CUDA_LAMBDA (Real & x) {
x += 1;
}, grid);
std::cout << grid << std::endl;
finalize();
return 0;
}
Event Timeline
Log In to Comment