lux-integ
2013-Aug-11 12:58 UTC
[LLVMdev] llvm cmake build option ((enable-experimental-targets=R600)) question
greetings I am new to this list. I have recently compiled llvm-3.3 from sources. My machine has these: --cpu -amd64 --os- clbfs 64bit -linux3 series kernel --C/C++ compiler -modern versions gcc My preferred build tool is cmake. llvm is needed for MesaLib and the autotools build of llvm allows this option:- --enable-experimental-targets=R600 ( for example described here: http://www.linuxfromscratch.org/blfs/view/svn/general/llvm.html ) I have been unable to locate a equivalent option in the CMakeLists.txt in the base llvm-3.3 directory I have also searched the llvm cmake documentation here:- http://llvm.org/releases/3.3/docs/CMake.html to no avail. The closest I have seen is this option -DLLVM_TARGETS_TO_BUILD unfortuntely the documentation does not elaborate if these targets include "experimental-targets=R600" as per the autotools build. So in a nutshell I would be grateful for some advice on how one enables this option in a cmake build of llvm-3.(2,3,4) thanks in advance yours sinceelly luxInteg
Óscar Fuentes
2013-Aug-12 00:01 UTC
[LLVMdev] llvm cmake build option ((enable-experimental-targets=R600)) question
"lux-integ" <lux-integ at btconnect.com> writes: [snip]> So in a nutshell I would be grateful for some advice on how one enables this > option in a cmake build of llvm-3.(2,3,4)R600 was added to the list of known targets on the top-level CMakeLists.txt on June 22. So you can grab the LLVM development sources from svn or git and it should work (TM). If you wish to use LLVM 3.3, edit the top-level CMakeLists.txt file and add R600 to the list of known targets (LLVM_ALL_TARGETS). Then build as usual.
lux-integ
2013-Aug-12 15:04 UTC
[LLVMdev] llvm cmake build option ((enable-experimental-targets=R600)) question
On Monday 12 August 2013 01:01:18 Óscar Fuentes wrote:> If you wish to use LLVM 3.3, edit the top-level CMakeLists.txt file and > add R600 to the list of known targets (LLVM_ALL_TARGETS). Then build as > usual.tried this and compilation progressed to ~31% then refused to go further On Monday 12 August 2013 01:01:18 Óscar Fuentes wrote:> > R600 was added to the list of known targets on the top-level > CMakeLists.txt on June 22. So you can grab the LLVM development sources > from svn or git and it should work (TM).tried this and it works thanks