1
0
Fork 0
A test of the feasibility of hardware pipes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 lines
1023 B

all: shmem shmem_affinity kernel kernel_affinity signals signals_affinity
run: run_shmem run_kernel run_shmem_affinity run_kernel_affinity
run_all: run_shmem run_kernel run_shmem_affinity run_kernel_affinity run_signals
shmem:
$(CC) -std=c11 -DSHMEM $(CFLAGS) -lpthread -lrt -o shmem test.c
shmem_affinity:
$(CC) -std=c11 -DSHMEM -DAFFINITY $(CFLAGS) -lpthread -lrt -o shmem_affinity test.c
run_shmem: shmem
@./shmem
run_shmem_affinity: shmem_affinity
@./shmem_affinity
kernel:
$(CC) -std=c11 -DKERNEL $(CFLAGS) -o kernel test.c
kernel_affinity:
$(CC) -std=c11 -DKERNEL -DAFFINITY $(CFLAGS) -o kernel_affinity test.c
run_kernel: kernel
@./kernel
run_kernel_affinity: kernel_affinity
@./kernel_affinity
signals:
$(CC) -std=c11 $(CFLAGS) -lpthread -lrt -o signals signals.c
signals_affinity:
$(CC) -std=c11 -DAFFINITY $(CFLAGS) -lpthread -lrt -o signals_affinity signals.c
run_signals:
@./signals
@./signals_affinity
clean:
rm -rf shmem shmem_affinity kernel kernel_affinity signals signals_affinity