This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure: | |
Octave is now configured for x86_64-pc-linux-gnu | |
Source directory: . | |
Installation prefix: ~/.local/octave | |
C compiler: gcc -pthread -fopenmp -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 | |
C++ compiler: g++ -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 | |
Fortran compiler: gfortran -g -O2 | |
Fortran libraries: -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lgfortran -lm -lquadmath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on Ubuntu 17.10 | |
# https://www.scivision.dev/compiling-opencv3-with-extra-contributed-modules/ | |
$ cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules/ -DBUILD_TIFF=ON -DBUILD_opencv_java=OFF -DWITH_CUDA=OFF -DWITH_OPENGL=ON -DWITH_OPENCL=ON -DWITH_IPP=ON -DWITH_TBB=ON -DWITH_EIGEN=ON -DWITH_V4L=ON -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$(python -c "import sys; print(sys.prefix)") -DPYTHON_EXECUTABLE=$(which python) -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON_PACKAGES_PATH=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. | |
-- The CXX compiler identification is GNU 7.2.0 | |
-- The C compiler identification is GNU 7.2.0 | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ctest --output-on-failure | |
Test project /home/box/code/gemini/build | |
Start 7: MPIexist | |
1/13 Test #7: MPIexist ......................... Passed 0.61 sec | |
Start 8: MUMPS | |
2/13 Test #8: MUMPS ............................ Passed 1.02 sec | |
Start 11: DateFormats | |
3/13 Test #11: DateFormats ...................... Passed 0.04 sec | |
Start 1: GeminiGlow2D-NP2 | |
4/13 Test #1: GeminiGlow2D-NP2 ................. Passed 77.08 sec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MacOS 10.14.6 | |
$ cmake --version | |
cmake version 3.15.2 | |
$ git rev-parse --short HEAD | |
bf39419 | |
$ cmake -B build_cmake | |
-- The C compiler identification is AppleClang 10.0.1.10010046 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These were probably broken since I added PGI to Meson. I did not run the project tests as I should have back then, just that PGI worked with my projects and Meson. | |
# Here is a result on CentOS 7 from: | |
$ FC=pgfortran CC=pgcc CXX=pgc++ python run_project_tests.py --only common | |
Succeeded test: test cases/common/1 trivial | |
Succeeded test: test cases/common/2 cpp | |
Succeeded test: test cases/common/3 static | |
Succeeded test: test cases/common/4 shared | |
Succeeded test: test cases/common/5 linkstatic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ meson test -C build --suite 2d_fang -v | |
ninja: Entering directory `/mnt/c/code/gemini/build' | |
[13/13] Linking target gemini_glow.bin. | |
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0 | |
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0 | |
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0 | |
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0 | |
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0 | |
/mnt/c/code/gemini/initialize/test2d_fang/config.nml: simulation ymd is: 2013/02/20 | |
/mnt/c/code/gemini/initialize/test2d_fang/config.nml: simulation ymd is: 2013/02/20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is for use with a Hugo blog. | |
# be careful using this on real-life site, so that the patterns below don't dump legitimate traffic! | |
# we use 410 to be more aggressive than 404, and to unclutter Netlify statistics | |
/.env /bot.html 410 | |
/blog.zip /bot.html 410 | |
/.git/* /bot.html 410 | |
/browserconfig.xml /bot.html 410 | |
/OLD/* /bot.html 410 | |
/404.html /bot.html 410 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% this script is run on Azure (or local) | |
import matlab.unittest.TestRunner | |
import matlab.unittest.Verbosity | |
import matlab.unittest.plugins.CodeCoveragePlugin | |
import matlab.unittest.plugins.XMLPlugin | |
import matlab.unittest.plugins.codecoverage.CoberturaFormat | |
name = "MyProject"; | |
suite = testsuite(name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simg = load('clown'); | |
imgs = Simg.X; | |
file = 'img.h5'; | |
name = '/img'; | |
h5create(file, name, size(imgs)) | |
h5write(file, name, imgs) | |
h5writeatt(file, name, 'CLASS', 'IMAGE') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/pmodels/mpich.git | |
$ git checkout v3.4.1 | |
$ ./configure --prefix=$HOME/mpich-3.4.1 --disable-cxx | |
# NOTE: if CPPFLAGS not set, configure will fail in HWLOC. There is some bug in mpich/configure that just requires CPPFLAGS. | |
# | |
# configure complete, but make fails instantly: | |
$ make |