"csrc/gfx9/decode/vscode:/vscode.git/clone" did not exist on "a45f646b34e02b12f85db4cc0c246d9377c4d365"
Commit 29a301b4 authored by Yutong Zhao's avatar Yutong Zhao
Browse files

Forgot message on last commit. This fixes write/create checkpoint for systems without a RNG.

parent eded2c6c
......@@ -933,7 +933,7 @@ void OpenCLIntegrationUtilities::createCheckpoint(ostream& stream) {
void OpenCLIntegrationUtilities::loadCheckpoint(istream& stream) {
if(random == NULL)
return;
return;
stream.read((char*) &randomPos, sizeof(int));
vector<mm_float4> randomVec(random->getSize());
stream.read((char*) &randomVec[0], sizeof(mm_float4)*random->getSize());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment