Skip to content

Commit

Permalink
[ROCm] Enable kernarg preloading
Browse files Browse the repository at this point in the history
  • Loading branch information
draganmladjenovic authored and amd-jianli12 committed Jan 8, 2025
1 parent 92152a2 commit 9174f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def InvokeHipcc(argv, log=False):
hipccopts += defines
hipccopts += std_options
hipccopts += m_options
hipccopts += ' -mllvm=-amdgpu-kernarg-preload-count=16 '

if depfiles:
# Generate the dependency file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,10 @@ std::string GetROCDLDir(const DebugOptions& debug_options) {

void AMDGPUBackendInit(const DebugOptions& debug_options,
std::string& rocdl_dir_path) {
FeedLLVMWithFlags({
"-amdgpu-kernarg-preload-count=16",
});

llvm_ir::InitializeLLVMCommandLineOptions(
debug_options.xla_backend_extra_options());

Expand Down

0 comments on commit 9174f23

Please sign in to comment.