Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_pdata
Commits
980af42c
Commit
980af42c
authored
Feb 08, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working H5Part installation
parent
0edfa656
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
41 deletions
+77
-41
configure.ac
configure.ac
+17
-3
install
install
+60
-35
script/detect_fortran
script/detect_fortran
+0
-2
script/install_HDF5.sh
script/install_HDF5.sh
+0
-0
script/pre_req
script/pre_req
+0
-1
No files found.
configure.ac
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
########
...
...
install
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
...
...
script/detect_fortran
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
}
...
...
script/install_HDF5.sh
100644 → 100755
View file @
980af42c
File mode changed from 100644 to 100755
script/pre_req
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
...
...
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