Skip to content

Commit

Permalink
[CUDA][Integrate] Switch CUDATarget to to ptx_kernel cc.
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 committed Feb 6, 2025
1 parent 86b845b commit 2968631
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 2968631

Please sign in to comment.