mirror of
https://github.com/paboyle/Grid.git
synced 2026-06-27 05:53:30 +01:00
Updated to compile and run fast on CUDA
This commit is contained in:
@@ -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