"...OpenDAS/text-generation-inference.git" did not exist on "4b1c9720c03609d424469c1b6eb221745fefde4b"
Unverified Commit 24552e48 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #2144 from peastman/globals

Avoid unnecessary uploads of global parameters
parents 24add559 595059ce
...@@ -7913,6 +7913,7 @@ void CudaIntegrateCustomStepKernel::execute(ContextImpl& context, CustomIntegrat ...@@ -7913,6 +7913,7 @@ void CudaIntegrateCustomStepKernel::execute(ContextImpl& context, CustomIntegrat
// Upload the global values to the device. // Upload the global values to the device.
globalValues.upload(localGlobalValues, true); globalValues.upload(localGlobalValues, true);
deviceGlobalsAreCurrent = true;
} }
bool stepInvalidatesForces = invalidatesForces[step]; bool stepInvalidatesForces = invalidatesForces[step];
if (stepType[step] == CustomIntegrator::ComputePerDof && !merged[step]) { if (stepType[step] == CustomIntegrator::ComputePerDof && !merged[step]) {
......
...@@ -8300,6 +8300,7 @@ void OpenCLIntegrateCustomStepKernel::execute(ContextImpl& context, CustomIntegr ...@@ -8300,6 +8300,7 @@ void OpenCLIntegrateCustomStepKernel::execute(ContextImpl& context, CustomIntegr
// Upload the global values to the device. // Upload the global values to the device.
globalValues.upload(localGlobalValues, true, true); globalValues.upload(localGlobalValues, true, true);
deviceGlobalsAreCurrent = true;
} }
bool stepInvalidatesForces = invalidatesForces[step]; bool stepInvalidatesForces = invalidatesForces[step];
if (stepType[step] == CustomIntegrator::ComputePerDof && !merged[step]) { if (stepType[step] == CustomIntegrator::ComputePerDof && !merged[step]) {
......
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