From 5885d477179f105e14cce784ca83eda19fa10aab Mon Sep 17 00:00:00 2001 From: Evghenii Date: Mon, 27 Jan 2014 14:30:48 +0100 Subject: [PATCH] nbody first commit --- examples_ptx/nbody/Makefile_cpu | 9 +++++++++ examples_ptx/nbody/Makefile_gpu | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 examples_ptx/nbody/Makefile_cpu create mode 100644 examples_ptx/nbody/Makefile_gpu diff --git a/examples_ptx/nbody/Makefile_cpu b/examples_ptx/nbody/Makefile_cpu new file mode 100644 index 00000000..a70ba750 --- /dev/null +++ b/examples_ptx/nbody/Makefile_cpu @@ -0,0 +1,9 @@ + +EXAMPLE=sort +CPP_SRC=sort.cpp sort_serial.cpp +ISPC_SRC=sort.ispc +ISPC_IA_TARGETS=avx1-i32x8 +ISPC_ARM_TARGETS=neon +#ISPC_FLAGS=-DDEBUG + +include ../common.mk diff --git a/examples_ptx/nbody/Makefile_gpu b/examples_ptx/nbody/Makefile_gpu new file mode 100644 index 00000000..97a51f26 --- /dev/null +++ b/examples_ptx/nbody/Makefile_gpu @@ -0,0 +1,13 @@ +PROG=sort +ISPC_SRC=sort.ispc +CU_SRC=sort.cu +CXX_SRC=sort.cpp sort_serial.cpp +PTXCC_REGMAX=32 + +LLVM_GPU=1 +NVVM_GPU=1 + +include ../common_gpu.mk + + +