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_INCLUDE := $(shell pkg-config --variable=cudainclude $(PACKAGES))
all: setup main
all: setup ./bin/main
setup:
mkdir -p bin
mkdir -p deps
cd deps/petsc && ./configure
cd deps/petsc && make
print:
@echo ====== PETSc ======

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

Loading…
Cancel
Save