Skip to content

Commit

Permalink
Fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed May 15, 2024
1 parent 277c90d commit 9d6d34c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions platforms/cuda/src/CudaTorchKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ using namespace std;
}

static map<string, double>& extractEnergyParameterDerivatives(CudaContext& context) {
//CudaPlatform::PlatformData* data = reinterpret_cast<CudaPlatform::PlatformData*>(context.getPlatformData());
//return *data->energyParameterDerivatives;
context.getEnergyParamDerivWorkspace();
return context.getEnergyParamDerivWorkspace();
}

CudaCalcTorchForceKernel::CudaCalcTorchForceKernel(string name, const Platform& platform, CudaContext& cu) : CalcTorchForceKernel(name, platform), hasInitializedKernel(false), cu(cu) {
Expand Down

0 comments on commit 9d6d34c

Please sign in to comment.