Skip to content

Commit

Permalink
Merge pull request #40 from sfiligoi/multi_230328
Browse files Browse the repository at this point in the history
Fix Makefile and GitHub CI script
  • Loading branch information
sfiligoi authored Apr 28, 2023
2 parents badf2e1 + d02dd66 commit 5213eb1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, linux-gpu-cuda]
fullopt: [True, False]
fullopt: ["True", "False"]
exclude:
- os: linux-gpu-cuda
fullopt: False
fullopt: "False"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
./compare_unifrac_pcoa.py test500.unweighted_fp32.f.h5 t1.h5 3 0.3
rm -f t1.h5
time ssu -m unweighted -i test500.biom -t test500.tre --pcoa 4 -r hdf5_nodist --permanova 99 -g test500.tsv -c empo_2 --subsample-depth 100 -o t1.h5
python compare_unifrac_stats.py t1.h5 5 99 1.001112 0.456 0.05 0.5
python compare_unifrac_stats.py t1.h5 5 99 1.001112 0.456 0.05 0.6
ls -l t1.h5
rm -f t1.h5
# multi
Expand All @@ -211,7 +211,7 @@ jobs:
ls -l t1.h5
rm -f t1.h5
time ssu -m unweighted -i test500.biom -t test500.tre --pcoa 4 --mode multi --n-subsamples 10 --permanova 99 -g test500.tsv -c empo_2 --subsample-depth 100 -o t1.h5
python compare_unifrac_stats_multi.py t1.h5 10 5 99 1.001112 0.456 0.08 0.5
python compare_unifrac_stats_multi.py t1.h5 10 5 99 1.001112 0.456 0.08 0.6
ls -l t1.h5
rm -f t1.h5
popd
Expand Down
5 changes: 3 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ ifeq ($(PREFIX),)
PREFIX := $(CONDA_PREFIX)
endif

BLASLIB=-llapacke -lcblas

ifeq ($(PLATFORM),Darwin)
AVX2 := $(shell sysctl -a | grep -c AVX2)
LDDFLAGS = -dynamiclib -install_name @rpath/libssu.so
else
AVX2 := $(shell grep "^flags" /proc/cpuinfo | head -n 1 | grep -c avx2)
LDDFLAGS = -shared
BLASLIB += -lgfortran -lquadmath
endif

EXEFLAGS =
Expand Down Expand Up @@ -99,8 +102,6 @@ ifeq (,$(findstring pgi,$(COMPILER)))
endif
endif

BLASLIB=-llapacke -lcblas


CPPFLAGS += -Wall -std=c++14 -pedantic -I. $(OPT) -fPIC -L$(PREFIX)/lib

Expand Down
5 changes: 5 additions & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ ifeq ($(PREFIX),)
PREFIX := $(CONDA_PREFIX)
endif

ifneq ($(PLATFORM),Darwin)
CC := gcc
LD := ld
endif

test: capi_test
./capi_test 1

Expand Down

0 comments on commit 5213eb1

Please sign in to comment.