You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HIP] compressed bundle format defaults to v3 (#152600)
HIP runtime support for compressed bundle format v3 is in place,
therefore switch the default compressed bundle format to v3 in compiler.
This allows both compressed and decompressed fat binary size to exceed
4GB by default.
Environment variable COMPRESSED_BUNDLE_FORMAT_VERSION=2 can be used for
backward compatibility for older HIP runtimes not supporting v3.
Fixes: SWDEV-548879
Copy file name to clipboardExpand all lines: clang/docs/ClangOffloadBundler.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -525,15 +525,15 @@ The compressed offload bundle begins with a header followed by the compressed bi
525
525
This is a unique identifier to distinguish compressed offload bundles. The value is the string 'CCOB' (Compressed Clang Offload Bundle).
526
526
527
527
- **Version Number (16-bit unsigned int)**:
528
-
This denotes the version of the compressed offload bundle format. The current version is `2`.
528
+
This denotes the version of the compressed offload bundle format. The current version is `3`.
529
529
530
530
- **Compression Method (16-bit unsigned int)**:
531
531
This field indicates the compression method used. The value corresponds to either `zlib` or `zstd`, represented as a 16-bit unsigned integer cast from the LLVM compression enumeration.
532
532
533
-
- **Total File Size (32-bit unsigned int)**:
533
+
- **Total File Size (unsigned int, 32-bit in v2, 64-bit in v3)**:
534
534
This is the total size (in bytes) of the file, including the header. Available in version 2 and above.
- **Uncompressed Binary Size (unsigned int, 32-bit in v2, 64-bit in v3)**:
537
537
This is the size (in bytes) of the binary data before it was compressed.
538
538
539
539
- **Hash (64-bit unsigned int)**:
@@ -542,4 +542,4 @@ The compressed offload bundle begins with a header followed by the compressed bi
542
542
- **Compressed Data**:
543
543
The actual compressed binary data follows the header. Its size can be inferred from the total size of the file minus the header size.
544
544
545
-
> **Note**: Version 3 of the format is under development. It uses 64-bit fields for Total File Size and Uncompressed Binary Size to support files larger than 4GB. To experiment with version 3, set the environment variable `COMPRESSED_BUNDLE_FORMAT_VERSION=3`. This support is experimental and not recommended for production use.
545
+
> **Note**: Version 3 is now the default format. For backward compatibility with older HIP runtimes that support version 2 only, set the environment variable `COMPRESSED_BUNDLE_FORMAT_VERSION=2`.
0 commit comments