brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · f5cabb4 Raw
39 lines · plain
1; Check info on launch bounds for NVPTX.2 3; REQUIRES: nvptx-registered-target4 5; RUN: opt -pass-remarks=kernel-info -passes=kernel-info \6; RUN:     -disable-output %s 2>&1 | \7; RUN:   FileCheck -match-full-lines %s8 9target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"10target triple = "nvptx64-nvidia-cuda"11 12; CHECK: remark: test.c:10:0: in artificial function 'test', omp_target_num_teams = 10013; CHECK: remark: test.c:10:0: in artificial function 'test', omp_target_thread_limit = 10114; CHECK: remark: test.c:10:0: in artificial function 'test', maxclusterrank = 20015; CHECK: remark: test.c:10:0: in artificial function 'test', maxntidx = 21016; CHECK: remark: test.c:10:0: in artificial function 'test', maxntidy = 21117; CHECK: remark: test.c:10:0: in artificial function 'test', maxntidz = 21218define void @test() #0 !dbg !5 {19entry:20  ret void21}22 23attributes #0 = {24  "omp_target_num_teams"="100"25  "omp_target_thread_limit"="101"26  "nvvm.maxclusterrank"="200"27  "nvvm.maxntid"="210,211,212"28}29 30!llvm.module.flags = !{!0}31!llvm.dbg.cu = !{!1}32 33!0 = !{i32 2, !"Debug Info Version", i32 3}34!1 = distinct !DICompileUnit(language: DW_LANG_C11, file: !2, producer: "clang version 19.0.0git", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)35!2 = !DIFile(filename: "test.c", directory: "/tmp")36!3 = !{}37!4 = !DISubroutineType(types: !3)38!5 = distinct !DISubprogram(name: "test", scope: !2, file: !2, line: 10, type: !4, scopeLine: 10, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1, retainedNodes: !3)39