Thank you Brecht.
2014-02-10 22:39 GMT+01:00 Jens Verwiebe <[email protected]>: > See: Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) > Means you have an xcode that only comes with clang ( aka 5.x + ) > For CUDA kernelcompile with clang,you need CUDA 5.5 or higher ! > This is also documented by NVidia. > You'll have no other chance if you use newest xcode which only comes with > clang. > Clang has no -dumspecs option. > > BTW:: the remaining gcc and llvm-gcc are SHIM#s for bw-compatibility and > plain point to clang again. > > Jens > > > > Am 10.02.2014 um 22:33 schrieb Brecht Van Lommel < > [email protected]>: > > > I don't have a list of such tricks. This is just the way CMake works, > > it has a number of variables that in the configuration that can be > > changed, most of them have a description that explains what they do, > > I'm just pointing out the one needed for this particular case. > > > > On Mon, Feb 10, 2014 at 10:03 PM, Piotr Arłukowicz <[email protected]> > wrote: > >> Dear Brecht, > >> > >> where can I find more such tricks? Are they documented somewhere? I > mean, > >> in relation to better utilize Cycles power in Blender. > >> > >> best regards > >> Piotr > >> > >> > >> 2014-02-10 21:06 GMT+01:00 Brecht Van Lommel < > [email protected]>: > >> > >>> It should possible to change the CUDA_NVCC_EXECUTABLE variable and add > >>> "-ccbin=/usr/bin/llvm-gcc-4.2". > >>> > >>> On Mon, Feb 10, 2014 at 7:28 PM, Sen Haerens <[email protected]> > wrote: > >>>> The kernel compilation succeeded by adding > "-ccbin=/usr/bin/llvm-gcc-4.2" > >>>> argument to nvcc and running manually. > >>>> Could this be specified somewhere in cmake? > >>>> > >>>> It appears to be an issue in Mountain Lion (10.8.5). > >>>> > >>> > https://devtalk.nvidia.com/default/topic/608127/clang-error-on-os-x-10-8-5-samples-/ > >>>> > >>>> > >>>> > >>>> On Mon, Feb 10, 2014 at 6:33 PM, Sen Haerens <[email protected]> > wrote: > >>>> > >>>>> Hi, > >>>>> > >>>>> I'm getting the following Clang errors when trying to compile the > Cycles > >>>>> CUDA kernel in Blender. > >>>>> > >>>>> Read new prefs: /Users/sen/Library/Application > >>>>> Support/Blender/2.69/config/userpref.blend > >>>>> found bundled python: > >>>>> > >>> > /Users/sen/Documents/Sources/blender_master/cmake/bin/blender.app/Contents/MacOS/2.69/python > >>>>> Compiling CUDA kernel ... > >>>>> "/Developer/NVIDIA/CUDA-5.0/bin/nvcc" -arch=sm_21 -m64 --cubin > >>>>> > >>> > "/Users/sen/Documents/Sources/blender_master/cmake/bin/blender.app/Contents/MacOS/2.69/scripts/addons/cycles/kernel/ > >>>>> kernel.cu" -o "/Users/sen/Library/Application > >>>>> > >>> > Support/Blender/2.69/cache/cycles_kernel_sm21_AB7D0ABB4691DC942DE6785DC3C9ADD1.cubin" > >>>>> --ptxas-options="-v" --maxrregcount=32 --use_fast_math > >>>>> > >>> > -I"/Users/sen/Documents/Sources/blender_master/cmake/bin/blender.app/Contents/MacOS/2.69/scripts/addons/cycles/kernel" > >>>>> -DNVCC -D__KERNEL_CUDA_VERSION__=50 > >>>>> clang: error: unsupported option '-dumpspecs' > >>>>> clang: error: no input files > >>>>> CUDA kernel compilation failed, see console for details. > >>>>> > >>>>> These are my build specs: > >>>>> > >>>>> Blender 2.69 (sub 10) > >>>>> build date: 2014-02-10 > >>>>> build time: 18:04:36 > >>>>> build commit date: 2014-02-10 > >>>>> build commit time: 16:45 > >>>>> build hash: d2b5f0f > >>>>> build platform: Darwin > >>>>> build type: Release > >>>>> build c flags: -Wall -Werror=declaration-after-statement > >>>>> -Werror=implicit-function-declaration -Werror=return-type > >>>>> -Wno-tautological-compare -Wno-unknown-pragmas -Wno-char-subscripts > >>>>> -Wstrict-prototypes -Wmissing-prototypes -Wunused-parameter > >>>>> -mmacosx-version-min=10.6 -msse2 -msse -pipe -funsigned-char > >>>>> build c++ flags: -Wall -Wno-tautological-compare > -Wno-unknown-pragmas > >>>>> -Wno-char-subscripts -Wno-overloaded-virtual -Wno-sign-compare > >>>>> -Wno-invalid-offsetof -mmacosx-version-min=10.6 > -ftemplate-depth=1024 > >>>>> -msse2 -msse -pipe -funsigned-char > >>>>> build link flags: -fexceptions -framework CoreServices -framework > >>>>> Foundation -framework IOKit -framework AppKit -framework Cocoa > >>> -framework > >>>>> Carbon -framework AudioUnit -framework AudioToolbox -framework > CoreAudio > >>>>> -framework QTKit -liconv > >>>>> build system: CMake > >>>>> > >>>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) > >>>>> Target: x86_64-apple-darwin12.5.0 > >>>>> Thread model: posix > >>>>> > >>>>> nvcc: NVIDIA (R) Cuda compiler driver > >>>>> Copyright (c) 2005-2012 NVIDIA Corporation > >>>>> Built on Fri_Sep_28_16:10:16_PDT_2012 > >>>>> Cuda compilation tools, release 5.0, V0.2.1221 > >>>>> > >>>>> TIA > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> Sen Haerens | Sleutelstraat 9 1000 Brussels Belgium > >>>> Tel +32 (0)2 880 90 25 | Cell +32 (0)473 86 50 35 > >>>> Vcard http://vcard.senhaerens.be/ > >>>> _______________________________________________ > >>>> Bf-committers mailing list > >>>> [email protected] > >>>> http://lists.blender.org/mailman/listinfo/bf-committers > >>> _______________________________________________ > >>> Bf-committers mailing list > >>> [email protected] > >>> http://lists.blender.org/mailman/listinfo/bf-committers > >>> > >> > >> > >> > >> -- > >> Piotr Arłukowicz, PhD > >> University of Gdańsk, Faculty of Mathematics, Physics and Informatics > >> Division of Artificial Intelligence, Wit Stwosz 57, 80-952 Gdańsk, room > 121 > >> phone: +48585232125, via jabber: [email protected], > >> http://piotao.inf.ug.edu.pl/ > >> Also: Polish Blender Course: http://polskikursblendera.pl/ [PL] > >> _______________________________________________ > >> Bf-committers mailing list > >> [email protected] > >> http://lists.blender.org/mailman/listinfo/bf-committers > > _______________________________________________ > > Bf-committers mailing list > > [email protected] > > http://lists.blender.org/mailman/listinfo/bf-committers > > _____________________________________ > > Jens Verwiebe > Allerskehre 44 - 22309 Hamburg > > Tel.: +49 40 68 78 50 > mobil: +49 172 400 49 07 > mailto: [email protected] > web: http://www.jensverwiebe.de > _____________________________________ > > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > -- Piotr Arłukowicz, PhD University of Gdańsk, Faculty of Mathematics, Physics and Informatics Division of Artificial Intelligence, Wit Stwosz 57, 80-952 Gdańsk, room 121 phone: +48585232125, via jabber: [email protected], http://piotao.inf.ug.edu.pl/ Also: Polish Blender Course: http://polskikursblendera.pl/ [PL] _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
