Added functions for loading int, int3, scalar and vector constants to the device layer (acDeviceLoad...Constant)

This commit is contained in:
jpekkila
2019-08-19 15:28:16 +03:00
parent 41805dcb68
commit 787363226b
3 changed files with 50 additions and 5 deletions

View File

@@ -429,7 +429,7 @@ acNodeLoadConstant(const Node node, const Stream stream, const AcRealParam param
acNodeSynchronizeStream(node, stream);
// #pragma omp parallel for
for (int i = 0; i < node->num_devices; ++i) {
acDeviceLoadConstant(node->devices[i], stream, param, value);
acDeviceLoadScalarConstant(node->devices[i], stream, param, value);
}
return AC_SUCCESS;
}