Skip to content
Snippets Groups Projects
Commit 1eee3a9d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

umfpack for mobile app

parent 41bcf703
Branches
Tags
No related merge requests found
...@@ -94,7 +94,7 @@ opt(ZIPPER "Enable Zip file compression/decompression" OFF) ...@@ -94,7 +94,7 @@ opt(ZIPPER "Enable Zip file compression/decompression" OFF)
set(GMSH_MAJOR_VERSION 2) set(GMSH_MAJOR_VERSION 2)
set(GMSH_MINOR_VERSION 14) set(GMSH_MINOR_VERSION 14)
set(GMSH_PATCH_VERSION 0) set(GMSH_PATCH_VERSION 1)
set(GMSH_EXTRA_VERSION "" CACHE STRING "Gmsh extra version string") set(GMSH_EXTRA_VERSION "" CACHE STRING "Gmsh extra version string")
set(GMSH_VERSION "${GMSH_MAJOR_VERSION}.${GMSH_MINOR_VERSION}") set(GMSH_VERSION "${GMSH_MAJOR_VERSION}.${GMSH_MINOR_VERSION}")
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.4.2</string> <string>1.5.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.4.2.0</string> <string>1.5.0.0</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIFileSharingEnabled</key> <key>UIFileSharingEnabled</key>
......
...@@ -56,7 +56,7 @@ if [ ! -d "$getdp_svn/build_android" ] || [ ! -f "$getdp_svn/build_android/CMake ...@@ -56,7 +56,7 @@ if [ ! -d "$getdp_svn/build_android" ] || [ ! -f "$getdp_svn/build_android/CMake
mkdir $getdp_svn/build_android mkdir $getdp_svn/build_android
fi fi
cd $getdp_svn/build_android cd $getdp_svn/build_android
PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_SHARED=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_lib/Headers;$petsc_lib/Headers/mpiuni" -DPETSC_LIBS="$petsc_lib/libpetsc.so" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_lib/Headers/" -DSLEPC_LIB="$slepc_lib/libslepc.so" -DGMSH_INC="$gmsh_svn/build_android/Headers/" -DGMSH_LIB="$gmsh_svn/build_android/libs/libGmsh.so" -DBLAS_LAPACK_LIBRARIES="$petsc_lib/libf2cblas.so;$petsc_lib/libf2clapack.so" .. PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_SHARED=1 -DENABLE_GMSH=1 -DENABLE_KERNEL=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_lib/Headers;$petsc_lib/Headers/mpiuni" -DPETSC_LIBS="$petsc_lib/libpetsc.so" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_lib/Headers/" -DSLEPC_LIB="$slepc_lib/libslepc.so" -DGMSH_INC="$gmsh_svn/build_android/Headers/" -DGMSH_LIB="$gmsh_svn/build_android/libs/libGmsh.so" -DBLAS_LAPACK_LIBRARIES="$petsc_lib/libf2cblas.so;$petsc_lib/libf2clapack.so" ..
check check
make androidGetdp -j$cmake_thread make androidGetdp -j$cmake_thread
check check
......
...@@ -54,7 +54,7 @@ ln -s . gmsh ...@@ -54,7 +54,7 @@ ln -s . gmsh
cd $getdp_svn && svn up cd $getdp_svn && svn up
mkdir -p $getdp_svn/build_ios mkdir -p $getdp_svn/build_ios
cd $getdp_svn/build_ios cd $getdp_svn/build_ios
PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_framework/Headers/" -DGMSH_LIB="$gmsh_framework/Gmsh" .. PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_KERNEL=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_framework/Headers/" -DGMSH_LIB="$gmsh_framework/Gmsh" ..
check check
$build_cmd OTHER_CFLAGS="-miphoneos-version-min=8.0 -fembed-bitcode" OTHER_CPLUSPLUSFLAGS="-miphoneos-version-min=8.0 -fembed-bitcode" $build_cmd OTHER_CFLAGS="-miphoneos-version-min=8.0 -fembed-bitcode" OTHER_CPLUSPLUSFLAGS="-miphoneos-version-min=8.0 -fembed-bitcode"
check check
......
...@@ -54,7 +54,7 @@ ln -s . gmsh ...@@ -54,7 +54,7 @@ ln -s . gmsh
cd $getdp_svn && svn up cd $getdp_svn && svn up
mkdir -p $getdp_svn/build_iossimulator mkdir -p $getdp_svn/build_iossimulator
cd $getdp_svn/build_iossimulator cd $getdp_svn/build_iossimulator
PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_LEGACY=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_framework/Headers/" -DGMSH_LIB="$gmsh_framework/Gmsh" .. PETSC_DIR= PETSC_ARCH= SLEPC_DIR= cmake $cmake_default -DENABLE_BLAS_LAPACK=1 -DENABLE_BUILD_LIB=1 -DENABLE_GMSH=1 -DENABLE_KERNEL=1 -DENABLE_PETSC=1 -DPETSC_INC="$petsc_framework/Headers/" -DPETSC_LIBS="$petsc_framework/petsc" -DENABLE_SLEPC=1 -DSLEPC_INC="$slepc_framework/Headers/" -DSLEPC_LIB="$slepc_framework/slepc" -DGMSH_INC="$gmsh_framework/Headers/" -DGMSH_LIB="$gmsh_framework/Gmsh" ..
check check
$build_cmd OTHER_CFLAGS="-mios-simulator-version-min=8.0" OTHER_CPLUSPLUSFLAGS="-mios-simulator-version-min=8.0" $build_cmd OTHER_CFLAGS="-mios-simulator-version-min=8.0" OTHER_CPLUSPLUSFLAGS="-mios-simulator-version-min=8.0"
check check
......
#!/bin/sh
archs="i386 x86_64"
#archs="armv7 armv7s arm64"
mkdir -p tmplib
for arch in $archs; do
mkdir -p $arch
for i in $*; do
lipo $i -thin $arch -o ${i}_${arch}
cd $arch
ar x ../${i}_${arch}
cd ..
rm ${i}_${arch}
done
ar r tmplib/${arch}.a ${arch}/*.o
rm -rf ${arch}
done
lipo -create tmplib/*.a -output merged_petsc_lib.a
rm -rf tmplib
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
######## edit src/system/err.c to remove the exception throwing code ######## edit src/system/err.c to remove the exception throwing code
######## edit android_real/lib/petsc/conf/petscvariables: ######## edit android_real/lib/petsc/conf/petscvariables:
######## remove the dylib stuff ######## remove the dylib stuff
######## edit SL_LINKER_FUNCTION ######## edit SL_LINKER_FUNCTION: SL_LINKER_FUNCTION = -shared
######## add "-Wl,--unresolved-symbols=ignore-all" to the linker flags to ######## edit SONAME_FUNCTION: SONAME_FUNCTION=$(1).$(2).so
######## add "-Wl,--unresolved-symbols=ignore-all" to the PCC_LINKER_FLAGS to
######## fix undefined ref to 'main' ######## fix undefined ref to 'main'
if __name__ == '__main__': if __name__ == '__main__':
...@@ -53,6 +54,7 @@ if __name__ == '__main__': ...@@ -53,6 +54,7 @@ if __name__ == '__main__':
'--with-fc=0', '--with-fc=0',
'--with-lapack-lib=' + externallibs + 'libf2clapack.so', '--with-lapack-lib=' + externallibs + 'libf2clapack.so',
'--with-mpi=0', '--with-mpi=0',
'--download-suitesparse=yes',
'--with-shared-libraries=1', '--with-shared-libraries=1',
'--with-x=0', '--with-x=0',
'-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include/', '-I' + ndkroot + 'sources/cxx-stl/gnu-libstdc++/4.6/include/',
......
...@@ -5,8 +5,9 @@ if __name__ == '__main__': ...@@ -5,8 +5,9 @@ if __name__ == '__main__':
sys.path.insert(0, os.path.abspath('config')) sys.path.insert(0, os.path.abspath('config'))
import configure import configure
configure_options = [ configure_options = [
'--CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=7.0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -DPETSC_BLASLAPACK_UNDERSCORE', '--CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=8.0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -DPETSC_BLASLAPACK_UNDERSCORE',
'--CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=7.0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -DPETSC_BLASLAPACK_UNDERSCORE', '--CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -miphoneos-version-min=8.0 -arch armv7 -arch armv7s -arch arm64 -fembed-bitcode -DPETSC_BLASLAPACK_UNDERSCORE',
'--download-suitesparse=yes',
'--known-bits-per-byte=8', '--known-bits-per-byte=8',
'--known-endian=little', '--known-endian=little',
'--known-level1-dcache-assoc=1', '--known-level1-dcache-assoc=1',
......
...@@ -5,10 +5,13 @@ if __name__ == '__main__': ...@@ -5,10 +5,13 @@ if __name__ == '__main__':
sys.path.insert(0, os.path.abspath('config')) sys.path.insert(0, os.path.abspath('config'))
import configure import configure
configure_options = [ configure_options = [
'--CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -miphoneos-version-min=7.0 -arch i386 -arch x86_64 -DPETSC_BLASLAPACK_UNDERSCORE', '--CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -miphoneos-version-min=8.0 -arch i386 -arch x86_64 -DPETSC_BLASLAPACK_UNDERSCORE',
'--CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -miphoneos-version-min=7.0 -arch i386 -arch x86_64 -DPETSC_BLASLAPACK_UNDERSCORE', '--CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -miphoneos-version-min=8.0 -arch i386 -arch x86_64 -DPETSC_BLASLAPACK_UNDERSCORE',
'--download-suitesparse=yes',
'--with-batch=1',
'--with-blas-lib=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib', '--with-blas-lib=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib',
'--with-clanguage=cxx', '--with-clanguage=cxx',
'--with-cmake=1',
'--with-debugging=0', '--with-debugging=0',
'--with-fc=0', '--with-fc=0',
'--with-ios=1', '--with-ios=1',
......
2.14.1 (October 29, 2016): fixed regression in periodic meshes; small bug fixes
and code cleanups.
2.14.0 (October 9, 2016): new Tochnog file format export; added ability to 2.14.0 (October 9, 2016): new Tochnog file format export; added ability to
remove last command in scripts generated interactively; ONELAB 1.3 with remove last command in scripts generated interactively; ONELAB 1.3 with
usability and performance improvements; faster "Coherence Mesh". usability and performance improvements; faster "Coherence Mesh".
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment