chore: some enhancements

old-with-submodules
Antonio De Lucreziis 2 years ago
parent a98b356345
commit 9dc60d8f3b

@ -21,11 +21,13 @@ CUDAC_FLAGS := $(shell pkg-config --variable=cudaflags_extra $(PACKAGES))
CUDA_LIB := $(shell pkg-config --variable=cudalib $(PACKAGES)) CUDA_LIB := $(shell pkg-config --variable=cudalib $(PACKAGES))
CUDA_INCLUDE := $(shell pkg-config --variable=cudainclude $(PACKAGES)) CUDA_INCLUDE := $(shell pkg-config --variable=cudainclude $(PACKAGES))
all: setup main all: setup ./bin/main
setup: setup:
mkdir -p bin mkdir -p bin
mkdir -p deps mkdir -p deps
cd deps/petsc && ./configure
cd deps/petsc && make
print: print:
@echo ====== PETSc ====== @echo ====== PETSc ======

@ -7,14 +7,18 @@ Metodo di Arnoldi per autovalori utilizzando PETSc.
```bash ```bash
$ git submodule init $ git submodule init
$ git submodule update $ git submodule update
```
Il comando seguente compila anche tutte le dipendenze (solo PETSc per ora)
$ cd deps/petsc ```bash
$ ./configure
$ make $ make
``` ```
## Compile ## Compile
Per compilare solo il `main` del progetto basta usare il seguente comando
```bash ```bash
$ make all $ make ./bin/main
``` ```
Loading…
Cancel
Save