possibly loaded 3d array to device?

This commit is contained in:
Robin committed 2024-12-19 20:18:24 +01:00
1 parent 1c2ab4af76
commit 2719b93fa6
6 files changed
+34 -11

No files matched your search

+2 -9
View File
@@ -8,15 +8,8 @@
int main() {
std::string path = "data/MERRA2_400.inst6_3d_ana_Np.20120101.nc4";
std::string variable = "U";
auto x = readData(path, variable);
// Print some values from the file to see that it worked
int num = 0;
for(int i = 0; i < x.size(); i++) {
if (x[i] < 1E14) std::cout << x[i] << "\n";
if(num > 10000) break;
num++;
}
auto arr = loadDataToDevice(path, variable);
cudaFreeArray(arr);
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.