[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Libtool and CUDA
From: |
Paweł Daniluk |
Subject: |
Libtool and CUDA |
Date: |
Sun, 05 Dec 2010 23:16:37 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
Hi,
I am trying to run nvcc compiler driver through libtool, and I keep
getting errors about compiler flags which are not supported by nvcc:
address@hidden:~/sandbox/libdesc/libdesc/trunk$ /opt/local/bin/glibtool
--mode=compile --tag=CC nvcc -c -m64 -arch=sm_11 -g -DTIMER -Xcompiler
-fno-common -I/usr/local/cuda/include/ -o cliques_cuda_int.lo
cliques_cuda_int.cu
glibtool: compile: nvcc -c -m64 -arch=sm_11 -g -fno-common -DTIMER
-I/usr/local/cuda/include/ cliques_cuda_int.cu -fno-common -DPIC -o
.libs/cliques_cuda_int.o
nvcc fatal : Unknown option 'fno-common'
This is understandable because -fno-common should be prepended with
-Xcompiler in nvcc call. One would expect that libtool should do it
automagically, since it has some kind of CUDA support built in.
What am I doing wrong? Is there any method to override regular libtool
behavior to put -Xcompiler before flags it adds?
I'm using libtool 2.4 from MacPorts on Mac OS 10.6.5.
Any suggestions will be appreciated.
Thanks,
Paweł