possibly loaded 3d array to device?

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

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;
}