Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "News:LLVM Targets"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
* arm profile: <code>ARM</code> and <code>BPF</code> | * arm profile: <code>ARM</code> and <code>BPF</code> | ||
Normally changing this settings is not recommended, however with <code>llvm_targets</code> it is now possible to control what microarchitecture support LLVM will be configured with, depending on hardware. For example, with NVIDIA cards, it make sense to leave only <code>X86</code> and <code>NVPTX</code> targets, assuming that x86-compatible PC used. To achieve this, following changes in < | Normally changing this settings is not recommended, however with <code>llvm_targets</code> it is now possible to control what microarchitecture support LLVM will be configured with, depending on hardware. For example, with NVIDIA cards, it make sense to leave only <code>X86</code> and <code>NVPTX</code> targets, assuming that x86-compatible PC used. To achieve this, following changes in <code>/etc/portage/make.conf</code> needed: | ||
{{file|name=/etc/portage/make.conf|desc=Excerpt of make.conf with NVIDIA cards|body= | {{file|name=/etc/portage/make.conf|desc=Excerpt of make.conf with NVIDIA cards|body= | ||
LLVM_TARGETS="X86 NVPTX" | LLVM_TARGETS="X86 NVPTX" | ||
}} | }} |
Revision as of 07:32, December 8, 2016
LLVM Targets
With =sys-devel/llvm-3.9.0 new llvm_targets
introduced which are relying on llvm's build system for a specific microarchitecture host targets support[1,2]:
AMDGPU
support for AMD & ATI graphic cards.X86
support for 32-bit, 64-bit and x32 arch. (AMD64 and EMT64, respectively)BPF
support for Berkley Packet Filtering.ARM
support for ARM processors.NVPTX
support for NVIDIA cards.
By default following targets enabled:
- 32- and 64-bit arch profiles:
X86
,AMDGPU
,BPF
andNVPTX
- arm profile:
ARM
andBPF
Normally changing this settings is not recommended, however with llvm_targets
it is now possible to control what microarchitecture support LLVM will be configured with, depending on hardware. For example, with NVIDIA cards, it make sense to leave only X86
and NVPTX
targets, assuming that x86-compatible PC used. To achieve this, following changes in /etc/portage/make.conf
needed:
/etc/portage/make.conf
- Excerpt of make.conf with NVIDIA cardsLLVM_TARGETS="X86 NVPTX"