[petsc-dev] CMake-assisted CUDA builds ready
Karl Rupp
rupp at mcs.anl.gov
Tue Mar 26 11:27:49 CDT 2013
Hi Jose,
which host compiler do you use? nvcc seems to have problems with
double-quoted flags such as " -O -arch=sm_13 ".
Thanks and best regards,
Karli
On 03/26/2013 11:03 AM, Jose E. Roman wrote:
>
> El 26/03/2013, a las 16:19, Karl Rupp escribió:
>
>> Hi Jose,
>>
>> alright, the problem should be fixed in 'next' now. The problem was in CMake not consistently interpreting escaped double quotes.
>>
>> Best regards,
>> Karli
>
> Not yet solved:
>
>
> /usr/local/cuda/bin/nvcc /home/jroman/soft/petsc/src/mat/impls/aij/mpi/mpicusp/mpiaijAssemble.cu " -O -arch=sm_13 " "--compiler-options ,-fPIC,-Wall,-Wwrite-strings,-Wno-strict-aliasing,-Wno-unknown-pragmas,-O" -m64 -D__INSDIR__= -Dpetsc_EXPORTS -Xcompiler ,\"-fPIC\" -DNVCC -M -o /home/jroman/soft/petsc/arch-linux-gnu-c-opt-cuda/CMakeFiles/petsc_generated_mpiaijAssemble.cu.o.NVCC-depend -I/usr/local/cuda/include -I/home/jroman/soft/petsc/include -I/home/jroman/soft/petsc/arch-linux-gnu-c-opt-cuda/include -I/usr/local/cuda/include -I/home/jroman/soft/petsc/arch-linux-gnu-c-opt-cuda/include/txpetscgpu/include -I/home/jroman/soft/cusplibrary -I/home/jroman/soft/cusplibrary/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
> nvcc fatal : Unknown option '-compiler-options ,-fPIC,-Wall,-Wwrite-strings,-Wno-strict-aliasing,-Wno-unknown-pragmas,-O'
> CMake Error at CMakeFiles/petsc_generated_mpiaijAssemble.cu.o.cmake:173 (message):
> Error generating
> /home/jroman/soft/petsc/arch-linux-gnu-c-opt-cuda/./petsc_generated_mpiaijAssemble.cu.o
>
More information about the petsc-dev
mailing list