Skip to content

gpuocelot/cuda-fatbin-decompression

 
 

Repository files navigation

CUDA Fatbin Decompression

This projects decompressed CUDA fatbins that were compressed by nvcc, e.g., by using the -Xfatbin --compress-all flag.

Usage:

decompress <compressed fatbin file> [<uncompressed fatbin compare file>]

The first parameter should reference a file containing a compressed CUDA fatbin. This can be exported from a binary containing CUDA code using:

objcopy -O binary --only-section=.nv_fatbin <input> <output>

The program optionally uses the second paramter to compare the decompressed file to an uncompressed version of the first file to check if the output matches that of nvcc. To obtain an uncompressed CUDA fatbin use the nvcc flag -no-compress.

The project is licensed under Apache License 2.0

Copyright 2023 Niklas Eiling [email protected]

About

Decompress PTX sources embedded into CUDA binaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.5%
  • Makefile 11.5%