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
b54d7c63
Commit
b54d7c63
authored
Apr 21, 2011
by
Mark Friedrichs
Browse files
Modified thread count for several kernels
parent
8a331fb9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
+3
-0
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaMapTorques.cu
...tforms/cuda/src/kernels/kCalculateAmoebaCudaMapTorques.cu
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaPmeDirectElectrostatic.cu
...src/kernels/kCalculateAmoebaCudaPmeDirectElectrostatic.cu
+2
-2
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaRotateFrame.cu
...forms/cuda/src/kernels/kCalculateAmoebaCudaRotateFrame.cu
+1
-1
No files found.
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
View file @
b54d7c63
...
...
@@ -209,6 +209,9 @@ void gpuPrintCudaAmoebaGmxSimulation(amoebaGpuContext amoebaGpu, FILE* log )
(
void
)
fprintf
(
log
,
" device %u
\n
"
,
gpu
->
device
);
(
void
)
fprintf
(
log
,
" sharedMemoryPerBlock %u
\n
"
,
gpu
->
sharedMemoryPerBlock
);
(
void
)
fprintf
(
log
,
" bOutputBufferPerWarp %d
\n
"
,
gpu
->
bOutputBufferPerWarp
);
(
void
)
fprintf
(
log
,
" blocks %u
\n
"
,
gpu
->
sim
.
blocks
);
(
void
)
fprintf
(
log
,
" threads_per_block %u
\n
"
,
gpu
->
sim
.
threads_per_block
);
(
void
)
fprintf
(
log
,
" update_threads_per_block %u
\n
"
,
gpu
->
sim
.
update_threads_per_block
);
(
void
)
fprintf
(
log
,
" nonbondBlocks %u
\n
"
,
gpu
->
sim
.
nonbond_blocks
);
(
void
)
fprintf
(
log
,
" nonbondThreadsPerBlock %u
\n
"
,
gpu
->
sim
.
nonbond_threads_per_block
);
(
void
)
fprintf
(
log
,
" nonbondOutputBuffers %u
\n
"
,
gpu
->
sim
.
nonbondOutputBuffers
);
...
...
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaMapTorques.cu
View file @
b54d7c63
...
...
@@ -359,7 +359,7 @@ void cudaComputeAmoebaMapTorqueAndAddToForce( amoebaGpuContext amoebaGpu, CUDASt
{
gpuContext
gpu
=
amoebaGpu
->
gpuContext
;
amoebaMapTorqueToForce_kernel
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
update_
threads_per_block
>>>
(
psTorque
->
_pDevData
);
amoebaMapTorqueToForce_kernel
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
threads_per_block
>>>
(
psTorque
->
_pDevData
);
LAUNCHERROR
(
"amoebaMapTorqueToForce"
);
}
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaPmeDirectElectrostatic.cu
View file @
b54d7c63
...
...
@@ -1965,7 +1965,7 @@ void cudaComputeAmoebaPmeDirectElectrostatic( amoebaGpuContext amoebaGpu )
kClearFields_3
(
amoebaGpu
,
1
);
//
#ifdef AMOEBA_DEBUG
#ifdef AMOEBA_DEBUG
if
(
amoebaGpu
->
log
){
(
void
)
fprintf
(
amoebaGpu
->
log
,
"kCalculateAmoebaPmeDirectElectrostaticCutoffForces: numBlocks=%u numThreads=%u bufferPerWarp=%u atm=%lu shrd=%lu ixnCt=%lu workUnits=%u maxL1=%d
\n
"
,
gpu
->
sim
.
nonbond_blocks
,
threadsPerBlock
,
gpu
->
bOutputBufferPerWarp
,
...
...
@@ -1973,7 +1973,7 @@ void cudaComputeAmoebaPmeDirectElectrostatic( amoebaGpuContext amoebaGpu )
(
*
gpu
->
psInteractionCount
)[
0
],
gpu
->
sim
.
workUnits
,
maxL1
);
(
void
)
fflush
(
amoebaGpu
->
log
);
}
//
#endif
#endif
if
(
gpu
->
bOutputBufferPerWarp
){
...
...
plugins/amoeba/platforms/cuda/src/kernels/kCalculateAmoebaCudaRotateFrame.cu
View file @
b54d7c63
...
...
@@ -388,7 +388,7 @@ void cudaComputeAmoebaLabFrameMoments( amoebaGpuContext amoebaGpu )
gpuContext
gpu
=
amoebaGpu
->
gpuContext
;
int
numBlocks
=
gpu
->
sim
.
blocks
;
int
numThreads
=
gpu
->
sim
.
update_
threads_per_block
;
int
numThreads
=
gpu
->
sim
.
threads_per_block
;
//#define AMOEBA_DEBUG
#ifdef AMOEBA_DEBUG
...
...
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