add an openmp version of multibrot

This commit is contained in:
neingeist 2014-04-12 13:12:55 +02:00
parent ffa93c8d34
commit 341990f1ee
3 changed files with 211 additions and 1 deletions

View file

@ -2,7 +2,10 @@ CC=clang
CFLAGS=-std=c99 -Wextra -pedantic -g -O0
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
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
EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s tags mtrace-test.trace mtrace-test.txt
.PHONY: all
@ -63,3 +66,6 @@ uiowa-threads-example: uiowa-threads.o uiowa-threads-example.c
av-variance: av-variance.c
$(CC) $(CFLAGS) -o $@ $< -lm
multibrot-openmp: multibrot-openmp.c
$(CC_OPENMP) $(CFLAGS_OPENMP) -o $@ $< -lm -lpng