fixed to work with LLVM 3.2

This commit is contained in:
Evghenii
2013-11-21 11:03:03 +01:00
parent 321b087039
commit 6f200d310f
6 changed files with 15 additions and 12 deletions

View File

@@ -298,4 +298,5 @@ export void ao_ispc_tasks(uniform int w, uniform int h, uniform int nsubsamples,
const uniform int ntilex = (w+TILEX-1)/TILEX;
const uniform int ntiley = (h+TILEY-1)/TILEY;
launch[ntilex,ntiley] ao_task(w, h, nsubsamples, image);
sync;
}

View File

@@ -41,8 +41,9 @@ $(PROG): $(CXX_OBJ) kernel.ptx
$(ISPC) $(ISPCFLAGS) --emit-llvm -o `basename $< .ispc`_ispc_nvptx64.bc -h `basename $< .ispc`_ispc.h $< --emit-llvm
%.ptx: %.bc
$(LLVM32DIS) $<
$(PTXGEN) `basename $< .bc`.ll > $@
$(PTXGEN) $< > $@
# $(LLVM32DIS) $<
# $(PTXGEN) `basename $< .bc`.ll > $@
kernel.ptx: $(PTXSRC)
cat $^ > kernel.ptx

View File

@@ -42,8 +42,9 @@ $(PROG): $(CXX_OBJ) kernel.ptx
$(ISPC) $(ISPCFLAGS) --emit-llvm -o `basename $< .ispc`_ispc_nvptx64.bc -h `basename $< .ispc`_ispc.h $< --emit-llvm
%.ptx: %.bc
$(LLVM32DIS) $<
$(PTXGEN) `basename $< .bc`.ll > $@
$(PTXGEN) $< > $@
# $(LLVM32DIS) $<
# $(PTXGEN) `basename $< .bc`.ll > $@
kernel.ptx: $(PTXSRC)
cat $^ > kernel.ptx