Skip to content

Commit

Permalink
[CUDA][Integrate] Switch CUDATarget to ptx_kernel cc. (#19925)
Browse files Browse the repository at this point in the history
This drops the local LLVM revert:
llvm/llvm-project@de7438e

Signed-off-by: hanhanW <[email protected]>
  • Loading branch information
hanhanW authored Feb 6, 2025
1 parent da4bdca commit ac46df5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/plugins/target/CUDA/CUDATarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class CUDATargetBackend final : public TargetBackend {
};

// Mark the entry point as a kernel.
setMetadataValueI32("kernel", 1);
llvmFunc->setCallingConv(llvm::CallingConv::PTX_Kernel);

// Set the maximum number of threads in the thread block (CTA).
auto exportOp = exportOpMap[funcOp.getName()];
Expand Down

0 comments on commit ac46df5

Please sign in to comment.