Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ int main(int, char**)
if (!gpuGrid) throw std::runtime_error("GridHandle did not contain a device grid with value type float");
if (!cpuGrid) throw std::runtime_error("GridHandle did not contain a host grid with value type float");

launch_kernels(cpuGrid, cpuGrid, stream); // Call a host method to print a grid value on both the CPU and GPU
launch_kernels(gpuGrid, cpuGrid, stream); // Call a host method to print a grid value on both the CPU and GPU

cudaStreamDestroy(stream); // Destroy the CUDA stream
}
catch (const std::exception& e) {
std::cerr << "An exception occurred: \"" << e.what() << "\"" << std::endl;
}
return 0;
}
}
Loading