Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
19c403f2
"platforms/vscode:/vscode.git/clone" did not exist on "b002cf1f7fd5d879f73e0c02718c3c080d024e79"
Commit
19c403f2
authored
Dec 03, 2009
by
Peter Eastman
Browse files
Fixed plugin initialization for CUDA free energy plugin
parent
60c8ebf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
plugins/freeEnergy/platforms/cuda/src/CudaFreeEnergyKernelFactory.cpp
...Energy/platforms/cuda/src/CudaFreeEnergyKernelFactory.cpp
+1
-18
No files found.
plugins/freeEnergy/platforms/cuda/src/CudaFreeEnergyKernelFactory.cpp
View file @
19c403f2
...
...
@@ -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
++
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment