Skip to content

Commit 4750dc2

Browse files
authored
[build] Enable Intel JIT events only on x86_64 (#56964)
Currently we are enabling it for all Linux systems, but [Intel VTune supports only x86_64](https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html) and building LLVM with ITTAPI support is problematic on some platforms (e.g. riscv64, ref: JuliaPackaging/Yggdrasil#10204).
1 parent c4825b0 commit 4750dc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Make.inc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,15 @@ endif
486486
# Set to 1 to enable profiling with perf
487487
ifeq ("$(OS)", "Linux")
488488
USE_PERF_JITEVENTS ?= 1
489+
ifeq ($(ARCH),x86_64)
489490
USE_INTEL_JITEVENTS ?= 1
490-
else
491+
else # ARCH x86_64
492+
USE_INTEL_JITEVENTS ?= 0
493+
endif # ARCH x86_64
494+
else # OS Linux
491495
USE_PERF_JITEVENTS ?= 0
492496
USE_INTEL_JITEVENTS ?= 0
493-
endif
497+
endif # OS Linux
494498

495499
JULIACODEGEN := LLVM
496500

0 commit comments

Comments
 (0)