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
26a489d5
Commit
26a489d5
authored
Nov 07, 2011
by
Mark Friedrichs
Browse files
Added OPENMMCUDA_EXPORT to several Cuda platform methods used by free energy plugin
parent
1b4e96da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
platforms/cuda/src/kernels/gpu.cpp
platforms/cuda/src/kernels/gpu.cpp
+2
-2
platforms/cuda/src/kernels/gputypes.h
platforms/cuda/src/kernels/gputypes.h
+2
-2
No files found.
platforms/cuda/src/kernels/gpu.cpp
View file @
26a489d5
...
@@ -547,7 +547,7 @@ void gpuSetLJ14Parameters(gpuContext gpu, float epsfac, float fudge, const vecto
...
@@ -547,7 +547,7 @@ void gpuSetLJ14Parameters(gpuContext gpu, float epsfac, float fudge, const vecto
psLJ14Parameter
->
Upload
();
psLJ14Parameter
->
Upload
();
}
}
extern
"C"
void
setExclusions
(
gpuContext
gpu
,
const
vector
<
vector
<
int
>
>&
exclusions
)
{
extern
"C"
void
OPENMMCUDA_EXPORT
setExclusions
(
gpuContext
gpu
,
const
vector
<
vector
<
int
>
>&
exclusions
)
{
if
(
gpu
->
exclusions
.
size
()
>
0
)
{
if
(
gpu
->
exclusions
.
size
()
>
0
)
{
bool
ok
=
(
exclusions
.
size
()
==
gpu
->
exclusions
.
size
());
bool
ok
=
(
exclusions
.
size
()
==
gpu
->
exclusions
.
size
());
for
(
int
i
=
0
;
i
<
(
int
)
exclusions
.
size
()
&&
ok
;
i
++
)
{
for
(
int
i
=
0
;
i
<
(
int
)
exclusions
.
size
()
&&
ok
;
i
++
)
{
...
@@ -2306,7 +2306,7 @@ int gpuBuildThreadBlockWorkList(gpuContext gpu)
...
@@ -2306,7 +2306,7 @@ int gpuBuildThreadBlockWorkList(gpuContext gpu)
}
}
extern
"C"
extern
"C"
void
gpuBuildExclusionList
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
gpuBuildExclusionList
(
gpuContext
gpu
)
{
{
const
unsigned
int
atoms
=
gpu
->
sim
.
paddedNumberOfAtoms
;
const
unsigned
int
atoms
=
gpu
->
sim
.
paddedNumberOfAtoms
;
const
unsigned
int
grid
=
gpu
->
grid
;
const
unsigned
int
grid
=
gpu
->
grid
;
...
...
platforms/cuda/src/kernels/gputypes.h
View file @
26a489d5
...
@@ -303,7 +303,7 @@ extern "C"
...
@@ -303,7 +303,7 @@ extern "C"
int
gpuBuildThreadBlockWorkList
(
gpuContext
gpu
);
int
gpuBuildThreadBlockWorkList
(
gpuContext
gpu
);
extern
"C"
extern
"C"
void
gpuBuildExclusionList
(
gpuContext
gpu
);
void
OPENMMCUDA_EXPORT
gpuBuildExclusionList
(
gpuContext
gpu
);
extern
"C"
extern
"C"
int
OPENMMCUDA_EXPORT
gpuSetConstants
(
gpuContext
gpu
);
int
OPENMMCUDA_EXPORT
gpuSetConstants
(
gpuContext
gpu
);
...
@@ -312,6 +312,6 @@ extern "C"
...
@@ -312,6 +312,6 @@ extern "C"
void
gpuReorderAtoms
(
gpuContext
gpu
);
void
gpuReorderAtoms
(
gpuContext
gpu
);
extern
"C"
extern
"C"
void
setExclusions
(
gpuContext
gpu
,
const
std
::
vector
<
std
::
vector
<
int
>
>&
exclusions
);
void
OPENMMCUDA_EXPORT
setExclusions
(
gpuContext
gpu
,
const
std
::
vector
<
std
::
vector
<
int
>
>&
exclusions
);
#endif //__GPUTYPES_H__
#endif //__GPUTYPES_H__
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