Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BioEM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MPIBP-Hummer
BioEM
Commits
cd864897
Commit
cd864897
authored
Jul 07, 2014
by
David Rohr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve debug messages
parent
25d2e7dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
21 deletions
+18
-21
bioem_cuda.cu
bioem_cuda.cu
+18
-21
No files found.
bioem_cuda.cu
View file @
cd864897
...
...
@@ -288,7 +288,6 @@ int bioem_cuda::selectCudaDevice()
}
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
printf
(
"CUDA device %d
\n
"
,
i
);
#if CUDA_VERSION > 3010
size_t
free
,
total
;
#else
...
...
@@ -301,11 +300,9 @@ int bioem_cuda::selectCudaDevice()
cuCtxCreate
(
&
tmpContext
,
0
,
tmpDevice
);
if
(
cuMemGetInfo
(
&
free
,
&
total
))
exit
(
1
);
cuCtxDestroy
(
tmpContext
);
if
(
DebugOutput
>=
1
)
printf
(
"Obtained current memory usage for device %d
\n
"
,
i
);
checkCudaErrors
(
cudaGetDeviceProperties
(
&
deviceProp
,
i
));
if
(
DebugOutput
>=
1
)
printf
(
"Obtained device properties for device %d
\n
"
,
i
);
if
(
DebugOutput
>=
1
)
printf
(
"
%2d: %s (Rev: %d.%d - Mem Avail %lld / %lld)
"
,
i
,
deviceProp
.
name
,
deviceProp
.
major
,
deviceProp
.
minor
,
(
long
long
int
)
free
,
(
long
long
int
)
deviceProp
.
totalGlobalMem
);
if
(
DebugOutput
>=
1
)
printf
(
"
CUDA Device %2d: %s (Rev: %d.%d - Mem Avail %lld / %lld)
\n
"
,
i
,
deviceProp
.
name
,
deviceProp
.
major
,
deviceProp
.
minor
,
(
long
long
int
)
free
,
(
long
long
int
)
deviceProp
.
totalGlobalMem
);
long
long
int
deviceSpeed
=
(
long
long
int
)
deviceProp
.
multiProcessorCount
*
(
long
long
int
)
deviceProp
.
clockRate
*
(
long
long
int
)
deviceProp
.
warpSize
;
if
(
deviceSpeed
>
bestDeviceSpeed
)
{
...
...
@@ -316,24 +313,24 @@ int bioem_cuda::selectCudaDevice()
cudaGetDeviceProperties
(
&
deviceProp
,
bestDevice
);
if
(
DebugOutput
>=
1
)
{
printf
(
"Using CUDA Device %s with Properties:"
,
deviceProp
.
name
);
printf
(
"totalGlobalMem = %lld"
,
(
unsigned
long
long
int
)
deviceProp
.
totalGlobalMem
);
printf
(
"sharedMemPerBlock = %lld"
,
(
unsigned
long
long
int
)
deviceProp
.
sharedMemPerBlock
);
printf
(
"regsPerBlock = %d"
,
deviceProp
.
regsPerBlock
);
printf
(
"warpSize = %d"
,
deviceProp
.
warpSize
);
printf
(
"memPitch = %lld"
,
(
unsigned
long
long
int
)
deviceProp
.
memPitch
);
printf
(
"maxThreadsPerBlock = %d"
,
deviceProp
.
maxThreadsPerBlock
);
printf
(
"maxThreadsDim = %d %d %d"
,
deviceProp
.
maxThreadsDim
[
0
],
deviceProp
.
maxThreadsDim
[
1
],
deviceProp
.
maxThreadsDim
[
2
]);
printf
(
"maxGridSize = %d %d %d"
,
deviceProp
.
maxGridSize
[
0
],
deviceProp
.
maxGridSize
[
1
],
deviceProp
.
maxGridSize
[
2
]);
printf
(
"totalConstMem = %lld"
,
(
unsigned
long
long
int
)
deviceProp
.
totalConstMem
);
printf
(
"major = %d"
,
deviceProp
.
major
);
printf
(
"minor = %d"
,
deviceProp
.
minor
);
printf
(
"clockRate = %d"
,
deviceProp
.
clockRate
);
printf
(
"memoryClockRate = %d"
,
deviceProp
.
memoryClockRate
);
printf
(
"multiProcessorCount = %d"
,
deviceProp
.
multiProcessorCount
);
printf
(
"textureAlignment = %lld"
,
(
unsigned
long
long
int
)
deviceProp
.
textureAlignment
);
if
(
DebugOutput
>=
2
)
{
printf
(
"Using CUDA Device %s with Properties:
\n
"
,
deviceProp
.
name
);
printf
(
"totalGlobalMem = %lld
\n
"
,
(
unsigned
long
long
int
)
deviceProp
.
totalGlobalMem
);
printf
(
"sharedMemPerBlock = %lld
\n
"
,
(
unsigned
long
long
int
)
deviceProp
.
sharedMemPerBlock
);
printf
(
"regsPerBlock = %d
\n
"
,
deviceProp
.
regsPerBlock
);
printf
(
"warpSize = %d
\n
"
,
deviceProp
.
warpSize
);
printf
(
"memPitch = %lld
\n
"
,
(
unsigned
long
long
int
)
deviceProp
.
memPitch
);
printf
(
"maxThreadsPerBlock = %d
\n
"
,
deviceProp
.
maxThreadsPerBlock
);
printf
(
"maxThreadsDim = %d %d %d
\n
"
,
deviceProp
.
maxThreadsDim
[
0
],
deviceProp
.
maxThreadsDim
[
1
],
deviceProp
.
maxThreadsDim
[
2
]);
printf
(
"maxGridSize = %d %d %d
\n
"
,
deviceProp
.
maxGridSize
[
0
],
deviceProp
.
maxGridSize
[
1
],
deviceProp
.
maxGridSize
[
2
]);
printf
(
"totalConstMem = %lld
\n
"
,
(
unsigned
long
long
int
)
deviceProp
.
totalConstMem
);
printf
(
"major = %d
\n
"
,
deviceProp
.
major
);
printf
(
"minor = %d
\n
"
,
deviceProp
.
minor
);
printf
(
"clockRate = %d
\n
"
,
deviceProp
.
clockRate
);
printf
(
"memoryClockRate = %d
\n
"
,
deviceProp
.
memoryClockRate
);
printf
(
"multiProcessorCount = %d
\n
"
,
deviceProp
.
multiProcessorCount
);
printf
(
"textureAlignment = %lld
\n
"
,
(
unsigned
long
long
int
)
deviceProp
.
textureAlignment
);
}
if
(
DebugOutput
>=
1
)
...
...
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