rt compiles and runs both ispc and cuda version

This commit is contained in:
Evghenii
2014-01-05 12:57:23 +01:00
parent 4fa7f98074
commit 6c0d5a3334
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
PROG=rt_cu
ISPC_SRC=rt1.ispc
ISPC_SRC=rt.ispc
CXX_SRC=rt_cu.cpp
CXX=g++

View File

@@ -1,7 +1,7 @@
NVCC_SRC=../nvcc_helpers.cu
NVCC_OBJS=objs_gpu/nvcc_helpers_nvcc.o
#
CXX=g++
CXX=g++ -ffast-math
CXXFLAGS=-O3 -I$(CUDATK)/include -Iobjs_gpu/ -D_CUDA_
#
NVCC=nvcc

View File

@@ -31,7 +31,11 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if 1
typedef int bool_t;
#else
typedef bool bool_t;
#endif
typedef float<3> float3;
#if 0