"platforms/vscode:/vscode.git/clone" did not exist on "b002cf1f7fd5d879f73e0c02718c3c080d024e79"
Commit 19c403f2 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed plugin initialization for CUDA free energy plugin

parent 60c8ebf9
......@@ -33,24 +33,7 @@
using namespace OpenMM;
#if defined(OPENMM_BUILDING_SHARED_LIBRARY)
#if defined(WIN32)
#include <windows.h>
extern "C" void initOpenMMCudaFreeEnergyPlugin();
BOOL WINAPI DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
initOpenMMCudaFreeEnergyPlugin();
return TRUE;
}
#else
extern "C" void __attribute__((constructor)) initOpenMMCudaFreeEnergyPlugin();
#endif
#endif
using namespace OpenMM;
extern "C" void initOpenMMCudaFreeEnergyPlugin() {
extern "C" void registerKernelFactories() {
// (void) fprintf( stderr, "initOpenMMCudaFreeEnergyPlugin called\n");
if ( gpuIsAvailableSoftcore() ){
for( int ii = 0; ii < Platform::getNumPlatforms(); ii++ ){
......
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