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
980af42c
Commit
980af42c
authored
9 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Working H5Part installation
parent
0edfa656
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
configure.ac
+17
-3
17 additions, 3 deletions
configure.ac
install
+60
-35
60 additions, 35 deletions
install
script/detect_fortran
+0
-2
0 additions, 2 deletions
script/detect_fortran
script/install_HDF5.sh
+0
-0
0 additions, 0 deletions
script/install_HDF5.sh
script/pre_req
+0
-1
0 additions, 1 deletion
script/pre_req
with
77 additions
and
41 deletions
configure.ac
+
17
−
3
View file @
980af42c
...
...
@@ -38,7 +38,7 @@ m4_ifdef([AX_LAPACK],,[m4_include([m4/ax_lapack.m4])])
m4_ifdef([AX_SUITESPARSE],,[m4_include([m4/ax_suitesparse.m4])])
m4_ifdef([AX_EIGEN],,[m4_include([m4/ax_eigen.m4])])
m4_ifdef([AX_LIB_HDF5],,[m4_include([m4/ax_lib_hdf5.m4])]])
m4_ifdef([AX_H5HUT],,[m4_include([m4/ax_h5hut.m4])])
CXXFLAGS+=" --std=c++11 "
NVCCFLAGS=" "
...
...
@@ -105,8 +105,22 @@ IMMDX_LIB_METIS([],[echo "Cannot detect metis, use the --with-metis option if it
## Check for HDF5
AX_LIB_HDF5([],[echo "Cannot detect hdf5, use the --with-hdf5 option if it is not installed in the default location"
exit 206])
AX_LIB_HDF5([parallel])
if test x"$with_hdf5" = x"no"; then
echo "Cannot detect hdf5, use the --with-hdf5 option if it is not installed in the default location"
exit 207
fi
#########
## Check for H5HUT
save_CC=$CC
CC=$CXX
AX_H5HUT([],[echo "Cannot detect h5hut, use the --with-h5hut option if it is not installed in the default location"
exit 208])
CC=$save_CC
########
...
...
This diff is collapsed.
Click to expand it.
install
+
60
−
35
View file @
980af42c
#! /bin/bash
source
script/help
source
script/discover_os
source
script/show_solutions
source
script/pre_req
source
script/remove_old
##
install_req
=
1
i_dir
=
" "
sq
=
0
while
getopts
:di:shc: FLAG
;
do
case
$FLAG
in
d
)
echo
"Disable depencencies installation"
install_req
=
0
;;
i
)
echo
"Setting dependencies installation dir:
$OPTARG
"
i_dir
=
$OPTARG
;;
s
)
echo
"Skipping user cin"
sq
=
1
;;
c
)
echo
"Fowarding options
$OPTARG
to configure script"
configure_options
=
$OPTARG
;;
h
)
#show help
#! /bin/bash
source
script/help
source
script/discover_os
source
script/show_solutions
source
script/pre_req
source
script/remove_old
##
install_req
=
1
i_dir
=
" "
sq
=
0
while
getopts
:di:shc: FLAG
;
do
case
$FLAG
in
d
)
echo
"Disable depencencies installation"
install_req
=
0
;;
i
)
echo
"Setting dependencies installation dir:
$OPTARG
"
i_dir
=
$OPTARG
;;
s
)
echo
"Skipping user cin"
sq
=
1
;;
c
)
echo
"Fowarding options
$OPTARG
to configure script"
configure_options
=
$OPTARG
;;
h
)
#show help
HELP
;;
\?
)
#unrecognized option - are fowarded to configure
...
...
@@ -138,6 +138,7 @@ LAPACK_installed=0
SUITESPARSE_installed
=
0
EIGEN_installed
=
0
HDF5_installed
=
0
H5HUT_installed
=
0
blas_options
=
""
conf_err
=
1
...
...
@@ -217,11 +218,21 @@ else
elif
[
$conf_err
-eq
207
]
;
then
echo
"HDF5 not found try to install"
if
[
$HDF5_installed
-eq
1
]
;
then
echo
"Error the installation of HDF5 failed"
echo
"Error the installation of HDF5 failed"
exit
1
fi
./script/install_HDF5.sh
$i_dir
$compiler_opt
configure_options
=
"
$configure_options
--with-hdf5=
$i_dir
/HDF5 "
configure_options
=
"
$configure_options
--with-hdf5=
$i_dir
/HDF5
/bin/h5pcc
"
HDF5_installed
=
1
elif
[
$conf_err
-eq
208
]
;
then
echo
"H5HUT not found try to install"
if
[
$H5HUT_installed
-eq
1
]
;
then
echo
"Error the installation of H5HUT failed"
exit
1
fi
./script/install_H5HUT.sh
$i_dir
$compiler_opt
configure_options
=
"
$configure_options
--with-h5hut=
$i_dir
/H5HUT/ "
H5HUT_installed
=
1
elif
[
$conf_err
-ne
0
]
;
then
echo
"I do not know how to recover from this error"
exit
1
...
...
@@ -320,6 +331,20 @@ if [ $SUITESPARSE_installed -eq 1 ]; then
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
$i_dir
/SUITESPARSE/lib
\"
\0
33[0m"
fi
fi
if
[
$EIGEN_installed
-eq
1
]
;
then
echo
""
echo
-e
"
\0
33[1;34;5m ---------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m --------------- EIGEN -----------------
\0
33[0m"
echo
-e
" EIGEN has been installed into:
\0
33[1m
$i_dir
/EIGEN
\0
33[0m"
echo
""
fi
if
[
$HDF5_installed
-eq
1
]
;
then
echo
""
echo
-e
"
\0
33[1;34;5m ---------------------------------------
\0
33[0m"
echo
-e
"
\0
33[1;34;5m ---------------- HDF5 -----------------
\0
33[0m"
echo
-e
" HDF5 has been installed into:
\0
33[1m
$i_dir
/HDF5
\0
33[0m"
echo
""
fi
echo
""
echo
""
if
[
$conf_err
-ne
0
]
;
then
...
...
This diff is collapsed.
Click to expand it.
script/detect_fortran
+
0
−
2
View file @
980af42c
...
...
@@ -8,8 +8,6 @@ function detect_fortran()
return
fi
echo
-e
"
$1
\0
33[92;1m SUCCESS
\0
33[0m"
dgc_ret
=
1
}
...
...
This diff is collapsed.
Click to expand it.
script/install_HDF5.sh
100644 → 100755
+
0
−
0
View file @
980af42c
File mode changed from 100644 to 100755
This diff is collapsed.
Click to expand it.
script/pre_req
+
0
−
1
View file @
980af42c
...
...
@@ -13,7 +13,6 @@ source script/solve_wget
source
script/solve_automake
source
script/solve_brew
source
script/solve_libtool
source
script/solve_fortran
source
script/detect_gcc
source
script/detect_osx
source
script/show_solutions
...
...
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