We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9cf689 commit b357e0cCopy full SHA for b357e0c
compiler/rustc_codegen_llvm/src/back/write.rs
@@ -710,8 +710,7 @@ pub(crate) unsafe fn llvm_optimize(
710
if cgcx.target_is_like_gpu && config.offload.contains(&config::Offload::Enable) {
711
let cx =
712
SimpleCx::new(module.module_llvm.llmod(), module.module_llvm.llcx, cgcx.pointer_size);
713
- // For now we only support up to 10 kernels named kernel_0 ... kernel_9, a follow-up PR is
714
- // introducing a proper offload intrinsic to solve this limitation.
+
715
for func in cx.get_functions() {
716
let offload_kernel = "offload-kernel";
717
if attributes::has_string_attr(func, offload_kernel) {
0 commit comments