mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-18 13:33:18 +01:00
RRII gpu option
This commit is contained in:
1 parent
584a3ee45c
commit
551a5f8dc8
24 files changed
+1099
-270
No files matched your search
@@ -131,7 +131,7 @@ public:
|
||||
template<class obj> void GlobalSum(obj &o){
|
||||
typedef typename obj::scalar_type scalar_type;
|
||||
int words = sizeof(obj)/sizeof(scalar_type);
|
||||
scalar_type * ptr = (scalar_type *)& o;
|
||||
scalar_type * ptr = (scalar_type *)& o; // Safe alias
|
||||
GlobalSumVector(ptr,words);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user