add an openmp version of mandelbrot.c
This commit is contained in:
parent
d0be71ac8f
commit
9ccfdd96ac
3 changed files with 98 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -5,7 +5,7 @@ CFLAGS=-std=c99 -Wextra -pedantic -g -O0
|
|||
CC_OPENMP=gcc # no OpenMP in our clang
|
||||
CFLAGS_OPENMP=$(CFLAGS) -fopenmp
|
||||
|
||||
TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs ncurses-pong bit-fuckery bit-fuckery2 checkcheck multibrot bloom wo-lernen lua-foo binsearch test-inline-assembly uiowa-threads-example mtrace-test av-variance undefined-behaviour multibrot-openmp hello-openmp
|
||||
TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs ncurses-pong bit-fuckery bit-fuckery2 checkcheck multibrot bloom wo-lernen lua-foo binsearch test-inline-assembly uiowa-threads-example mtrace-test av-variance undefined-behaviour multibrot-openmp hello-openmp mandelbrot-openmp
|
||||
EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s tags mtrace-test.trace mtrace-test.txt
|
||||
|
||||
.PHONY: all
|
||||
|
@ -72,3 +72,6 @@ hello-openmp: hello-openmp.c
|
|||
|
||||
multibrot-openmp: multibrot-openmp.c
|
||||
$(CC_OPENMP) $(CFLAGS_OPENMP) -o $@ $< -lm -lpng
|
||||
|
||||
mandelbrot-openmp: mandelbrot-openmp.c
|
||||
$(CC_OPENMP) $(CFLAGS_OPENMP) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue