Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
santan-cuda-drr-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘劭荣(20软)
santan-cuda-drr-service
Commits
9ad482cd
Commit
9ad482cd
authored
Sep 20, 2020
by
刘劭荣(20软)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内存回收
parent
175478db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
drr.cpp
cuda-drr-socket/drr.cpp
+1
-1
socketManager.cpp
cuda-drr-socket/socketManager.cpp
+2
-1
cuda-drr-socket.iobj
x64/Release/cuda-drr-socket.iobj
+0
-0
cuda-drr-socket.ipdb
x64/Release/cuda-drr-socket.ipdb
+0
-0
No files found.
cuda-drr-socket/drr.cpp
View file @
9ad482cd
...
...
@@ -65,7 +65,7 @@ drr::drr(std::string input)
loadDICOMInGPUMemory
(
cpp_object3D
,
SizeCT
,
PixelSpacingCT
);
free
(
cpp_object3D
);
cpp_object3D
=
NULL
;
std
::
cout
<<
"
itk readfile :"
<<
(
double
)
clock
()
/
CLOCKS_PER_SEC
-
time
<<
std
::
endl
;
std
::
cout
<<
"
readfile time:"
<<
(
double
)
clock
()
/
CLOCKS_PER_SEC
-
time
<<
"s"
<<
std
::
endl
;
}
...
...
cuda-drr-socket/socketManager.cpp
View file @
9ad482cd
...
...
@@ -18,6 +18,7 @@ void socketManager::get_CUDAdrr(const char * path)
{
if
(
rd
!=
NULL
)
{
// 析构 释放GPU内存
//free(rd);
rd
=
NULL
;
}
rd
=
new
drr
(
path
);
...
...
@@ -80,7 +81,7 @@ void socketManager::open_socket() {
const
char
*
msg
=
"ct imported successfully"
;
send
(
sClient
,
msg
,
strlen
(
msg
),
0
);
///////
printf
(
"CT imported successfully :'%s'
\n
"
,
ret
-
3
,
CTpath
);
printf
(
"CT imported successfully :'%s'
\n
"
,
CTpath
);
}
else
if
(
szMessage
[
0
]
==
'P'
&&
szMessage
[
1
]
==
'A'
&&
szMessage
[
2
]
==
'R'
&&
szMessage
[
3
]
==
'A'
&&
...
...
x64/Release/cuda-drr-socket.iobj
View file @
9ad482cd
No preview for this file type
x64/Release/cuda-drr-socket.ipdb
View file @
9ad482cd
No preview for this file type
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