forked from verificarlo/verificarlo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'yohanchatelain-interflop'
- Loading branch information
Showing
191 changed files
with
87,367 additions
and
5,535 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "src/tools/sigdigits"] | ||
path = src/tools/sigdigits | ||
url = https://github.com/verificarlo/significantdigits | ||
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
autoreconf -is | ||
|
||
rm -rf src/tools/sigdigits/ | ||
git submodule update --init --recursive | ||
mkdir -p m4 | ||
cp $(interflop-config --m4dir)/*.m4 m4/ | ||
autoreconf -is |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/bash | ||
|
||
REPO=interflop | ||
ROOT=$PWD | ||
|
||
function check() { | ||
if [[ $? != 0 ]]; then | ||
echo "Error" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function Clone() { | ||
git clone $1 | ||
check | ||
} | ||
|
||
function Cd() { | ||
cd $1 | ||
check | ||
} | ||
|
||
function Autogen() { | ||
./autogen.sh | ||
check | ||
} | ||
|
||
function Configure() { | ||
./configure $@ | ||
check | ||
} | ||
|
||
function Make() { | ||
make | ||
check | ||
} | ||
|
||
function MakeInstall() { | ||
make install | ||
check | ||
} | ||
|
||
function install_stdlib() { | ||
Cd src/interflop-stdlib | ||
Autogen | ||
Configure --enable-warnings | ||
Make | ||
MakeInstall | ||
Cd ${ROOT} | ||
} | ||
|
||
function install_backend() { | ||
Cd src/backends/interflop-backend-$1 | ||
Autogen | ||
Configure --enable-warnings | ||
Make | ||
MakeInstall | ||
Cd ${ROOT} | ||
} | ||
|
||
# rm -rf src/interflop-stdlib | ||
# rm -rf src/backends/interflop-backend-* | ||
# git submodule update --init --recursive | ||
|
||
install_stdlib | ||
|
||
backends=(bitmask cancellation ieee mcaint mcaquad vprec) | ||
for backend in ${backends[@]}; do | ||
install_backend $backend | ||
done | ||
|
||
export LD_LIBRARY_PATH=$(interflop-config --libdir):$LD_LIBRARY_PATH |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[build-system] | ||
requires = ["hatchling", "pathspec"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "verificarlo" | ||
version = "0.9.1" | ||
description = "A tool for debugging and assessing floating point precision and reproducibility." | ||
authors = [ | ||
{ name = "Verificarlo contributors", email = "[email protected]" }, | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
license = { file = "COPYING" } | ||
dependencies = [ | ||
"numpy>=1.19", | ||
"bigfloat", | ||
"pandas", | ||
"tables", | ||
"scipy", | ||
"GitPython", | ||
"jinja2", | ||
"bokeh", | ||
"significantdigits>=0.1.2", | ||
] | ||
|
||
[tool.hatch.build] | ||
include = [ | ||
"src/tools/ddebug/*.py", | ||
"src/tools/ci/*.py", | ||
"src/tools/ci/vfc_ci_report/*.py", | ||
"src/tools/ci/vfc_ci_report/templates/index.html", | ||
"src/tools/ci/vfc_ci_report/static/index.js", | ||
"src/tools/ci/vfc_ci_report/workflow_templates/*.md", | ||
"src/tools/ci/vfc_ci_report/workflow_templates/*.yml", | ||
] | ||
|
||
[tool.hatch.build.sources] | ||
"src/tools" = "verificarlo" | ||
"src/tools/ddebug" = "verificarlo/" | ||
"src/tools/ci" = "verificarlo/ci" | ||
"src/tools/ci/vfc_ci_report" = "verificarlo/ci/vfc_ci_report" | ||
"src/tools/ci/vfc_ci_report/workflow_templates" = "verificarlo/ci/vfc_ci_report/workflow_templates" | ||
"src/tools/ci/vfc_ci_report/static" = "verificarlo/ci/vfc_ci_report/static" | ||
|
||
|
||
[tool.hatch.build.targets.verificarlo] | ||
packages = ["src/tools/ddebug", "src/tools/ci"] | ||
|
||
[project.scripts] | ||
vfc_ddebug = "verificarlo.ddebug.main:main" | ||
vfc_ci = "verificarlo.ci.__main__:main" | ||
vfc_precexp = "verificarlo.optimize.precexp:main" | ||
vfc_report = "verificarlo.optimize.report:main" | ||
vfc_vtk = "verificarlo.vtk.__main__:main" | ||
|
||
[project.urls] | ||
"Bug Tracker" = "https://github.com/verificarlo/verificarlo/issues" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
SUBDIRS=common libvfcfuncinstrument libvfcinstrument backends vfcwrapper tools | ||
include_HEADERS=common/interflop.h common/vfc_hashmap.h common/vfc_probes.h | ||
SUBDIRS=common libvfcfuncinstrument libvfcinstrument vfcwrapper | ||
include_HEADERS= common/vfc_probes.h |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ACLOCAL_AMFLAGS=-I m4 | ||
lib_LTLIBRARIES = libinterflop_bitmask.la libinterflop_bitmask_no-tls.la | ||
|
||
if ENABLE_LTO | ||
LTO_FLAGS = -flto | ||
else | ||
LTO_FLAGS = | ||
endif | ||
|
||
if ENABLE_WARNINGS | ||
WARNING_FLAGS = -Wall -Wextra -Wno-varargs | ||
else | ||
WARNING_FLAGS = | ||
endif | ||
|
||
# Backend version with TLS enabled | ||
libinterflop_bitmask_la_SOURCES = interflop_bitmask.c | ||
|
||
libinterflop_bitmask_la_CFLAGS = \ | ||
-I@INTERFLOP_INCLUDEDIR@ \ | ||
-fno-stack-protector $(LTO_FLAGS) -O3 \ | ||
-DRNG_THREAD_SAFE \ | ||
$(LTO_FLAGS) -O3 \ | ||
$(WARNING_FLAGS) | ||
|
||
libinterflop_bitmask_la_LDFLAGS = $(LTO_FLAGS) -O3 | ||
|
||
libinterflop_bitmask_la_LIBADD = \ | ||
@INTERFLOP_LIBDIR@/libinterflop_rng.la \ | ||
@INTERFLOP_LIBDIR@/libinterflop_fma.la \ | ||
@INTERFLOP_LIBDIR@/libinterflop_logger.la \ | ||
@INTERFLOP_LIBDIR@/libinterflop_stdlib.la | ||
|
||
# Backend version with TLS disabled | ||
libinterflop_bitmask_no_tls_la_SOURCES = interflop_bitmask.c | ||
|
||
libinterflop_bitmask_no_tls_la_CFLAGS = \ | ||
-I@INTERFLOP_INCLUDEDIR@ \ | ||
-fno-stack-protector $(LTO_FLAGS) -O3 \ | ||
$(LTO_FLAGS) -O3 \ | ||
$(WARNING_FLAGS) | ||
|
||
libinterflop_bitmask_no_tls_la_LIBADD = \ | ||
@INTERFLOP_LIBDIR@/libinterflop_rng.la \ | ||
@INTERFLOP_LIBDIR@/libinterflop_fma.la \ | ||
@INTERFLOP_LIBDIR@/libinterflop_logger.la \ | ||
@INTERFLOP_LIBDIR@/libinterflop_stdlib.la | ||
|
||
includesdir=$(includedir)/interflop | ||
includes_HEADERS= interflop_bitmask.h | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p m4 | ||
cp $(interflop-config --m4dir)/*.m4 m4/ | ||
autoreconf -is |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
AC_INIT([interflop-backend-verrou],[1.0],[[email protected]]) | ||
AM_SILENT_RULES([yes]) | ||
AC_CONFIG_AUX_DIR(autoconf) | ||
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign]) | ||
AC_CONFIG_MACRO_DIRS([m4]) | ||
AC_PROG_CC | ||
AC_PROG_CXX | ||
AM_PROG_AR | ||
AC_CONFIG_HEADERS([config.h]) | ||
LT_INIT | ||
AC_PROG_INSTALL | ||
AC_PROG_LN_S | ||
AC_PROG_MAKE_SET | ||
|
||
AX_WARNINGS() | ||
AX_LTO() | ||
AX_INTERFLOP_STDLIB() | ||
AX_INTERFLOP_RNG() | ||
|
||
AC_CONFIG_FILES([Makefile]) | ||
AC_OUTPUT |
Oops, something went wrong.