Skip to content

Commit ecbad5d

Browse files
simplfy
1 parent 1d272f7 commit ecbad5d

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

doc/src/devdocs/pkgimg.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,7 @@ To that effect we link with `-undefined dynamic_lookup`.
3636

3737
Similar to [multi-versioning](@ref sysimg-multi-versioning) for system images, package images support multi-versioning. This allows creating package caches that can run efficiently on different CPU architectures within the same environment.
3838

39-
### Usage and constraints
40-
41-
Package images can only target the same or more specific CPU features than their base system image. This constraint ensures compatibility and prevents runtime errors.
42-
43-
To enable multi-versioning for package images, set the [`JULIA_CPU_TARGET`](@ref JULIA_CPU_TARGET) environment variable when building packages:
44-
45-
```bash
46-
# Create multi-versioned package images for generic and optimized targets
47-
export JULIA_CPU_TARGET="generic;haswell"
48-
49-
# For heterogeneous environments, use generic to ensure broad compatibility
50-
export JULIA_CPU_TARGET="generic"
51-
```
39+
See the [`JULIA_CPU_TARGET`](@ref JULIA_CPU_TARGET) environment variable for more information on how to set the CPU target for package images.
5240

5341
## Flags that impact package image creation and selection
5442

doc/src/manual/environment-variables.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -495,18 +495,9 @@ A `generic` or empty CPU name means the basic required feature set of the target
495495
which is at least the architecture the C/C++ runtime is compiled with. Each string
496496
is interpreted by LLVM.
497497

498-
#### Examples of valid `JULIA_CPU_TARGET` values
499-
500-
- `generic` - produces portable code for the basic ISA
501-
- `haswell` - optimizes for Intel Haswell microarchitecture
502-
- `generic;haswell` - creates multi-versioned images with both generic and optimized variants
503-
- `x86-64-v3;x86-64-v4` - targets x86-64 microarchitecture levels v3 and v4
504-
505498
!!! note
506499
Package images can only target the same or more specific CPU features than
507-
their base system image. If your system image was built with `JULIA_CPU_TARGET=generic`,
508-
package images can use any target. However, if your system image targets a specific CPU
509-
(e.g., `haswell`), package images cannot target a less capable CPU.
500+
their base system image.
510501

511502
A few special features are supported:
512503

0 commit comments

Comments
 (0)