Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions m4/ax_cuda.m4
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,27 @@ then
AC_MSG_RESULT([nvcc version : $NVCC_VERSION])

# test if architecture is 64 bits and NVCC version >= 2.3
libdir=lib
cuda_libdir=lib
AX_COMPARE_VERSION([$NVCC_VERSION],[gt],[2.2],[
if test "x$host_cpu" = xx86_64 ; then
libdir=lib64
cuda_libdir=lib64
fi
if test "x$host_cpu" = xpowerpc64le ; then
libdir=lib64
cuda_libdir=lib64
fi
])

# set CUDA flags
if test -n "$cuda_home_path"
then
CUDA_CFLAGS="-I$cuda_home_path/include"
CUDA_LIBS="-L$cuda_home_path/$libdir -lcudart"
CUDA_LIBS="-L$cuda_home_path/$cuda_libdir -lcudart"
else
CUDA_CFLAGS="-I/usr/local/cuda/include"
CUDA_LIBS="-L/usr/local/cuda/$libdir -lcudart"
CUDA_LIBS="-L/usr/local/cuda/$cuda_libdir -lcudart"
fi

CUDA_LIBS+=" -L$cuda_home_path/$libdir/stubs -lcuda"
CUDA_LIBS+=" -L$cuda_home_path/$cuda_libdir/stubs -lcuda"

saved_CPPFLAGS=$CPPFLAGS
saved_LIBS=$LIBS
Expand Down
8 changes: 8 additions & 0 deletions src/collisiondetection/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CXX ?= gcc
CXXFLAGS ?= -O3 -march=native

detectcoll: detectcoll.c detectcoll.h
$(CXX) $(CXXFLAGS) detectcoll.c -o detectcoll

clean:
rm detectcoll
Loading
Loading