aristocratos / btop

A monitor of resources
Apache License 2.0
21.32k stars 653 forks source link

[BUG] Failed to Compile with NVIDIA GPU support on aarch64 machine #962

Open SaneBow opened 3 weeks ago

SaneBow commented 3 weeks ago

AWS has an instance type with NVIDIA GPU on aarch64: https://aws.amazon.com/ec2/instance-types/g5g/

I tried to compile btop with GPU support by running make GPU_SUPPORT=true INTEL_GPU_SUPPORT=false but it failed when linking with the following errors:

Linking and optimizing binary...
/usr/bin/ld: /tmp/ccm7l68R.ltrans16.ltrans.o: in function `Shared::init()':
<artificial>:(.text+0x638c): undefined reference to `find_intel_gpu_dir'
/usr/bin/ld: <artificial>:(.text+0x6394): undefined reference to `get_intel_device_id'
/usr/bin/ld: <artificial>:(.text+0x63a0): undefined reference to `get_intel_device_name'
/usr/bin/ld: <artificial>:(.text+0x63bc): undefined reference to `discover_engines'
/usr/bin/ld: <artificial>:(.text+0x63c8): undefined reference to `pmu_init'
/usr/bin/ld: <artificial>:(.text+0x63dc): undefined reference to `pmu_sample'
/usr/bin/ld: <artificial>:(.text+0x64c8): undefined reference to `pmu_sample'
/usr/bin/ld: <artificial>:(.text+0x651c): undefined reference to `pmu_calc'
/usr/bin/ld: <artificial>:(.text+0x6588): undefined reference to `pmu_calc'
/usr/bin/ld: <artificial>:(.text+0x6644): undefined reference to `pmu_calc'
/usr/bin/ld: /tmp/ccm7l68R.ltrans17.ltrans.o: in function `Gpu::collect(bool)':
<artificial>:(.text+0x4d40): undefined reference to `pmu_sample'
/usr/bin/ld: <artificial>:(.text+0x4d98): undefined reference to `pmu_calc'
/usr/bin/ld: <artificial>:(.text+0x4e34): undefined reference to `pmu_calc'
/usr/bin/ld: <artificial>:(.text+0x4f08): undefined reference to `pmu_calc'
collect2: error: ld returned 1 exit status

Could you please advise if it's possible to compile on aarch64 so it can support NVIDIA GPU?