Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASfpga
VILLASfpga
Commits
bf1e5f87
Commit
bf1e5f87
authored
Sep 20, 2018
by
Daniel Krebs
Browse files
gpu: be more verbose when freeing gpu memory
parent
4471d735
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gpu/gpu.cpp
View file @
bf1e5f87
...
...
@@ -30,6 +30,9 @@ GpuAllocator::GpuAllocator(Gpu& gpu) :
if
(
cudaFree
(
reinterpret_cast
<
void
*>
(
mem
->
getOffset
()))
!=
cudaSuccess
)
{
logger
->
warn
(
"cudaFree() failed for {:#x} of size {:#x}"
,
mem
->
getOffset
(),
mem
->
getSize
());
}
else
{
logger
->
debug
(
"cudaFree({:#x}) successfull (size was {:#x})"
,
mem
->
getOffset
(),
mem
->
getSize
());
}
removeMemoryBlock
(
*
mem
);
...
...
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