Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
59b6b5bc
Commit
59b6b5bc
authored
4 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing several memory leak
parent
21227cad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2094
passed
4 years ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
configure
+4
-0
4 additions, 0 deletions
configure
src/CMakeLists.txt
+6
-0
6 additions, 0 deletions
src/CMakeLists.txt
src/Decomposition/Distribution/parmetis_util.hpp
+75
-2
75 additions, 2 deletions
src/Decomposition/Distribution/parmetis_util.hpp
with
86 additions
and
2 deletions
CMakeLists.txt
+
1
−
0
View file @
59b6b5bc
...
...
@@ -36,6 +36,7 @@ set(PARMETIS_DIR ${PARMETIS_ROOT})
set
(
OPENBLAS_ROOT CACHE PATH
"Root path for blas library"
)
set
(
SuiteSparse_ROOT
${
SUITESPARSE_ROOT
}
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CUDA_STANDARD 11
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3"
)
...
...
This diff is collapsed.
Click to expand it.
configure
+
4
−
0
View file @
59b6b5bc
...
...
@@ -119,6 +119,7 @@ with_petsc
with_eigen
with_vcdevel
enable_gpu
enable_asan
'
rm
-rf
build
...
...
@@ -246,6 +247,9 @@ do
fi
conf_options
=
"
$conf_options
-DENABLE_GPU=ON"
;;
asan
)
conf_options
=
"
$conf_options
-DENABLE_ASAN=ON"
;;
*
)
ac_unrecognized_opts
=
"
$ac_unrecognized_opts$ac_unrecognized_sep
--enable-
$ac_useropt_orig
"
ac_unrecognized_sep
=
', '
;;
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
6
−
0
View file @
59b6b5bc
...
...
@@ -50,6 +50,12 @@ if ( CMAKE_COMPILER_IS_GNUCC )
endif
()
endif
()
if
(
ENABLE_ASAN
)
target_compile_options
(
pdata PUBLIC $<$<COMPILE_LANGUAGE:CUDA>: -Xcompiler
"-fsanitize=address -fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame-pointer -g"
>
)
target_compile_options
(
pdata PRIVATE $<$<COMPILE_LANGUAGE:CXX>: -fsanitize=address -fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame-pointer -g >
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-fsanitize=address -fno-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame-pointer"
)
endif
()
add_library
(
ofpm_pdata STATIC lib/pdata.cpp
)
add_test
(
NAME pdata_3_proc COMMAND mpirun -np 3 ./pdata
)
...
...
This diff is collapsed.
Click to expand it.
src/Decomposition/Distribution/parmetis_util.hpp
+
75
−
2
View file @
59b6b5bc
...
...
@@ -327,6 +327,21 @@ public:
delete
[]
Mg
.
wgtflag
;
}
if
(
Mg
.
itr
!=
NULL
)
{
delete
[]
Mg
.
itr
;
}
if
(
Mg
.
vsize
!=
NULL
)
{
delete
[]
Mg
.
vsize
;
}
if
(
Mg
.
objval
!=
NULL
)
{
delete
[]
Mg
.
objval
;
}
if
(
is_openfpm_init
()
==
true
)
{
MPI_Comm_free
(
&
comm
);}
}
...
...
@@ -354,8 +369,6 @@ public:
// construct the adjacency list
constructAdjList
(
g
,
m2g
);
//reset(g, vtxdist, m2g, w);
}
/*! \brief Decompose the graph
...
...
@@ -446,6 +459,66 @@ public:
delete
[]
Mg
.
part
;
}
if
(
Mg
.
vsize
!=
NULL
)
{
delete
[]
Mg
.
vsize
;
}
if
(
Mg
.
options
!=
NULL
)
{
delete
[]
Mg
.
options
;
}
if
(
Mg
.
ncon
!=
NULL
)
{
delete
[]
Mg
.
ncon
;
}
if
(
Mg
.
edgecut
!=
NULL
)
{
delete
[]
Mg
.
edgecut
;
}
if
(
Mg
.
wgtflag
!=
NULL
)
{
delete
[]
Mg
.
wgtflag
;
}
if
(
Mg
.
numflag
!=
NULL
)
{
delete
[]
Mg
.
numflag
;
}
if
(
Mg
.
nparts
!=
NULL
)
{
delete
[]
Mg
.
nparts
;
}
if
(
Mg
.
nvtxs
!=
NULL
)
{
delete
[]
Mg
.
nvtxs
;
}
if
(
Mg
.
objval
!=
NULL
)
{
delete
[]
Mg
.
objval
;
}
if
(
Mg
.
ubvec
!=
NULL
)
{
delete
[]
Mg
.
ubvec
;
}
if
(
Mg
.
itr
!=
NULL
)
{
delete
[]
Mg
.
itr
;
}
if
(
Mg
.
tpwgts
!=
NULL
)
{
delete
[]
Mg
.
tpwgts
;
}
setDefaultParameters
(
vgw
);
// construct the adjacency list
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment