Skip to content

Instantly share code, notes, and snippets.

View scivision's full-sized avatar
💭
I will be slow to respond.

scivision

💭
I will be slow to respond.
View GitHub Profile
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
@scivision
scivision / opencv3-extras-cmake-output.txt
Last active July 25, 2019 03:03
CMake output from OpenCV 3 + OpenCV 3 contrib extra modules
# 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
@scivision
scivision / CMakeError.log
Last active July 30, 2019 13:09
Gemini GLOW errors on git rev 99c41d18
$ 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
@scivision
scivision / cmake_build_macos.log
Created August 16, 2019 17:43
Gemini build and test: MacOS with CMake
# 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
@scivision
scivision / common_failures.log
Last active August 21, 2019 05:22
Meson PGI debugging
# 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
@scivision
scivision / gfortran7wsl:testlog.txt
Last active December 1, 2019 20:28
Gemini Meson test false failures
$ 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
@scivision
scivision / _redirects
Last active February 15, 2021 08:40
Netlify public/_redirects for bot log diversion
# 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
@scivision
scivision / TestAll.m
Created February 17, 2021 20:47
Matlab CI on Azure Pipelines
% 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);
@scivision
scivision / image_stack_hdf5.m
Last active February 18, 2021 02:56
HDF5 image stack writing, suitable for HDFView video player
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')
@scivision
scivision / configure.output.mpich
Last active February 22, 2021 04:24
Intel oneAPI MacOS 11.x: Trying to get MPI library working (MPICH, or OpenMPI)
$ 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