mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-28 16:33:19 +00:00
Updated to compile and run fast on CUDA
This commit is contained in:
1 parent
82cfff2990
commit
5adf2657dd
8 files changed
+60
-389
No files matched your search
@@ -31,7 +31,7 @@ namespace Grid{
|
||||
static accelerator_inline void IndexFromCoor (const coor_t& coor,int &index,const coor_t &dims){
|
||||
int64_t index64;
|
||||
IndexFromCoor(coor,index64,dims);
|
||||
GRID_ASSERT(index64<2*1024*1024*1024LL);
|
||||
assert(index64<2*1024*1024*1024LL);
|
||||
index = (int) index64;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user