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
59b69776
Commit
59b69776
authored
Dec 11, 2012
by
Peter Eastman
Browse files
Split a file to work around Visual Studio's limit on the length of string literals
parent
fb48658f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
518 additions
and
512 deletions
+518
-512
plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
+10
-5
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce1.cu
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce1.cu
+508
-0
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce2.cu
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce2.cu
+0
-507
No files found.
plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
View file @
59b69776
...
@@ -1898,25 +1898,30 @@ void CudaCalcAmoebaGeneralizedKirkwoodForceKernel::initialize(const System& syst
...
@@ -1898,25 +1898,30 @@ void CudaCalcAmoebaGeneralizedKirkwoodForceKernel::initialize(const System& syst
forceSource
<<
CudaKernelSources
::
vectorOps
;
forceSource
<<
CudaKernelSources
::
vectorOps
;
forceSource
<<
CudaAmoebaKernelSources
::
amoebaGk
;
forceSource
<<
CudaAmoebaKernelSources
::
amoebaGk
;
forceSource
<<
"#define F1
\n
"
;
forceSource
<<
"#define F1
\n
"
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce1
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce2
;
forceSource
<<
CudaAmoebaKernelSources
::
gkEDiffPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkEDiffPairForce
;
forceSource
<<
"#undef F1
\n
"
;
forceSource
<<
"#undef F1
\n
"
;
forceSource
<<
"#define F2
\n
"
;
forceSource
<<
"#define F2
\n
"
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce1
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce2
;
forceSource
<<
"#undef F2
\n
"
;
forceSource
<<
"#undef F2
\n
"
;
forceSource
<<
"#define T1
\n
"
;
forceSource
<<
"#define T1
\n
"
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce1
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce2
;
forceSource
<<
CudaAmoebaKernelSources
::
gkEDiffPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkEDiffPairForce
;
forceSource
<<
"#undef T1
\n
"
;
forceSource
<<
"#undef T1
\n
"
;
forceSource
<<
"#define T2
\n
"
;
forceSource
<<
"#define T2
\n
"
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce1
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce2
;
forceSource
<<
"#undef T2
\n
"
;
forceSource
<<
"#undef T2
\n
"
;
forceSource
<<
"#define T3
\n
"
;
forceSource
<<
"#define T3
\n
"
;
forceSource
<<
CudaAmoebaKernelSources
::
gkEDiffPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkEDiffPairForce
;
forceSource
<<
"#undef T3
\n
"
;
forceSource
<<
"#undef T3
\n
"
;
forceSource
<<
"#define B1
\n
"
;
forceSource
<<
"#define B1
\n
"
;
forceSource
<<
"#define B2
\n
"
;
forceSource
<<
"#define B2
\n
"
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce1
;
forceSource
<<
CudaAmoebaKernelSources
::
gkPairForce2
;
CUmodule
module
=
cu
.
createModule
(
forceSource
.
str
(),
defines
);
CUmodule
module
=
cu
.
createModule
(
forceSource
.
str
(),
defines
);
computeBornSumKernel
=
cu
.
getKernel
(
module
,
"computeBornSum"
);
computeBornSumKernel
=
cu
.
getKernel
(
module
,
"computeBornSum"
);
reduceBornSumKernel
=
cu
.
getKernel
(
module
,
"reduceBornSum"
);
reduceBornSumKernel
=
cu
.
getKernel
(
module
,
"reduceBornSum"
);
...
...
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce1.cu
0 → 100644
View file @
59b69776
This diff is collapsed.
Click to expand it.
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce.cu
→
plugins/amoeba/platforms/cuda/src/kernels/gkPairForce
2
.cu
View file @
59b69776
This diff is collapsed.
Click to expand it.
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