fix configuration to support 6.5.

This commit is contained in:
Vitor Santos Costa 2014-10-08 16:50:33 +01:00
parent bd35580713
commit 5d84ce03ca
2 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,12 @@ else
*darwin*)
CUDA_LDFLAGS="$LDFLAGS"
CUDA_CPPFLAGS="-arch=sm_20 -Xcompiler -fPIC -O3 "
CUDA_SHLIB_LD="$NVCC -Xcompiler -dynamiclib -L../.. -lYap "
CUDA_SHLIB_LD="$NVCC -L../.. -lYap "
;;
*linux*)
CUDA_LDFLAGS="$LDFLAGS"
CUDA_CPPFLAGS="-arch=sm_20 -Xcompiler -fPIC -O3 "
CUDA_SHLIB_LD="$NVCC -Xcompiler -shared -L../.. -lYap "
;;
**)
CUDA_LDFLAGS="$LDFLAGS $LIBS"

View File

@ -40,7 +40,7 @@ count_answers(G, N) :-
cuda_rule((Head :- Body) , IdRules) :-
body_to_list( Body, L, [], 1, N),
functor(Head, Na, Ar),
functor(Head, _Na, Ar),
load_rule( N, Ar, [Head|L], IdRules ).