Merge branch 'sm35_foreach' of github.com:egaburov/ispc into sm35_foreach
This commit is contained in:
37
examples_cuda/deferred/Makefile_knc
Normal file
37
examples_cuda/deferred/Makefile_knc
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
PROG=main_mic
|
||||||
|
ISPC_SRC=kernels1.ispc
|
||||||
|
CXX_SRC=main.cpp ../tasksys.cpp common.cpp
|
||||||
|
|
||||||
|
CXX=icc
|
||||||
|
CXXFLAGS=-O3 -I$(CUDATK)/include -mmic -openmp
|
||||||
|
LD=icc
|
||||||
|
LDFLAGS=-mmic -openmp
|
||||||
|
|
||||||
|
ISPC=ispc
|
||||||
|
ISPCFLAGS=-O3 --math-lib=default --target=generic-16 --c++-include-file=../intrinsics/knc-i1x16.h --opt=fast-math
|
||||||
|
|
||||||
|
.SUFFIXES: .o .cpp
|
||||||
|
|
||||||
|
|
||||||
|
ISPC_OBJ=$(ISPC_SRC:%.ispc=%_ispc.o)
|
||||||
|
CXX_OBJ=$(CXX_SRC:%.cpp=%.o)
|
||||||
|
|
||||||
|
all: $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(PROG): $(ISPC_OBJ) $(CXX_OBJ)
|
||||||
|
$(LD) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
%.o: %.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
%_ispc.o: %.ispc
|
||||||
|
$(ISPC) $(ISPCFLAGS) --emit-c++ -o `basename $< .ispc`_ispc_zmm.cpp -h `basename $< .ispc`_ispc.h $<
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ `basename $< .ispc`_ispc_zmm.cpp -c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -rf *_ispc_zmm.cpp *.o $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
37
examples_cuda/rt/Makefile_knc
Normal file
37
examples_cuda/rt/Makefile_knc
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
PROG=rt_mic
|
||||||
|
ISPC_SRC=rt1.ispc
|
||||||
|
CXX_SRC=rt.cpp ../tasksys.cpp
|
||||||
|
|
||||||
|
CXX=icc
|
||||||
|
CXXFLAGS=-O3 -I$(CUDATK)/include -mmic -openmp
|
||||||
|
LD=icc
|
||||||
|
LDFLAGS=-mmic -openmp
|
||||||
|
|
||||||
|
ISPC=ispc
|
||||||
|
ISPCFLAGS=-O3 --math-lib=default --target=generic-16 --c++-include-file=../intrinsics/knc-i1x16.h --opt=fast-math
|
||||||
|
|
||||||
|
.SUFFIXES: .o .cpp
|
||||||
|
|
||||||
|
|
||||||
|
ISPC_OBJ=$(ISPC_SRC:%.ispc=%_ispc.o)
|
||||||
|
CXX_OBJ=$(CXX_SRC:%.cpp=%.o)
|
||||||
|
|
||||||
|
all: $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(PROG): $(ISPC_OBJ) $(CXX_OBJ)
|
||||||
|
$(LD) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
%.o: %.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
%_ispc.o: %.ispc
|
||||||
|
$(ISPC) $(ISPCFLAGS) --emit-c++ -o `basename $< .ispc`_ispc_zmm.cpp -h `basename $< .ispc`_ispc.h $<
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ `basename $< .ispc`_ispc_zmm.cpp -c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -rf *_ispc_zmm.cpp *.o $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
37
examples_cuda/sort/Makefile_knc
Normal file
37
examples_cuda/sort/Makefile_knc
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
PROG=sort_mic
|
||||||
|
ISPC_SRC=sort.ispc
|
||||||
|
CXX_SRC=sort.cpp ../tasksys.cpp sort_serial.cpp
|
||||||
|
|
||||||
|
CXX=icc
|
||||||
|
CXXFLAGS=-O3 -I$(CUDATK)/include -mmic -openmp
|
||||||
|
LD=icc
|
||||||
|
LDFLAGS=-mmic -openmp
|
||||||
|
|
||||||
|
ISPC=ispc
|
||||||
|
ISPCFLAGS=-O3 --math-lib=default --target=generic-16 --c++-include-file=../intrinsics/knc-i1x16.h --opt=fast-math
|
||||||
|
|
||||||
|
.SUFFIXES: .o .cpp
|
||||||
|
|
||||||
|
|
||||||
|
ISPC_OBJ=$(ISPC_SRC:%.ispc=%_ispc.o)
|
||||||
|
CXX_OBJ=$(CXX_SRC:%.cpp=%.o)
|
||||||
|
|
||||||
|
all: $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(PROG): $(ISPC_OBJ) $(CXX_OBJ)
|
||||||
|
$(LD) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
%.o: %.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
%_ispc.o: %.ispc
|
||||||
|
$(ISPC) $(ISPCFLAGS) --emit-c++ -o `basename $< .ispc`_ispc_zmm.cpp -h `basename $< .ispc`_ispc.h $<
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ `basename $< .ispc`_ispc_zmm.cpp -c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -rf *_ispc_zmm.cpp *.o $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
37
examples_cuda/volume_rendering/Makefile_knc
Normal file
37
examples_cuda/volume_rendering/Makefile_knc
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
PROG=volume_mic
|
||||||
|
ISPC_SRC=volume1.ispc
|
||||||
|
CXX_SRC=volume.cpp ../tasksys.cpp
|
||||||
|
|
||||||
|
CXX=icc
|
||||||
|
CXXFLAGS=-O3 -I$(CUDATK)/include -mmic -openmp
|
||||||
|
LD=icc
|
||||||
|
LDFLAGS=-mmic -openmp
|
||||||
|
|
||||||
|
ISPC=ispc
|
||||||
|
ISPCFLAGS=-O3 --math-lib=default --target=generic-16 --c++-include-file=../intrinsics/knc-i1x16.h --opt=fast-math
|
||||||
|
|
||||||
|
.SUFFIXES: .o .cpp
|
||||||
|
|
||||||
|
|
||||||
|
ISPC_OBJ=$(ISPC_SRC:%.ispc=%_ispc.o)
|
||||||
|
CXX_OBJ=$(CXX_SRC:%.cpp=%.o)
|
||||||
|
|
||||||
|
all: $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(PROG): $(ISPC_OBJ) $(CXX_OBJ)
|
||||||
|
$(LD) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
%.o: %.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
%_ispc.o: %.ispc
|
||||||
|
$(ISPC) $(ISPCFLAGS) --emit-c++ -o `basename $< .ispc`_ispc_zmm.cpp -h `basename $< .ispc`_ispc.h $<
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ `basename $< .ispc`_ispc_zmm.cpp -c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -rf *_ispc_zmm.cpp *.o $(PROG)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user