User Tools

Site Tools


c:mpi:makefile

Makefile

makefile
build:
	mpicc -o helloapp helloapp.c -pthread -Wall
run:
        mpirun -np 8 --oversubscribe helloapp
clean:
	rm -f helloapp
Remove -pthread if the app does not use pthread.
Remove -Wall to disable warnings
Update nr of processors (8 in this example)
–oversubscribe - allow more processors than physically available
c/mpi/makefile.txt · Last modified: 2024/01/11 09:28 by odefta