mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
possibly loaded 3d array to device?
This commit is contained in:
11
src/main.cu
11
src/main.cu
@@ -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