Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neumaier summation, control options #217

Open
wants to merge 142 commits into
base: numeric_tests
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
bbbcbfc
G.M. -- Adding Neumaier summation in C++, changed control list to acc…
Mar 26, 2020
ee39db9
G.M. -- Added time trial files.
Apr 7, 2020
5f88e00
G.M. -- Split n_mat_sumcpp into n_sigma_sumcpp and n_beta_sumcpp remo…
Apr 9, 2020
6d0754a
G.M. -- Implemented different versions of the beta summation and adde…
Apr 9, 2020
c2f7eb4
G.M. -- Added various versions of the n_beta_sumcpp function, various…
Apr 21, 2020
24533a2
G.M. -- Updated the n_beta_sumcpp based on my last meeting w/ Brandon.
Apr 21, 2020
b6b2b63
G.M. -- Modified std::abs to fabs.
Apr 22, 2020
af4ac74
G.M. -- Added combo beta matrix summation code, and matrix manipulation.
May 4, 2020
3370206
G.M. -- Added combo beta matrix summation code to STMEstep, and added…
May 5, 2020
687bf85
G.M. -- Updated combo beta matrix summation code.
May 5, 2020
4e7f0ef
G.M. -- Updated basic_test.R.
May 5, 2020
89248e2
G.M. -- Updated gradcpp to use integer vector.
May 5, 2020
788248f
G.M. -- Moved stable summation entirely in STMestep.R, Added combo su…
Jun 3, 2020
7185fa3
G.M. -- Removed uncessary clutter from the repo.
Jun 3, 2020
23fd6fc
G.M. -- Added randomized docs stability test, and Matrix:: in the STM…
Jun 10, 2020
6aaf9db
G.M. -- Minor bug in tests.R.
Jun 10, 2020
6189660
G.M. -- Minor bug in tests.R.
Jun 10, 2020
ed4d9ad
G.M. -- Updated randomized docs stability tests and added control tes…
Jun 10, 2020
0ab8372
G.M. -- Added big data test.
Jun 11, 2020
1e0ea68
G.M. -- Added big data test.
Jun 11, 2020
190e168
G.M. -- Added big data test.
Jun 11, 2020
ab92ed0
G.M. -- Added big data test.
Jun 12, 2020
14fa7de
G.M. -- Added github actions .yml to sumcpp branch.
Jun 29, 2020
628b918
G.M. -- Updated github actions .yml on sumcpp branch.
Jun 29, 2020
011a825
G.M. -- Updated github actions .yml on sumcpp branch.
Jun 29, 2020
367c759
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
1f8ab1b
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
4216a7c
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
594297b
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
1a24467
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
bd503cc
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
0e9e8a1
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
c8eaa13
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
bc3122b
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
0c19cf6
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
a573928
G.M. -- Updated ./*.yml file(s).
Jun 29, 2020
8552569
G.M. -- Updated ./*.yml file(s).
Jun 30, 2020
81e6ca0
G.M. -- Updated ./*.yml file(s).
Jun 30, 2020
2ee83b5
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
7010194
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
f577957
Adding stability test R script.
Jun 30, 2020
17f6949
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
e466689
removed sequential_stab_test.yml from the repo.
Jun 30, 2020
731c973
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
99f1ad7
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
6edebb7
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
9e138fe
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
e6ed894
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
9dfb39d
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
a214e2c
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
87aff4c
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
89f866d
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
a34b858
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
049e852
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
b6b9ffb
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
b581820
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
34ebcce
G.M. -- Updated ./stability_test.yml file(s).
Jun 30, 2020
70dadfe
Fixed stab_test.R
Jun 30, 2020
2570cf9
Check for warnings in stab_test.R
Jun 30, 2020
f3f13a1
Modfied stab_test.R to run init.type with Random.
Jun 30, 2020
62c3008
Print matrix norms for randomized init.
Jul 24, 2020
8f5fbc4
Trace diff by checking norms.
Jul 24, 2020
794f77b
Trace diff by checking norms.
Jul 24, 2020
72d92f9
Print matrix norms for randomized init.
Jul 24, 2020
ec16b47
Adding multipole workflows for testing.
Jul 25, 2020
57dfb59
Added cross platform stability tests that run on the cluster.
Jul 25, 2020
6e6ece0
Updated cross platform stability test.
Jul 25, 2020
eccde8a
Updated cross platform stability test and added in platform stability…
Jul 25, 2020
fcf00cc
Updated cross platform test file.
Jul 25, 2020
d614e58
Updated cross platform test script.
Jul 25, 2020
be578ee
Updated cross platform tests.
Jul 26, 2020
90a564f
Updated cross platform tests.
Jul 26, 2020
eacf28a
Updated cross platform tests.
Jul 26, 2020
bf7bd2a
Updated cross platform tests.
Jul 26, 2020
c1978f4
Updated cross platform tests.
Jul 27, 2020
cb32df8
Updated cross platform tests with new opt method.
Jul 27, 2020
914132f
Cross platform opt method test.
Jul 27, 2020
114f23b
Cross platform opt method test.
Jul 27, 2020
24502fb
Cross platform opt method test.
Jul 27, 2020
081afe8
Updated tests to use L-BFGS-B.
Jul 28, 2020
13f4ba1
Updated tests to use CG.
Jul 28, 2020
5eb36ed
Updated workflow.
Jul 28, 2020
5df8145
Test with optimr.
Jul 28, 2020
c5583fd
Test with optimr.
Jul 29, 2020
9827bf4
Test with optim.
Jul 29, 2020
0a33093
Test with optim.
Jul 29, 2020
43d418c
Test with optim.
Jul 29, 2020
f8b0e56
Test with optim.
Jul 29, 2020
ddc09ff
Increased presolve test (20) with optim.
Jul 29, 2020
afa48fb
Increased presolve test (20) with and post proc (3) optim.
Jul 29, 2020
4eda5ac
Post proc (20) test with optim.
Jul 29, 2020
98e7f83
Post proc (50) test with optim.
Jul 29, 2020
a451fd3
Test with optimr.
Jul 29, 2020
5e62dcf
Test with optimr.
Jul 29, 2020
6e8c487
Test with optimr.
Jul 29, 2020
5d0b6b9
Test with optimr (BFGS).
Jul 29, 2020
066342b
ucminf test.
Jul 30, 2020
5cdde07
ucminf test.
Jul 30, 2020
9d64081
Get optimr BFGS results.
Jul 31, 2020
0d96256
Get fminucon results.
Jul 31, 2020
456d4a2
Proper klkisf test.
Jul 31, 2020
3353f1f
Proper ucminf test.
Jul 31, 2020
d822e84
Proper ucminf test.
Jul 31, 2020
a3b204f
Proper BFGS test.
Jul 31, 2020
2c524eb
Proper nlm test.
Aug 1, 2020
1a33bce
ucminf test increasedt.
Aug 1, 2020
d98cd04
BFGS test uniform.
Aug 1, 2020
7d4f241
ucminf increasd sp.
Aug 1, 2020
bcee6f7
ucminf increasd sp.
Aug 1, 2020
04ffc7e
BFGS increasd sp.
Aug 1, 2020
8c981fa
BFGS original.
Aug 1, 2020
19c2b69
BFGS original.
Aug 1, 2020
8e62768
ucminf increased sp.
Aug 1, 2020
2b5b119
BFGS original.
Aug 1, 2020
8c51938
ucminf increased sp.
Aug 1, 2020
e604024
ucminf doc level 1e-6.
Aug 3, 2020
2966360
ucminf doc level 1e-6.
Aug 4, 2020
6ff5839
ucminf doc level 1e-6 + val.
Aug 4, 2020
213be2f
ucminf doc level 1e-6 + val (mac, ubuntu).
Aug 4, 2020
2fe5572
ucminf doc level 1e-6 + val (mac, ubuntu) increased comp tol.
Aug 4, 2020
be5c757
ucminf doc level 1e-11 + val (mac, ubuntu) increased comp tol.
Aug 4, 2020
d37d1ba
ucminf doc level 1e-11 + val (mac, ubuntu) comp tol 1e-11.
Aug 4, 2020
4b013c8
ucminf doc level 1e-6 + val (mac, ubuntu) comp tol 1e-11.
Aug 4, 2020
65c26a8
ucminf doc level 1e-5 + val (mac, ubuntu) comp tol 1e-11.
Aug 4, 2020
2ac2631
ucminf doc level 1e-7 + val (mac, ubuntu) comp tol 1e-11.
Aug 4, 2020
d890696
ucminf doc level 1e-8 + val (mac, ubuntu) comp tol 1e-11.
Aug 4, 2020
7b7b636
ucminf doc level 1e-4 + val (mac, ubuntu) comp tol 1e-11.
Aug 4, 2020
a3f6ec9
Setting up .R/Makevars.
Aug 4, 2020
b9211d8
Setting up .R/Makevars.
Aug 4, 2020
f79fea2
Setting up .R/Makevars.
Aug 4, 2020
4681535
Setting up .R/Makevars.
Aug 4, 2020
59c4280
Setting up .R/Makevars.
Aug 4, 2020
0cc6faa
xpl (60, 110), ucminf (1e-6), gnu.
Aug 4, 2020
c904769
xpl (60, 110), ucminf (1e-6), gnu.
Aug 4, 2020
f76e680
xpl (60, 110), ucminf (1e-6), gnu.
Aug 4, 2020
72b29c2
xpl (60, 110), ucminf (1e-6), gnu.
Aug 5, 2020
6701e6f
xpl (60, 110), ucminf (1e-10), gnu.
Aug 5, 2020
5ac64f8
xpl (5 ... 110), ucminf (1e-6), gnu.
Aug 5, 2020
c025227
xpl (5 ... 110), ucminf (1e-6), gnu.
Aug 5, 2020
fe75d1c
xpl (5 ... 110), ucminf (1e-5), gnu.
Aug 5, 2020
15f666e
xpl (5 ... 110), BFGS (default), gnu.
Aug 5, 2020
da61c00
xpl (5 ... 110), BFGS (default), default.
Aug 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions .github/workflows/parked_workflows/comp_stab_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
on:
push:
branches:
- sumcpp

name: Testing compiler flags

jobs:
run:
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
runs-on: ${{ matrix.config.os }}

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- name: Manage Bazel dist
if: runner.os == 'Linux'
run: |
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

- name: Generate Makevars
run: |
mkdir -p $HOME/.R
pushd $HOME/.R
touch Makevars
echo 'CC=gcc' >> Makevars
echo 'CFLAGS=-O2 -msse2 -mfpmath=sse' >> Makevars
echo 'CXX=g++' >> Makevars
echo 'CXXFLAGS=-O2 -msse2 -mfpmath=sse -std=c++14' >> Makevars
echo 'FC=gfortran' >> Makevars
echo 'FFLAGS=-O2 -msse2 -mfpmath=sse' >> Makevars
cat Makevars
popd
- name: Setup actions checkout
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}

- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages(c("remotes", "devtools", "stringr"))
devtools::install_github("https://github.com/cran/ucminf")
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"

- name: Install R dependencies
run: |
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Build and install stm
run: |
library(devtools)
build(vignettes = FALSE)
install()
shell: Rscript {0}
#
# - name: Run tests
# run: |
# Rscript ./inst/run.R ${{ runner.os }}
#
# - name: Upload test results
# uses: actions/upload-artifact@v2
# with:
# path: ${{ github.workspace }}/*.Rds


# xpl_stab_test:
# name: Check cross platform runs
# needs: run
# runs-on: macOS-latest
#
# steps:
# - name: Setup actions checkout
# uses: actions/checkout@v2
#
# - name: Setup R
# uses: r-lib/actions/setup-r@master
#
# - name: Install R packages
# run: |
# install.packages("stringr")
# shell: Rscript {0}
#
# - name: Download artifacts from previous job
# uses: actions/download-artifact@v2
#
# - name: Run tests
# run: |
# Rscript ./inst/xpl_opt_test.R


81 changes: 81 additions & 0 deletions .github/workflows/parked_workflows/ipl_stab_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
on:
push:
branches:
- sumcpp

name: In platform stability test

jobs:
stab_test:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- name: Manage Bazel dist
if: runner.os == 'Linux'
run: |
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

- name: Setup actions checkout
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}

- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages(c("remotes", "devtools", "stringr"))
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"

- name: Install R dependencies
run: |
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Build and install stm
run: |
library(devtools)
build(vignettes = FALSE)
install()
shell: Rscript {0}

- name: Run tests
run: |
Rscript ./inst/ipl_stab_test.R ${{ runner.os }}

111 changes: 111 additions & 0 deletions .github/workflows/parked_workflows/opt_stab_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
on:
push:
branches:
- sumcpp

name: Cross platform documnet level optimization test

jobs:
reg_neum_run:
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
runs-on: ${{ matrix.config.os }}

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}

steps:
- name: Manage Bazel dist
if: runner.os == 'Linux'
run: |
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

- name: Setup actions checkout
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}

- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages(c("remotes", "devtools", "stringr"))
devtools::install_github("https://github.com/cran/ucminf")
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"

- name: Install R dependencies
run: |
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Build and install stm
run: |
library(devtools)
build(vignettes = FALSE)
install()
shell: Rscript {0}

- name: Run tests
run: |
Rscript ./inst/doc_opt_run.R ${{ runner.os }}

- name: Upload test results
uses: actions/upload-artifact@v2
with:
path: ${{ github.workspace }}/*.Rds


xpl_stab_test:
name: Check cross platform runs
needs: reg_neum_run
runs-on: macOS-latest

steps:
- name: Setup actions checkout
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@master

- name: Install R packages
run: |
install.packages("stringr")
shell: Rscript {0}

- name: Download artifacts from previous job
uses: actions/download-artifact@v2

- name: Run tests
run: |
Rscript ./inst/xpl_opt_test.R


Loading