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
8689a536
Commit
8689a536
authored
Aug 26, 2009
by
Peter Eastman
Browse files
Minor bug fix
parent
8d206abc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
platforms/cuda/src/kernels/cudaCompact.cu
platforms/cuda/src/kernels/cudaCompact.cu
+3
-1
No files found.
platforms/cuda/src/kernels/cudaCompact.cu
View file @
8689a536
...
@@ -184,8 +184,10 @@ __global__ void moveValidElementsScattered(const T* dgData,T* dgCompact,const un
...
@@ -184,8 +184,10 @@ __global__ void moveValidElementsScattered(const T* dgData,T* dgCompact,const un
}
}
void
planCompaction
(
compactionPlan
&
d
,
bool
stageOutput
)
{
void
planCompaction
(
compactionPlan
&
d
,
bool
stageOutput
)
{
int
device
;
cudaGetDevice
(
&
device
);
cudaDeviceProp
deviceProp
;
cudaDeviceProp
deviceProp
;
cudaGetDeviceProperties
(
&
deviceProp
,
0
);
cudaGetDeviceProperties
(
&
deviceProp
,
device
);
d
.
nThreadBlocks
=
16
*
deviceProp
.
multiProcessorCount
;
d
.
nThreadBlocks
=
16
*
deviceProp
.
multiProcessorCount
;
cudaMalloc
((
void
**
)
&
(
d
.
dgBlockCounts
),
d
.
nThreadBlocks
*
sizeof
(
unsigned
int
));
cudaMalloc
((
void
**
)
&
(
d
.
dgBlockCounts
),
d
.
nThreadBlocks
*
sizeof
(
unsigned
int
));
d
.
stageOutput
=
stageOutput
;
d
.
stageOutput
=
stageOutput
;
...
...
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