Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
use of LLVM_TARGETS cases
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 909
Location: US-FL-EST

PostPosted: Thu Oct 17, 2019 12:22 pm    Post subject: use of LLVM_TARGETS cases Reply with quote

Most of my PC builds have used AMD GPUs (usually for A10 chips with built-in GPU functionality). For this reason, most of my system's /etc/portage/make.conf contain
Code:
LLVM_TARGETS="AMDGPU X86"
resulting in
Code:
# llc -version
LLVM (http://llvm.org/):
  LLVM version 9.0.0
  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: bdver3

  Registered Targets:
    amdgcn - AMD GCN GPUs
    r600   - AMD GPUs HD2XXX-HD6XXX
    x86    - 32-bit X86: Pentium-Pro and above
    x86-64 - 64-bit X86: EM64T and AMD64

Without setting LLVM_TARGETS for my server which uses
Code:
VIDEO_CARDS="mga"
llvm results in
Code:
# llc -version
LLVM (http://llvm.org/):
  LLVM version 5.0.0
  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: sandybridge

  Registered Targets:
    amdgcn  - AMD GCN GPUs
    bpf     - BPF (host endian)
    bpfeb   - BPF (big endian)
    bpfel   - BPF (little endian)
    nvptx   - NVIDIA PTX 32-bit
    nvptx64 - NVIDIA PTX 64-bit
    r600    - AMD GPUs HD2XXX-HD6XXX
    x86     - 32-bit X86: Pentium-Pro and above
    x86-64  - 64-bit X86: EM64T and AMD64

In an effort to understand LLVM_TARGETS="" usage, I've followed the related RFC discussion and Funtoo LLVM news item.

For my MGA GPU, would it be beneficial to set?
Code:
LLVM_TARGETS="X86"
and for the Ryzen 3/nVidia GeForce GTX 1650 combo I will build very soon, should I use?
Code:
LLVM_TARGETS="NVPTX X86"

For my server, it seems especially pointless and compile time consuming to set LLVM targets for components which will never be installed. Any reduction in build times for llvm would be helpful.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum