Commit e6bd8433 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Added extern' to SetCalculateLocalSoftcoreGpuSim definition

parent 98c26853
...@@ -32,10 +32,13 @@ ...@@ -32,10 +32,13 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. * * USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#include "openmm/GBSAOBCSoftcoreForce.h" //#include "openmm/GBSAOBCSoftcoreForce.h"
#include "openmm/GBVISoftcoreForce.h" #include "GBSAOBCSoftcoreForce.h"
//#include "openmm/GBVISoftcoreForce.h"
#include "GBVISoftcoreForce.h"
#include "openmm/NonbondedForce.h" #include "openmm/NonbondedForce.h"
#include "openmm/NonbondedSoftcoreForce.h" //#include "openmm/NonbondedSoftcoreForce.h"
#include "NonbondedSoftcoreForce.h"
#include "openmm/System.h" #include "openmm/System.h"
#include "openmm/KernelImpl.h" #include "openmm/KernelImpl.h"
#include <set> #include <set>
......
...@@ -88,11 +88,6 @@ GpuGBVISoftcore* gpuSetGBVISoftcoreParameters(gpuContext gpu, float innerDielect ...@@ -88,11 +88,6 @@ GpuGBVISoftcore* gpuSetGBVISoftcoreParameters(gpuContext gpu, float innerDielect
const std::vector<float>& gamma, const std::vector<float>& scaledRadii, const std::vector<float>& gamma, const std::vector<float>& scaledRadii,
const std::vector<float>& bornRadiusScaleFactors, const std::vector<float>& quinticSplineParameters); const std::vector<float>& bornRadiusScaleFactors, const std::vector<float>& quinticSplineParameters);
// delete supplemtentary objects, ...
extern "C"
void gpuDeleteGBVISoftcoreParameters( void* gpuNonbondedSoftcore);
// write address's to device // write address's to device
extern "C" extern "C"
......
...@@ -157,14 +157,6 @@ gpu->psObcData->Upload(); ...@@ -157,14 +157,6 @@ gpu->psObcData->Upload();
} }
// delete gpuGBVISoftcore
extern "C"
void gpuDeleteGBVISoftcoreParameters( void* gpuGBVISoftcore)
{
delete gpuGBVISoftcore;
}
struct Atom { struct Atom {
float x; float x;
float y; float y;
...@@ -518,7 +510,7 @@ void kCalculateGBVISoftcoreBornSum(gpuContext gpu) ...@@ -518,7 +510,7 @@ void kCalculateGBVISoftcoreBornSum(gpuContext gpu)
kClearGBVISoftcoreBornSum( gpu ); kClearGBVISoftcoreBornSum( gpu );
LAUNCHERROR("kClearGBVIBornSum from kCalculateGBVISoftcoreBornSum"); LAUNCHERROR("kClearGBVIBornSum from kCalculateGBVISoftcoreBornSum");
size_t numWithInteractions; //size_t numWithInteractions;
switch (gpu->sim.nonbondedMethod) switch (gpu->sim.nonbondedMethod)
{ {
case NO_CUTOFF: case NO_CUTOFF:
......
...@@ -95,7 +95,7 @@ static __constant__ cudaFreeEnergySimulationNonbonded14 feSim; ...@@ -95,7 +95,7 @@ static __constant__ cudaFreeEnergySimulationNonbonded14 feSim;
angle = (dp >= 0) ? angle : -angle; \ angle = (dp >= 0) ? angle : -angle; \
} }
void SetCalculateLocalSoftcoreGpuSim(gpuContext gpu) extern "C" void SetCalculateLocalSoftcoreGpuSim(gpuContext gpu)
{ {
cudaError_t status; cudaError_t status;
status = cudaMemcpyToSymbol(cSim, &gpu->sim, sizeof(cudaGmxSimulation)); status = cudaMemcpyToSymbol(cSim, &gpu->sim, sizeof(cudaGmxSimulation));
......
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