HSAIL Offline Finalizer (HOF): a tool for offline finalization of HSAIL or BRIG file to ISA.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
README.md

README.md

HSA-HOF-AMD

HSAIL Offline Finalizer (HOF): a tool for offline finalization of HSAIL or BRIG file to ISA.

Command Help

> hof -help

  -help                          display this help menu
  -model=[small|large]           machine model to finalize for (optional)
  -profile=[base|full]           profile to finalize for (optional)
  -target=[ISA]                  target instruction set architecture (optional)
                                 current supported target:
                                    7:0:0  for CI (Kaveri, Bonaire)
                                    8:0:1  for subset of VI (Carizzo)
                                 7:0:0 is used if "-target" is omitted
  -output=[OUT]                  output filename (optional)
                                 "a.o" used if "-output" is omitted
  -brig [BRIGs]                  one or more brig module files
  -hsail [HSAILs]                one or more hsail text files
  -g                             generate debug information
  -O0                            disable all optimizations
  -O2                            use 2nd optimization level
  -amd-max-num-vgprs=[NUM]       set maximum number of VGPRs to NUM
  -amd-max-num-sgprs=[NUM]       set maximum number of SGPRs to NUM
  -amd-reserved-num-vgprs=[NUM]  reserve [NUM] VGPRs
  -amd-reserved-num-sgprs=[NUM]  reserve [NUM] SGPRs

Running the example

The HOF example demonstrates the usage of the HOF tool to perform offline finalization of an hsail file and to launch a kernel from the finalized object. It requires the HSA Runtime and development files. Simply type make to compile the example.