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

latest changes on pm calculation #8

Open
wants to merge 128 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
6b53073
Add a flag to use CUDA code
sbird Sep 20, 2024
43c8fa5
memory allocation cudaMallocManaged
astro-YYH Sep 25, 2024
768dd66
enforce mpicc for bigfile and pfft
astro-YYH Sep 25, 2024
9678b1d
replace gsl integration with boost first try on commoving distance
astro-YYH Sep 27, 2024
757e5b8
tanh_sinh integrator
astro-YYH Sep 28, 2024
e2d2659
cpp compatibility correction
astro-YYH Sep 28, 2024
d20fb2a
cpp compat
astro-YYH Sep 28, 2024
d6b2daf
cpp correction
astro-YYH Sep 28, 2024
3c911e6
tanh_sinh adaptive exact factor
astro-YYH Sep 29, 2024
5a2bee5
cleanup
astro-YYH Sep 29, 2024
c9cd36d
cosmology integrate adapted
astro-YYH Sep 29, 2024
4bc9970
modified lib to add Boost path
nianyic7 Sep 29, 2024
5672994
changed pfft calls/vars to cufft
nianyic7 Sep 29, 2024
9b0d2ca
changed pfft calls/vars to cufft in petapm.c
nianyic7 Sep 29, 2024
7c5353c
fixed typo in lib include
nianyic7 Sep 29, 2024
c6d0b8d
fixed cufft complex indexing
nianyic7 Sep 30, 2024
deb46ce
added cufft/cuda libs to Makefile.rules
nianyic7 Sep 30, 2024
89fe1fb
some progress on pfft->cufftmp
nianyic7 Sep 30, 2024
7e238e1
add cuda stream to petapm struct
nianyic7 Oct 1, 2024
9890ea1
remove reion stuff; main changes to petapm_init, destroy, transfer fu…
nianyic7 Oct 1, 2024
fcaa794
errno system header macro conflict
astro-YYH Oct 1, 2024
a7a2a8d
neutrinos ira integ
astro-YYH Oct 1, 2024
589bfa8
omega nu integ
astro-YYH Oct 1, 2024
da3efc3
integrator abs err tolerance, Omnu timebin integ updated
astro-YYH Oct 1, 2024
e444499
power integ
astro-YYH Oct 1, 2024
7d5c5a9
migrate petapm-cufft.c to petapm.c
nianyic7 Oct 1, 2024
fb55adf
thermal init integ
astro-YYH Oct 2, 2024
7e60223
some integ and interp (barycentric rational) cooling qso
astro-YYH Oct 2, 2024
db4e491
Delete gsl using script from bigfile
sbird Oct 2, 2024
48ad61f
Remove metal return code which is complex to port away from GSL and l…
sbird Oct 2, 2024
fdff6df
cooling rates interp, redefine PartManager->Base due to macro conflic…
astro-YYH Oct 2, 2024
a40f490
neutrino interp
astro-YYH Oct 2, 2024
339d6a1
cleanup
nianyic7 Oct 3, 2024
7abd5ce
modified task 2d decomp in petapm
nianyic7 Oct 3, 2024
ac7c211
rm previous default slab code->use pencil
nianyic7 Oct 3, 2024
3687d0e
clean up some reion stuff in petapm.h
nianyic7 Oct 3, 2024
28ebe2d
rewrite petapm_init
nianyic7 Oct 3, 2024
d99e585
rewrite r2c in petapm_force_r2c
nianyic7 Oct 3, 2024
ab8d4a9
modified c2r, almost done with petapm changes
nianyic7 Oct 3, 2024
19321fa
added box structure to petapm
nianyic7 Oct 3, 2024
41ea4ec
fixed compiler errors in petapm
nianyic7 Oct 3, 2024
b6f6b79
pfft->cufft type change in zeldovich
nianyic7 Oct 3, 2024
4238964
fix cufft complex number indexing
nianyic7 Oct 3, 2024
940f056
pfft->cufft type in glass.c
nianyic7 Oct 3, 2024
49a03c2
bug fix: avoid floating-point precision issues and reduce the approxi…
astro-YYH Oct 3, 2024
72b320d
power interp
astro-YYH Oct 4, 2024
3eadc51
Remove random thermal velocity support
sbird Oct 4, 2024
60870bf
gravpm powerspec interp
astro-YYH Oct 4, 2024
552d5a3
omnu interp
astro-YYH Oct 4, 2024
8a33840
pmesh rng boost mt
astro-YYH Oct 4, 2024
4ff9174
system random
astro-YYH Oct 4, 2024
243dd9a
gsl err ode
astro-YYH Oct 4, 2024
2f926b6
boost bessel
astro-YYH Oct 4, 2024
bb53dfa
test to boost
astro-YYH Oct 5, 2024
10483b5
test all to boost
astro-YYH Oct 5, 2024
de78732
back
astro-YYH Oct 5, 2024
efc0a6d
for conflicts
astro-YYH Oct 5, 2024
e693d20
Merge pull request #655 from astro-YYH/cudaport
astro-YYH Oct 5, 2024
acbadd7
Remove header connected with metal return
sbird Oct 5, 2024
b835427
Remove largely unused lightcone
sbird Oct 5, 2024
be19356
Remove old Options files
sbird Oct 5, 2024
224438a
Remove GSL flags from build files
sbird Oct 5, 2024
d84bb4f
Remove gsl from build files
sbird Oct 5, 2024
a03aa9d
Some last GSL cleanups in the build system
sbird Oct 5, 2024
d639303
Change default mpicc to mpic++
sbird Oct 5, 2024
a1b2ac6
Adjust comment
sbird Oct 5, 2024
55a321a
Try to fix travis C++ build
sbird Oct 5, 2024
ced2fa2
Still need C compiler for bigfile
sbird Oct 5, 2024
f692333
Install more c++ packages
sbird Oct 5, 2024
6638fe1
Fix github workflow
sbird Oct 5, 2024
a8e958e
Will this fix it
sbird Oct 5, 2024
57da356
Try this
sbird Oct 5, 2024
7ed64bf
Restore the gcc version pin for mpich as it is still necessary
sbird Oct 5, 2024
5abc6b7
Add boost
sbird Oct 5, 2024
3742840
modified lib to add Boost path
nianyic7 Sep 29, 2024
12dcd6b
changed pfft calls/vars to cufft
nianyic7 Sep 29, 2024
9708be4
changed pfft calls/vars to cufft in petapm.c
nianyic7 Sep 29, 2024
7a9b859
fixed typo in lib include
nianyic7 Sep 29, 2024
c06e66e
fixed cufft complex indexing
nianyic7 Sep 30, 2024
ec678ac
added cufft/cuda libs to Makefile.rules
nianyic7 Sep 30, 2024
a9277c1
some progress on pfft->cufftmp
nianyic7 Sep 30, 2024
9a6015c
add cuda stream to petapm struct
nianyic7 Oct 1, 2024
cd2b1ff
remove reion stuff; main changes to petapm_init, destroy, transfer fu…
nianyic7 Oct 1, 2024
fb9766c
migrate petapm-cufft.c to petapm.c
nianyic7 Oct 1, 2024
5f86276
cleanup
nianyic7 Oct 3, 2024
d80a2ae
modified task 2d decomp in petapm
nianyic7 Oct 3, 2024
305e04e
rm previous default slab code->use pencil
nianyic7 Oct 3, 2024
7e58404
clean up some reion stuff in petapm.h
nianyic7 Oct 3, 2024
3fc532a
rewrite petapm_init
nianyic7 Oct 3, 2024
3b5fbb5
rewrite r2c in petapm_force_r2c
nianyic7 Oct 3, 2024
4b7f2db
modified c2r, almost done with petapm changes
nianyic7 Oct 3, 2024
c1b3170
added box structure to petapm
nianyic7 Oct 3, 2024
aa935fa
fixed compiler errors in petapm
nianyic7 Oct 3, 2024
f232947
pfft->cufft type change in zeldovich
nianyic7 Oct 3, 2024
8836c71
fix cufft complex number indexing
nianyic7 Oct 3, 2024
8d1ec89
pfft->cufft type in glass.c
nianyic7 Oct 3, 2024
cf7120c
Merge branch 'cufft' of https://github.com/nianyic7/MP-Gadget into cufft
nianyic7 Oct 7, 2024
ccddd54
comments/todos after talking to Yu
nianyic7 Oct 7, 2024
989fe42
manually incorporate gravpm change from upstream
nianyic7 Oct 7, 2024
b9f1591
remove pfft/fftw3 dependency
nianyic7 Oct 7, 2024
daf4c2f
remove plane and lenstool in compilation
nianyic7 Oct 7, 2024
e782b31
add back plane.h just for getting things to run
nianyic7 Oct 7, 2024
aa493c5
Merge pull request #658 from nianyic7/cufft
sbird Oct 8, 2024
6e17090
Some fixes to travis tests
sbird Oct 8, 2024
be177e0
Remove pfft from makefiles
sbird Oct 8, 2024
1257aa0
Remove last bits of EXCUR_REION
sbird Oct 8, 2024
51ee73f
Merge branch 'master' into cudaport
sbird Oct 8, 2024
7fd16d8
Merge pull request #1 from MP-Gadget/cudaport
sbird Oct 8, 2024
9bc2c67
Update license with new name
sbird Oct 8, 2024
eb704d6
added cufftmp, cuda, nvshmem libs/includes to Option.mk.vista
nianyic7 Oct 8, 2024
b38fc82
merged box struct into region
nianyic7 Oct 10, 2024
3078786
massive debugging petapm.c, almost works
nianyic7 Oct 10, 2024
de0d7c4
Fix the OpenMP sort on ARM architectures.
sbird Oct 15, 2024
3c2bf75
Merge branch 'cudaport'
sbird Oct 15, 2024
0316e4f
Remove stray GSL variable from makefile
sbird Oct 15, 2024
20a3155
Merge remote-tracking branch 'MPG/vistaopenmpfix'
sbird Oct 15, 2024
77b4618
Fix C++ compilation error
sbird Oct 15, 2024
e5936c7
add compile rules for cuda kernels
nianyic7 Oct 18, 2024
bff0683
add mpi include into cuda compile rules
nianyic7 Oct 18, 2024
223d7cb
add box iterator helper for cufftmp
nianyic7 Oct 18, 2024
9028343
move pm transfer functions to cuda kernel
nianyic7 Oct 18, 2024
3f75f89
adapt pm for kernel transfer functions (half done)
nianyic7 Oct 18, 2024
4e1c845
output obj files for cuda kernels
nianyic7 Oct 18, 2024
ee60387
Use cudaMallocManaged by default
sbird Oct 18, 2024
424eb33
fix compiler error
nianyic7 Oct 18, 2024
d8a6ba7
Merge branch 'master' into cudaport
nianyic7 Oct 18, 2024
c2c0cf0
undo one commit from master for cudamalloc
nianyic7 Oct 18, 2024
cc38eb9
latest updates from pm changes
nianyic7 Nov 4, 2024
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
5 changes: 3 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:

- name: Checkout source code
uses: actions/checkout@v4

- name: Install MPI
run: sudo apt install -y -q build-essential mpich libmpich-dev python-is-python3 python3
- name: Cache conda
uses: actions/cache@v4
env:
Expand All @@ -34,7 +35,7 @@ jobs:
- name: Cache depends/
uses: actions/cache@v4
with:
key: ${{ runner.os }}-build-${{ hashFiles('depends/Makefile', 'depends/install_pfft.sh') }}
key: ${{ runner.os }}-build-${{ hashFiles('depends/Makefile') }}
path: |
~/depends/install
~/depends/include
Expand Down
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ Redistribution and use in source and binary forms, with or without modification,

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MP-Gadget is also available under the terms of the GNU Public License v2 or later at the option of the user. MP-Gadget is a derived code of Gadget-2 and has been re-licensed under the above license with the permission of all original copyright holders, including Volker Springel, the author of Gadget-2.

Note that as MP-Gadget depends on PFFT and the GNU scientific library, a compiled version is implicitly distributed under the terms of the GNU General Public License version under which the version of the library llinked against is available.
Shenqi is a derived code of Gadget-2 and has been re-licensed under the above license with the permission of all original copyright holders, including Volker Springel, the author of Gadget-2.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ all: $(CONFIG)
cd libgenic; $(MAKE)
cd gadget; $(MAKE)
cd genic; $(MAKE)

clean :
cd libgadget; $(MAKE) clean
cd libgenic; $(MAKE) clean
Expand Down Expand Up @@ -59,9 +58,7 @@ tag:
sdist:
(git rev-parse --abbrev-ref HEAD | grep master )|| (echo "Must be on master" && exit 1);
git checkout -B "rc-$(VERSION)";
git add -f depends/pfft-1.0.8-alpha2-fftw3.tar.gz
git commit -m "rc-$(VERSION) packaging"
git rm --cached depends/pfft-1.0.8-alpha2-fftw3.tar.gz
git commit -m "rc-$(VERSION) cleanup"
bash maintainer/git-archive-all.sh --prefix MPGadget-$(VERSION)/ -- - | gzip -c > MPGadget-$(VERSION).tar.gz
git checkout master
Expand Down
38 changes: 30 additions & 8 deletions Makefile.rules
Original file line number Diff line number Diff line change
@@ -1,35 +1,57 @@
# vim: set ft=make:
#
AR ?= ar
MPICC ?= mpicc
MPICC ?= mpic++
NVOPTIMIZE ?=
LOW_PRECISION ?= double

OPTIMIZE ?= -O2 -g -fopenmp -Wall
GSL_INCL ?= $(shell pkg-config --cflags gsl)
GSL_LIBS ?= $(shell pkg-config --libs gsl)

ifneq ($(findstring -DUSE_CFITSIO, $(OPT)),)
# If found, set FITSIO_INCL with the cfitsio flags
FITSIO_INCL ?= $(shell pkg-config --cflags cfitsio)
FITSIO_LIBS ?= $(shell pkg-config --libs cfitsio)
endif

ifneq ($(findstring -DUSE_CUDA, $(OPT)),)
CUDA_INCL ?=
CUDA_LIBS ?= -lcudart
CUFFTMP_INCL ?=
CUFFTMP_LIBS ?= -lcufftMp
NVSHMEM_INCL ?=
NVSHMEM_LIBS ?= -lnvshmem_host
NVCC ?= nvcc
NVOPTIMIZE ?= -O3
MPI_INCL ?=
endif

OPTIONS = $(OPTIMIZE) $(OPT)
GADGET_TESTDATA_ROOT = $(CURDIR)/../

CFLAGS = $(OPTIONS) $(GSL_INCL) $(FITSIO_INCL)
CFLAGS = $(OPTIONS) $(BOOST_INCL) $(FITSIO_INCL) $(CUDA_INCL) $(CUFFTMP_INCL) $(NVSHMEM_INCL)
CFLAGS += -I../depends/include
CFLAGS += -I../
CFLAGS += "-DLOW_PRECISION=$(LOW_PRECISION)"
#For tests
TCFLAGS = $(CFLAGS) -DGADGET_TESTDATA_ROOT=\"$(GADGET_TESTDATA_ROOT)\"

BUNDLEDLIBS = -lbigfile-mpi -lbigfile -lpfft_omp -lfftw3_mpi -lfftw3_omp -lfftw3
LIBS = -lm $(GSL_LIBS) $(FITSIO_LIBS)
CUDAFLAGS = $(BOOST_INCL) $(CUDA_INCL) $(CUFFTMP_INCL) $(NVSHMEM_INCL) $(MPI_INCL)

BUNDLEDLIBS = -lbigfile-mpi -lbigfile
LIBS = -lm $(BOOST_LIBS) $(FITSIO_LIBS) $(CUDA_LIBS) $(CUFFTMP_LIBS) $(NVSHMEM_LIBS)
LIBS += -L../depends/lib $(BUNDLEDLIBS)
V ?= 0

.objs/%.o: %.c Makefile $(CONFIG)
@cmd="$(MPICC) -MMD -c -o $@ $(CFLAGS) $<"; \
.objs/%.o: %.c $(INCL) Makefile $(CONFIG)
@cmd="$(MPICC) -c -o $@ $(CFLAGS) $<"; \
if test "x$(V)" = "x1" ; then echo $$cmd; fi; \
mkdir -p `dirname $@`; \
echo Compiling $<; $$cmd


.objs/%.o: %.cu Makefile $(CONFIG)
@cmd="$(NVCC) -MMD -c -o $@ $(CUDAFLAGS) $<"; \
if test "x$(V)" = "x1" ; then echo $$cmd; fi; \
echo Compiling $<; $$cmd


11 changes: 7 additions & 4 deletions Options.mk.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#These variables are set to useful defaults, but may be overriden if needed
#MPICC=mpicc
#GSL_LIBS=
#GSL_INCL=
#MPICC=mpic++
#MPICCDEP=mpicc

#NVCC=nvcc
#NVOPTIMIZE = -O3 -arch=sm_61 # specify architecture according to you GPU model, sm_90 shall be used for Vista's H100

#This is a good optimized build default for gcc
OPTIMIZE = -fopenmp -O3 -g -Wall -ffast-math
#This is a good non-optimized default for debugging
Expand All @@ -12,7 +15,7 @@ OPTIMIZE = -fopenmp -O3 -g -Wall -ffast-math
#OPT += -DDEBUG # print a lot of debugging messages
#Disable openmp locking. This means no threading.
#OPT += -DNO_OPENMP_SPINLOCK

#OPT += -DUSE_CUDA #Enable GPU-specific CUDA code
#-----------
#OPT += -DEXCUR_REION # reionization with excursion set

Expand Down
26 changes: 2 additions & 24 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Description

This version of Gadget is derived from main P-Gadget / Gadget-2, with the gravity solver algorithm from Gadget-4.
It is the source code used to run the BlueTides and ASTRID simulations (http://bluetides-project.org).
MP-Gadget requires GSL and a C compiler with OpenMP 4.5 support.
MP-Gadget requires a C++ compiler with OpenMP 4.5 support.

The infrastructure is heavily reworked. As a summary:

Expand Down Expand Up @@ -50,17 +50,6 @@ First time users:
make -j

The Makefile will automatically copy Options.mk.example to Options.mk. The default compile flags are appropriate for a linux using gcc, but may not be optimal.
We will need gsl. On HPC systems with the modules command,
usually it can be loaded with

.. code:: bash

module load gsl

env | grep GSL # check if GSL path is reasonable

On a common PC/Linux system, refer to your package vendor how to
install gsl and gsl-devel.

If you wish to perform compile-time customisation (to, eg, change optimizations or use different compilers), you need an Options.mk file. The initial defaults are stored in Options.mk.example.

Expand All @@ -81,8 +70,6 @@ Compile-time options may be set in Options.mk. The remaining compile time option
- EXCUR_REION enables the excursion set reionization model.
- USE_CFITSIO enables the output of lenstools compatible potential planes using cfitsio,

If compilation fails with errors related to the GSL, you may also need to set the GSL_INC or GSL_LIB variables in Options.mk to the filesystem path containing the GSL headers and libraries.

To run a N-Body sim, use IC files with no gas particles.

Now we are ready to build
Expand Down Expand Up @@ -140,15 +127,6 @@ Refer to https://github.com/rainwoodman/bigfile for usage.
Otherwise directly open the blocks with Fortran or C, noting the data-type
information and attributes in header and attrs files (in plain text)

GLIBC 2.22
----------

Cray updated their GLIBC to 2.22+ recently.
A good move but it happens to be a buggy version of GLIBC:
https://sourceware.org/bugzilla/show_bug.cgi?id=19590
causing non-existing symbols like `_ZGVcN4v___log_finite`.
Adding `-lmvec -lmvec_nonshared` to GSL_LIBS works around the issue.

Bigfile
-------

Expand Down Expand Up @@ -192,7 +170,7 @@ For usage of the code, here is a DOI for this repository that you can cite
Licence
-------

MP-Gadget is distributed under the terms of a 3-clause BSD license or the GNU General Public License v2 or later, at the option of the user. The use of PFFT and GSL libraries usually forces distribution under the terms of the GNU General Public License v3.
MP-Gadget is distributed under the terms of a 3-clause BSD license or the GNU General Public License v2 or later, at the option of the user.

Status
------
Expand Down
22 changes: 5 additions & 17 deletions depends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,22 @@ CONFIG = ../Options.mk
include $(CONFIG)

.PHONY: depends
.INTERMEDIATE: pfft
MPICC ?= mpicc
# MPICC ?= mpicc
MPICCDEP ?= mpicc
OPTIMIZE ?= -O2 -g -fopenmp -Wall
LIBRARIES=lib/libbigfile-mpi.a
FFTLIBRARIES=lib/libpfft_omp.a lib/libfftw3_mpi.a lib/libfftw3_omp.a
depends: $(LIBRARIES) $(FFTLIBRARIES)
$(FFTLIBRARIES): pfft
depends: $(LIBRARIES)

lib/libbigfile-mpi.a: bigfile/src/bigfile-mpi.c
mkdir -p lib; \
mkdir -p include; \
cd bigfile/src; \
make install PREFIX=$(PWD) CC="$(MPICC)" MPICC="$(MPICC)" CFLAGS="$(OPTIMIZE)" AR="$(AR)"
make install PREFIX=$(PWD) CC="$(MPICCDEP)" MPICC="$(MPICCDEP)" CFLAGS="$(OPTIMIZE)" AR="$(AR)"

pfft: install_pfft.sh
mkdir -p lib; \
mkdir -p include; \
#Using -ipo causes icc to crash.
MPICC="$(MPICC)" CC="$(MPICC)" CFLAGS="$(filter-out -ipo,$(OPTIMIZE)) -I $(PWD)/include -L$(PWD)/lib" AR="$(AR)" RANLIB=$(RANLIB) \
sh $(PWD)/install_pfft.sh $(PWD)/

clean: clean-fast clean-fft
clean: clean-fast

clean-fast:
rm -rf $(LIBRARIES)
cd bigfile/src; make clean

clean-fft:
rm -rf $(FFTLIBRARIES)
rm -rf tmp-pfft-*/double
rm -rf tmp-pfft-*/single
2 changes: 1 addition & 1 deletion depends/bigfile/.github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
numpy=${{ matrix.numpy-version }} \
nose cython mpi4py \
compilers
conda install -q -y cmake gsl
conda install -q -y cmake
conda install -q -y runtests

- name: Build C
Expand Down
1 change: 0 additions & 1 deletion depends/bigfile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project(bigfile)

# Finding optional dependencies
find_package(MPI)
find_package(GSL)

# Add library subdirectoy
add_subdirectory(src)
Expand Down
11 changes: 0 additions & 11 deletions depends/bigfile/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ if(${MPI_C_FOUND})

install(TARGETS bigfile-copy-mpi bigfile-iosim
RUNTIME DESTINATION bin)

if(${GSL_FOUND})
include_directories(${GSL_INCLUDE_DIRS})

# bigfile-sample-mpi
add_executable(bigfile-sample-mpi bigfile-sample-mpi.c)
target_link_libraries(bigfile-sample-mpi bigfile-mpi bigfile ${GSL_LIBRARIES} ${MPI_C_LIBRARIES})

install(TARGETS bigfile-sample-mpi
RUNTIME DESTINATION bin)
endif()
endif()

# Install bash scripts
Expand Down
3 changes: 0 additions & 3 deletions depends/bigfile/utils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ all: \
bigfile-set-attr \
bigfile-copy \
bigfile-copy-mpi \
bigfile-sample-mpi \
bigfile-cat \
bigfile-create \
bigfile-ls \
Expand All @@ -19,8 +18,6 @@ bigfile-copy: bigfile-copy.c ../src/libbigfile.a
$(CC) -o $@ $< ../src/libbigfile.a -I../src
bigfile-copy-mpi: bigfile-copy-mpi.c ../src/libbigfile.a ../src/libbigfile-mpi.a
$(CC) -o $@ $< ../src/libbigfile-mpi.a ../src/libbigfile.a -I../src
bigfile-sample-mpi: bigfile-sample-mpi.c ../src/libbigfile.a ../src/libbigfile-mpi.a
$(CC) -o $@ $< ../src/libbigfile-mpi.a ../src/libbigfile.a -I../src -lgsl -lgslcblas -lm
bigfile-cat: bigfile-cat.c ../src/libbigfile.a
$(CC) -o $@ $< ../src/libbigfile.a -I../src
bigfile-create: bigfile-create.c ../src/libbigfile.a
Expand Down
Loading
Loading