Dataset Viewer
Auto-converted to Parquet
file
stringclasses
10 values
cuda_device
stringclasses
10 values
cuda_host
stringclasses
10 values
amd_device
stringclasses
10 values
amd_host
stringclasses
10 values
output
stringclasses
10 values
1.cpp
code for sm_80 Function : _Z3addPiS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)" MOV R1, c[0x0][0x28] ; S2R R6, SR_TID.X ; S2R R3, SR_CTAID.X ; IMAD R6, R3, c[0x0][0x0], R6 ; ISETP.GE.AND P0, PT, R6, c[0x0][0x178], PT ; @P0 EXIT ; HFMA2.MMA R7, -RZ, RZ, 0, 2.384185791015625e-07 ; ULDC.64 UR4, c[0x0][0x118] ; IMAD.WIDE R4, R6, R7, c[0x0][0x168] ; IMAD.WIDE R2, R6.reuse, R7.reuse, c[0x0][0x160] ; LDG.E R4, [R4.64] ; LDG.E R3, [R2.64] ; IMAD.WIDE R6, R6, R7, c[0x0][0x170] ; IADD3 R9, R4, R3, RZ ; STG.E [R6.64], R9 ; EXIT ; BRA 0x100; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; ..........
.file "tmpxft_001f2a7a_00000000-6_1.cudafe1.cpp" .text .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3377: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3377: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .globl _Z27__device_stub__Z3addPiS_S_iPiS_S_i .type _Z27__device_stub__Z3addPiS_S_iPiS_S_i, @function _Z27__device_stub__Z3addPiS_S_iPiS_S_i: .LFB3399: .cfi_startproc endbr64 subq $152, %rsp .cfi_def_cfa_offset 160 movq %rdi, 24(%rsp) leaq 56(%rsp), %rdi movq %rsi, 16(%rsp) leaq 68(%rsp), %rsi movq %rdx, 8(%rsp) leaq 40(%rsp), %rdx movl %ecx, 4(%rsp) leaq 48(%rsp), %rcx movq %fs:40, %rax movq %rax, 136(%rsp) xorl %eax, %eax leaq 24(%rsp), %rax movl $1, 64(%rsp) movq %rax, 104(%rsp) leaq 16(%rsp), %rax movq %rax, 112(%rsp) leaq 8(%rsp), %rax movq %rax, 120(%rsp) leaq 4(%rsp), %rax movq %rax, 128(%rsp) movabsq $4294967297, %rax movq %rax, 56(%rsp) movq %rax, 68(%rsp) movl $1, 76(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L2 pushq 48(%rsp) .cfi_def_cfa_offset 168 leaq _Z3addPiS_S_i(%rip), %rdi pushq 48(%rsp) .cfi_def_cfa_offset 176 movq 84(%rsp), %rcx movl 92(%rsp), %r8d movq 72(%rsp), %rsi movl 80(%rsp), %edx leaq 120(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 168 popq %rdx .cfi_def_cfa_offset 160 .L2: movq 136(%rsp), %rax subq %fs:40, %rax je .L4 call __stack_chk_fail@PLT .L4: addq $152, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3399: .size _Z27__device_stub__Z3addPiS_S_iPiS_S_i, .-_Z27__device_stub__Z3addPiS_S_iPiS_S_i .globl _Z3addPiS_S_i .type _Z3addPiS_S_i, @function _Z3addPiS_S_i: .LFB3400: .cfi_startproc endbr64 jmp _Z27__device_stub__Z3addPiS_S_iPiS_S_i .cfi_endproc .LFE3400: .size _Z3addPiS_S_i, .-_Z3addPiS_S_i .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "c[0] = " .LC1: .string ", c[1] = " .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB3374: .cfi_startproc endbr64 pushq %r13 .cfi_def_cfa_offset 16 .cfi_offset 13, -16 movl $1024, %edi pushq %r12 .cfi_def_cfa_offset 24 .cfi_offset 12, -24 pushq %rbp .cfi_def_cfa_offset 32 .cfi_offset 6, -32 subq $64, %rsp .cfi_def_cfa_offset 96 movq %fs:40, %rax movq %rax, 56(%rsp) xorl %eax, %eax call malloc@PLT movl $1024, %edi movq %rax, %r13 call malloc@PLT movl $1024, %edi movq %rax, %r12 call malloc@PLT leaq 8(%rsp), %rdi movl $1024, %esi movq %rax, %rbp call cudaMalloc@PLT leaq 16(%rsp), %rdi movl $1024, %esi call cudaMalloc@PLT leaq 24(%rsp), %rdi movl $1024, %esi call cudaMalloc@PLT xorl %eax, %eax .L9: leal (%rax,%rax), %edx movl %eax, 0(%r13,%rax,4) movl %edx, (%r12,%rax,4) incq %rax cmpq $256, %rax jne .L9 movq 8(%rsp), %rdi movl $1, %ecx movl $1024, %edx movq %r13, %rsi call cudaMemcpy@PLT movq 16(%rsp), %rdi movl $1, %ecx movq %r12, %rsi movl $1024, %edx call cudaMemcpy@PLT movl $16777217, %edx xorl %r9d, %r9d xorl %r8d, %r8d salq $8, %rdx movl $1, %ecx movl $1, %esi movabsq $4294967297, %rdi call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L10 movq 24(%rsp), %rdx movq 16(%rsp), %rsi movl $256, %ecx movq 8(%rsp), %rdi call _Z27__device_stub__Z3addPiS_S_iPiS_S_i .L10: movq 24(%rsp), %rsi movl $2, %ecx movl $1024, %edx movq %rbp, %rdi call cudaMemcpy@PLT leaq .LC0(%rip), %rsi leaq _ZSt4cout(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl 0(%rbp), %esi movq %rax, %rdi call _ZNSolsEi@PLT leaq .LC1(%rip), %rsi movq %rax, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl 4(%rbp), %esi movq %rax, %rdi call _ZNSolsEi@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT movq 8(%rsp), %rdi call cudaFree@PLT movq 16(%rsp), %rdi call cudaFree@PLT movq 24(%rsp), %rdi call cudaFree@PLT movq %r13, %rdi call free@PLT movq %r12, %rdi call free@PLT movq %rbp, %rdi call free@PLT movq 56(%rsp), %rax subq %fs:40, %rax je .L11 call __stack_chk_fail@PLT .L11: addq $64, %rsp .cfi_def_cfa_offset 32 xorl %eax, %eax popq %rbp .cfi_def_cfa_offset 24 popq %r12 .cfi_def_cfa_offset 16 popq %r13 .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3374: .size main, .-main .section .rodata.str1.1 .LC2: .string "_Z3addPiS_S_i" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB3402: .cfi_startproc endbr64 pushq %rax .cfi_def_cfa_offset 16 leaq _ZL15__fatDeviceText(%rip), %rdi call __cudaRegisterFatBinary@PLT pushq $0 .cfi_def_cfa_offset 24 xorl %r9d, %r9d orl $-1, %r8d pushq $0 .cfi_def_cfa_offset 32 leaq .LC2(%rip), %rdx movq %rax, %rdi leaq _Z3addPiS_S_i(%rip), %rsi pushq $0 .cfi_def_cfa_offset 40 movq %rdx, %rcx pushq $0 .cfi_def_cfa_offset 48 movq %rax, _ZL20__cudaFatCubinHandle(%rip) call __cudaRegisterFunction@PLT movq _ZL20__cudaFatCubinHandle(%rip), %rdi addq $32, %rsp .cfi_def_cfa_offset 16 call __cudaRegisterFatBinaryEnd@PLT leaq _ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi popq %rdx .cfi_def_cfa_offset 8 jmp atexit@PLT .cfi_endproc .LFE3402: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .section .text.startup .type _GLOBAL__sub_I_main, @function _GLOBAL__sub_I_main: .LFB4008: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 leaq _ZStL8__ioinit(%rip), %rbp movq %rbp, %rdi call _ZNSt8ios_base4InitC1Ev@PLT movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rdi movq %rbp, %rsi popq %rbp .cfi_def_cfa_offset 8 leaq __dso_handle(%rip), %rdx jmp __cxa_atexit@PLT .cfi_endproc .LFE4008: .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main .section .init_array .align 8 .quad _GLOBAL__sub_I_main .section .nvFatBinSegment,"aw" .align 8 .type _ZL15__fatDeviceText, @object .size _ZL15__fatDeviceText, 24 _ZL15__fatDeviceText: .long 1180844977 .long 1 .quad fatbinData .quad 0 .local _ZL20__cudaFatCubinHandle .comm _ZL20__cudaFatCubinHandle,8,8 .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .hidden __dso_handle .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_S_i .globl _Z3addPiS_S_i .p2align 8 .type _Z3addPiS_S_i,@function _Z3addPiS_S_i: s_load_b32 s0, s[0:1], 0x4 s_load_b32 s1, s[2:3], 0x18 s_waitcnt lgkmcnt(0) s_and_b32 s0, s0, 0xffff s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1) v_mad_u64_u32 v[1:2], null, s15, s0, v[0:1] s_mov_b32 s0, exec_lo v_cmpx_gt_i32_e64 s1, v1 s_cbranch_execz .LBB0_2 s_clause 0x1 s_load_b128 s[4:7], s[2:3], 0x0 s_load_b64 s[0:1], s[2:3], 0x10 v_ashrrev_i32_e32 v2, 31, v1 s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1) v_lshlrev_b64 v[0:1], 2, v[1:2] s_waitcnt lgkmcnt(0) v_add_co_u32 v2, vcc_lo, s4, v0 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo v_add_co_u32 v4, vcc_lo, s6, v0 v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo v_add_co_u32 v0, vcc_lo, s0, v0 global_load_b32 v2, v[2:3], off global_load_b32 v3, v[4:5], off v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo s_waitcnt vmcnt(0) v_add_nc_u32_e32 v2, v3, v2 global_store_b32 v[0:1], v2, off .LBB0_2: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,#alloc .p2align 6, 0x0 .amdhsa_kernel _Z3addPiS_S_i .amdhsa_group_segment_fixed_size 0 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 28 .amdhsa_user_sgpr_count 15 .amdhsa_user_sgpr_dispatch_ptr 1 .amdhsa_user_sgpr_queue_ptr 0 .amdhsa_user_sgpr_kernarg_segment_ptr 1 .amdhsa_user_sgpr_dispatch_id 0 .amdhsa_user_sgpr_private_segment_size 0 .amdhsa_wavefront_size32 1 .amdhsa_enable_private_segment 0 .amdhsa_system_sgpr_workgroup_id_x 1 .amdhsa_system_sgpr_workgroup_id_y 0 .amdhsa_system_sgpr_workgroup_id_z 0 .amdhsa_system_sgpr_workgroup_info 0 .amdhsa_system_vgpr_workitem_id 0 .amdhsa_next_free_vgpr 6 .amdhsa_next_free_sgpr 16 .amdhsa_float_round_mode_32 0 .amdhsa_float_round_mode_16_64 0 .amdhsa_float_denorm_mode_32 3 .amdhsa_float_denorm_mode_16_64 3 .amdhsa_dx10_clamp 1 .amdhsa_ieee_mode 1 .amdhsa_fp16_overflow 0 .amdhsa_workgroup_processor_mode 1 .amdhsa_memory_ordered 1 .amdhsa_forward_progress 0 .amdhsa_shared_vgpr_count 0 .amdhsa_exception_fp_ieee_invalid_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end0: .size _Z3addPiS_S_i, .Lfunc_end0-_Z3addPiS_S_i .section .AMDGPU.csdata .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .ident "Ubuntu clang version 17.0.6 (5build1)" .section ".note.GNU-stack" .addrsig .amdgpu_metadata --- amdhsa.kernels: - .args: - .address_space: global .offset: 0 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 8 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 16 .size: 8 .value_kind: global_buffer - .offset: 24 .size: 4 .value_kind: by_value .group_segment_fixed_size: 0 .kernarg_segment_align: 8 .kernarg_segment_size: 28 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z3addPiS_S_i .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z3addPiS_S_i.kd .vgpr_count: 6 .vgpr_spill_count: 0 .wavefront_size: 32 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 1 ... .end_amdgpu_metadata
.text .file "1.cpp" .globl _ZSt21ios_base_library_initv .globl _Z18__device_stub__addPiS_S_i .p2align 4, 0x90 .type _Z18__device_stub__addPiS_S_i,@function _Z18__device_stub__addPiS_S_i: .cfi_startproc subq $120, %rsp .cfi_def_cfa_offset 128 movq %rdi, 72(%rsp) movq %rsi, 64(%rsp) movq %rdx, 56(%rsp) movl %ecx, 4(%rsp) leaq 72(%rsp), %rax movq %rax, 80(%rsp) leaq 64(%rsp), %rax movq %rax, 88(%rsp) leaq 56(%rsp), %rax movq %rax, 96(%rsp) leaq 4(%rsp), %rax movq %rax, 104(%rsp) leaq 40(%rsp), %rdi leaq 24(%rsp), %rsi leaq 16(%rsp), %rdx leaq 8(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 40(%rsp), %rsi movl 48(%rsp), %edx movq 24(%rsp), %rcx movl 32(%rsp), %r8d movq _Z3addPiS_S_i@GOTPCREL(%rip), %rdi leaq 80(%rsp), %r9 pushq 8(%rsp) .cfi_adjust_cfa_offset 8 pushq 24(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $136, %rsp .cfi_adjust_cfa_offset -136 retq .Lfunc_end0: .size _Z18__device_stub__addPiS_S_i, .Lfunc_end0-_Z18__device_stub__addPiS_S_i .cfi_endproc .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI1_0: .long 0 .long 1 .long 2 .long 3 .LCPI1_1: .long 4 .long 4 .long 4 .long 4 .LCPI1_2: .long 8 .long 8 .long 8 .long 8 .LCPI1_3: .long 12 .long 12 .long 12 .long 12 .LCPI1_4: .long 16 .long 16 .long 16 .long 16 .LCPI1_5: .long 24 .long 24 .long 24 .long 24 .text .globl main .p2align 4, 0x90 .type main,@function main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r13 .cfi_def_cfa_offset 40 pushq %r12 .cfi_def_cfa_offset 48 pushq %rbx .cfi_def_cfa_offset 56 subq $152, %rsp .cfi_def_cfa_offset 208 .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movl $1024, %edi callq malloc@PLT movq %rax, %rbx movl $1024, %edi callq malloc@PLT movq %rax, %r14 movl $1024, %edi callq malloc@PLT movq %rax, %r15 leaq 24(%rsp), %rdi movl $1024, %esi callq hipMalloc@PLT leaq 16(%rsp), %rdi movl $1024, %esi callq hipMalloc@PLT leaq 8(%rsp), %rdi movl $1024, %esi callq hipMalloc@PLT movdqa .LCPI1_0(%rip), %xmm0 movl $12, %eax movdqa .LCPI1_1(%rip), %xmm1 movdqa .LCPI1_2(%rip), %xmm2 movdqa .LCPI1_3(%rip), %xmm3 movdqa .LCPI1_4(%rip), %xmm4 movdqa .LCPI1_5(%rip), %xmm5 movdqa %xmm0, %xmm6 .p2align 4, 0x90 .LBB1_1: movdqa %xmm0, %xmm7 paddd %xmm1, %xmm7 movdqu %xmm0, -48(%rbx,%rax,4) movdqu %xmm7, -32(%rbx,%rax,4) movdqa %xmm6, %xmm7 paddd %xmm6, %xmm7 movdqa %xmm7, %xmm8 paddd %xmm2, %xmm8 movdqu %xmm7, -48(%r14,%rax,4) movdqu %xmm8, -32(%r14,%rax,4) movdqa %xmm0, %xmm8 paddd %xmm2, %xmm8 movdqa %xmm0, %xmm9 paddd %xmm3, %xmm9 movdqu %xmm8, -16(%rbx,%rax,4) movdqu %xmm9, (%rbx,%rax,4) movdqa %xmm7, %xmm8 paddd %xmm4, %xmm8 paddd %xmm5, %xmm7 movdqu %xmm8, -16(%r14,%rax,4) movdqu %xmm7, (%r14,%rax,4) paddd %xmm4, %xmm0 paddd %xmm4, %xmm6 addq $16, %rax cmpq $268, %rax jne .LBB1_1 movq 24(%rsp), %rdi movl $1024, %edx movq %rbx, %rsi movl $1, %ecx callq hipMemcpy@PLT movq 16(%rsp), %rdi movl $1024, %edx movq %r14, %rsi movl $1, %ecx callq hipMemcpy@PLT movabsq $4294967297, %rdi leaq 255(%rdi), %rdx movl $1, %esi movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_3 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_13 .LBB1_5: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str(%rip), %rsi movl $26, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_6 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_8 .LBB1_3: movq 24(%rsp), %rax movq 16(%rsp), %rcx movq 8(%rsp), %rdx movq %rax, 104(%rsp) movq %rcx, 96(%rsp) movq %rdx, 88(%rsp) movl $256, 36(%rsp) leaq 104(%rsp), %rax movq %rax, 112(%rsp) leaq 96(%rsp), %rax movq %rax, 120(%rsp) leaq 88(%rsp), %rax movq %rax, 128(%rsp) leaq 36(%rsp), %rax movq %rax, 136(%rsp) leaq 72(%rsp), %rdi leaq 56(%rsp), %rsi leaq 48(%rsp), %rdx leaq 40(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 72(%rsp), %rsi movl 80(%rsp), %edx movq 56(%rsp), %rcx movl 64(%rsp), %r8d movq _Z3addPiS_S_i@GOTPCREL(%rip), %rdi leaq 112(%rsp), %r9 pushq 40(%rsp) .cfi_adjust_cfa_offset 8 pushq 56(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_5 .LBB1_13: movq 8(%rsp), %rsi movl $1024, %edx movq %r15, %rdi movl $2, %ecx callq hipMemcpy@PLT movq _ZSt4cout@GOTPCREL(%rip), %r12 leaq .L.str.1(%rip), %rsi movl $7, %edx movq %r12, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl (%r15), %esi movq %r12, %rdi callq _ZNSolsEi@PLT movq %rax, %r12 leaq .L.str.2(%rip), %rsi movl $9, %edx movq %rax, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl 4(%r15), %esi movq %r12, %rdi callq _ZNSolsEi@PLT movq %rax, %r12 movq (%rax), %rax movq -24(%rax), %rax movq 240(%r12,%rax), %r13 testq %r13, %r13 je .LBB1_19 cmpb $0, 56(%r13) je .LBB1_16 movzbl 67(%r13), %eax jmp .LBB1_17 .LBB1_6: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_8: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_19 cmpb $0, 56(%rbx) je .LBB1_11 movzbl 67(%rbx), %eax jmp .LBB1_12 .LBB1_11: movq %rbx, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbx), %rax movq %rbx, %rdi movl $10, %esi callq *48(%rax) .LBB1_12: movsbl %al, %esi movq _ZSt4cerr@GOTPCREL(%rip), %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $-1, %eax jmp .LBB1_18 .LBB1_16: movq %r13, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r13), %rax movq %r13, %rdi movl $10, %esi callq *48(%rax) .LBB1_17: movsbl %al, %esi movq %r12, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq 24(%rsp), %rdi callq hipFree@PLT movq 16(%rsp), %rdi callq hipFree@PLT movq 8(%rsp), %rdi callq hipFree@PLT movq %rbx, %rdi callq free@PLT movq %r14, %rdi callq free@PLT movq %r15, %rdi callq free@PLT xorl %eax, %eax .LBB1_18: addq $152, %rsp .cfi_def_cfa_offset 56 popq %rbx .cfi_def_cfa_offset 48 popq %r12 .cfi_def_cfa_offset 40 popq %r13 .cfi_def_cfa_offset 32 popq %r14 .cfi_def_cfa_offset 24 popq %r15 .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 retq .LBB1_19: .cfi_def_cfa_offset 208 callq _ZSt16__throw_bad_castv@PLT .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc .p2align 4, 0x90 .type __hip_module_ctor,@function __hip_module_ctor: .cfi_startproc subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 leaq __hip_fatbin_wrapper(%rip), %rdi callq __hipRegisterFatBinary@PLT movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movq _Z3addPiS_S_i@GOTPCREL(%rip), %rsi leaq .L__unnamed_1(%rip), %rcx movq %rcx, %rdx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction@PLT leaq __hip_module_dtor(%rip), %rdi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit@PLT .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc .p2align 4, 0x90 .type __hip_module_dtor,@function __hip_module_dtor: .cfi_startproc movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary@PLT movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB3_2: retq .Lfunc_end3: .size __hip_module_dtor, .Lfunc_end3-__hip_module_dtor .cfi_endproc .type _Z3addPiS_S_i,@object .section .data.rel.ro,"aw",@progbits .globl _Z3addPiS_S_i .p2align 3, 0x0 _Z3addPiS_S_i: .quad _Z18__device_stub__addPiS_S_i .size _Z3addPiS_S_i, 8 .type .L.str,@object .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "HIP kernel launch failed: " .size .L.str, 27 .type .L.str.1,@object .L.str.1: .asciz "c[0] = " .size .L.str.1, 8 .type .L.str.2,@object .L.str.2: .asciz ", c[1] = " .size .L.str.2, 10 .type .L__unnamed_1,@object .L__unnamed_1: .asciz "_Z3addPiS_S_i" .size .L__unnamed_1, 14 .type __hip_fatbin_wrapper,@object .section .hipFatBinSegment,"aw",@progbits .p2align 3, 0x90 __hip_fatbin_wrapper: .long 1212764230 .long 1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .hidden __hip_gpubin_handle .type __hip_gpubin_handle,@object .section .bss.__hip_gpubin_handle,"aGw",@nobits,__hip_gpubin_handle,comdat .weak __hip_gpubin_handle .p2align 3, 0x0 __hip_gpubin_handle: .quad 0 .size __hip_gpubin_handle, 8 .section .init_array,"aw",@init_array .p2align 3, 0x90 .quad __hip_module_ctor .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z18__device_stub__addPiS_S_i .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z3addPiS_S_i .addrsig_sym _ZSt4cerr .addrsig_sym _ZSt4cout .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper
c[0] = 0, c[1] = 3
10.cpp
code for sm_80 Function : _Z13convolution2DPfS_S_iii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)" IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; S2R R0, SR_TID.Y ; ULDC UR6, c[0x0][0x180] ; BSSY B0, 0x2e0 ; UIADD3 UR5, UR6, 0xf, URZ ; S2R R4, SR_CTAID.X ; ULDC.64 UR8, c[0x0][0x118] ; S2R R5, SR_TID.X ; S2R R7, SR_CTAID.Y ; ISETP.GE.AND P0, PT, R0, UR5, PT ; IMAD R4, R4, c[0x0][0x0], R5 ; IMAD R7, R7, c[0x0][0x4], R0 ; @P0 BRA 0x2d0 ; ULDC UR4, c[0x0][0x180] ; IMAD.MOV.U32 R8, RZ, RZ, 0x1 ; ULEA.HI UR4, UR6, UR4, URZ, 0x1 ; MOV R12, R0 ; USHF.R.S32.HI UR4, URZ, 0x1, UR4 ; IADD3 R6, -R8.reuse, c[0x0][0x178], RZ ; IADD3 R8, -R8, c[0x0][0x17c], RZ ; IADD3 R9, R7, -UR4, RZ ; IADD3 R10, R4, -UR4, RZ ; ISETP.GE.AND P0, PT, R5, UR5, PT ; BSSY B1, 0x2a0 ; @P0 BRA 0x290 ; IMAD.IADD R3, R9, 0x1, R12 ; MOV R11, R5 ; IMNMX R3, R6, R3, PT ; IMNMX R14, RZ, R3, !PT ; IMAD.IADD R3, R10, 0x1, R11 ; HFMA2.MMA R2, -RZ, RZ, 0, 2.384185791015625e-07 ; IMNMX R3, R8, R3, PT ; IMNMX R3, RZ, R3, !PT ; IMAD R3, R14, c[0x0][0x17c], R3 ; IMAD.WIDE R2, R3, R2, c[0x0][0x160] ; LDG.E R2, [R2.64] ; IMAD R13, R12, 0x14, R11 ; IADD3 R11, R11, c[0x0][0x0], RZ ; ISETP.GE.AND P0, PT, R11, UR5, PT ; STS [R13.X4], R2 ; @!P0 BRA 0x1d0 ; BSYNC B1 ; IADD3 R12, R12, c[0x0][0x4], RZ ; ISETP.GE.AND P0, PT, R12, UR5, PT ; @!P0 BRA 0x160 ; BSYNC B0 ; BAR.SYNC 0x0 ; ISETP.GE.AND P0, PT, R4, c[0x0][0x17c], PT ; ISETP.GE.OR P0, PT, R7, c[0x0][0x178], P0 ; @P0 EXIT ; IMAD.MOV.U32 R6, RZ, RZ, c[0x0][0x180] ; MOV R19, RZ ; ISETP.GE.AND P0, PT, R6, 0x1, PT ; @!P0 BRA 0xd40 ; IADD3 R2, R6, -0x1, RZ ; IMAD R8, R0, 0x14, R5 ; LOP3.LUT R6, R6, 0x3, RZ, 0xc0, !PT ; ULDC.64 UR6, c[0x0][0x170] ; ISETP.GE.U32.AND P1, PT, R2, 0x3, PT ; UIADD3 UR5, UP0, UR6, 0x8, URZ ; IMAD.MOV.U32 R9, RZ, RZ, RZ ; LEA R8, R8, 0x8, 0x2 ; IADD3 R10, -R6, c[0x0][0x180], RZ ; UIADD3.X UR6, URZ, UR7, URZ, UP0, !UPT ; UMOV UR4, URZ ; IMAD R12, R9, c[0x0][0x180], RZ ; @!P1 BRA 0xbc0 ; ISETP.GT.AND P0, PT, R10, RZ, PT ; IMAD.U32 R3, RZ, RZ, UR6 ; MOV R2, UR5 ; UMOV UR4, URZ ; IMAD R11, R9, 0x50, R8 ; MOV R13, R10 ; IMAD.WIDE R2, R12, 0x4, R2 ; @!P0 BRA 0xa80 ; ISETP.GT.AND P2, PT, R13, 0xc, PT ; PLOP3.LUT P0, PT, PT, PT, PT, 0x80, 0x0 ; @!P2 BRA 0x860 ; PLOP3.LUT P0, PT, PT, PT, PT, 0x8, 0x0 ; LDG.E R20, [R2.64+-0x8] ; LDG.E R25, [R2.64+-0x4] ; LDG.E R21, [R2.64] ; LDG.E R23, [R2.64+0x4] ; LDG.E R18, [R2.64+0x8] ; LDG.E R14, [R2.64+0xc] ; LDS R24, [R11+-0x8] ; LDG.E R15, [R2.64+0x10] ; LDS R26, [R11+-0x4] ; LDG.E R16, [R2.64+0x14] ; LDS R22, [R11] ; LDG.E R17, [R2.64+0x18] ; LDS R27, [R11+0x18] ; FFMA R20, R20, R24, R19 ; LDS R24, [R11+0x4] ; LDG.E R19, [R2.64+0x1c] ; FFMA R26, R25, R26, R20 ; LDS R25, [R11+0x8] ; FFMA R26, R21, R22, R26 ; LDG.E R20, [R2.64+0x20] ; LDG.E R22, [R2.64+0x24] ; LDG.E R21, [R2.64+0x28] ; FFMA R26, R23, R24, R26 ; LDG.E R24, [R2.64+0x2c] ; LDG.E R23, [R2.64+0x30] ; FFMA R25, R18, R25, R26 ; LDG.E R18, [R2.64+0x34] ; IADD3 R13, R13, -0x10, RZ ; UIADD3 UR4, UR4, 0x10, URZ ; LDS R26, [R11+0xc] ; ISETP.GT.AND P2, PT, R13, 0xc, PT ; IADD3 R2, P3, R2, 0x40, RZ ; IMAD.X R3, RZ, RZ, R3, P3 ; FFMA R14, R14, R26, R25 ; LDS R25, [R11+0x10] ; LDS R26, [R11+0x14] ; FFMA R15, R15, R25, R14 ; LDS R14, [R11+0x1c] ; FFMA R16, R16, R26, R15 ; LDS R15, [R11+0x20] ; FFMA R27, R17, R27, R16 ; LDS R25, [R11+0x24] ; LDS R16, [R11+0x28] ; LDS R17, [R11+0x2c] ; FFMA R27, R19, R14, R27 ; LDS R14, [R11+0x30] ; LDS R19, [R11+0x34] ; FFMA R15, R20, R15, R27 ; FFMA R15, R22, R25, R15 ; IADD3 R11, R11, 0x40, RZ ; FFMA R15, R21, R16, R15 ; FFMA R15, R24, R17, R15 ; FFMA R14, R23, R14, R15 ; FFMA R19, R18, R19, R14 ; @P2 BRA 0x4f0 ; ISETP.GT.AND P2, PT, R13, 0x4, PT ; @!P2 BRA 0xa60 ; LDG.E R24, [R2.64+-0x8] ; LDG.E R26, [R2.64+-0x4] ; LDG.E R14, [R2.64] ; LDG.E R15, [R2.64+0x4] ; LDG.E R16, [R2.64+0x8] ; LDG.E R17, [R2.64+0xc] ; LDG.E R18, [R2.64+0x10] ; LDG.E R20, [R2.64+0x14] ; PLOP3.LUT P0, PT, PT, PT, PT, 0x8, 0x0 ; UIADD3 UR4, UR4, 0x8, URZ ; IADD3 R13, R13, -0x8, RZ ; LDS R23, [R11+-0x8] ; LDS R25, [R11+-0x4] ; IADD3 R2, P2, R2, 0x20, RZ ; LDS R21, [R11] ; IADD3.X R3, RZ, R3, RZ, P2, !PT ; LDS R22, [R11+0x4] ; FFMA R23, R24, R23, R19 ; LDS R19, [R11+0x8] ; FFMA R26, R26, R25, R23 ; LDS R24, [R11+0xc] ; FFMA R14, R14, R21, R26 ; LDS R25, [R11+0x10] ; FFMA R14, R15, R22, R14 ; LDS R23, [R11+0x14] ; IADD3 R11, R11, 0x20, RZ ; FFMA R14, R16, R19, R14 ; FFMA R14, R17, R24, R14 ; FFMA R14, R18, R25, R14 ; FFMA R19, R20, R23, R14 ; ISETP.NE.OR P0, PT, R13, RZ, P0 ; @!P0 BRA 0xbc0 ; LDG.E R14, [R2.64+-0x8] ; LDG.E R17, [R2.64+-0x4] ; LDG.E R21, [R2.64] ; LDG.E R23, [R2.64+0x4] ; IADD3 R13, R13, -0x4, RZ ; UIADD3 UR4, UR4, 0x4, URZ ; LDS R15, [R11+-0x8] ; ISETP.NE.AND P0, PT, R13, RZ, PT ; LDS R16, [R11+-0x4] ; LDS R18, [R11] ; LDS R20, [R11+0x4] ; IADD3 R11, R11, 0x10, RZ ; FFMA R14, R14, R15, R19 ; IADD3 R15, P2, R2, 0x10, RZ ; FFMA R14, R17, R16, R14 ; MOV R2, R15 ; IMAD.X R3, RZ, RZ, R3, P2 ; FFMA R14, R21, R18, R14 ; FFMA R19, R23, R20, R14 ; @P0 BRA 0xa80 ; ISETP.NE.AND P0, PT, R6, RZ, PT ; @!P0 BRA 0xd10 ; IADD3 R2, R12, UR4, RZ ; IMAD.MOV.U32 R3, RZ, RZ, 0x4 ; IMAD.WIDE R2, R2, R3, c[0x0][0x170] ; LDG.E R14, [R2.64] ; IADD3 R11, R5, UR4, RZ ; IADD3 R12, R0, R9, RZ ; ISETP.NE.AND P0, PT, R6, 0x1, PT ; IMAD R11, R12, 0x14, R11 ; IMAD.SHL.U32 R15, R11, 0x4, RZ ; LDS R11, [R15] ; FFMA R19, R14, R11, R19 ; @!P0 BRA 0xd10 ; ISETP.NE.AND P0, PT, R6, 0x2, PT ; LDG.E R12, [R2.64+0x4] ; LDS R11, [R15+0x4] ; @P0 LDG.E R14, [R2.64+0x8] ; @P0 LDS R13, [R15+0x8] ; FFMA R19, R12, R11, R19 ; @P0 FFMA R19, R14, R13, R19 ; IADD3 R9, R9, 0x1, RZ ; ISETP.GE.AND P0, PT, R9, c[0x0][0x180], PT ; @!P0 BRA 0x400 ; HFMA2.MMA R3, -RZ, RZ, 0, 2.384185791015625e-07 ; IMAD R2, R7, c[0x0][0x17c], R4 ; IMAD.WIDE R2, R2, R3, c[0x0][0x168] ; STG.E [R2.64], R19 ; EXIT ; BRA 0xd90; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; ..........
.file "tmpxft_001f2beb_00000000-6_10.cudafe1.cpp" .text .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3377: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3377: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .globl _Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii .type _Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii, @function _Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii: .LFB3399: .cfi_startproc endbr64 subq $184, %rsp .cfi_def_cfa_offset 192 movq %rdi, 40(%rsp) leaq 72(%rsp), %rdi movq %rsi, 32(%rsp) leaq 84(%rsp), %rsi movq %rdx, 24(%rsp) leaq 56(%rsp), %rdx movl %ecx, 20(%rsp) leaq 64(%rsp), %rcx movl %r8d, 16(%rsp) movl %r9d, 12(%rsp) movq %fs:40, %rax movq %rax, 168(%rsp) xorl %eax, %eax leaq 40(%rsp), %rax movl $1, 80(%rsp) movq %rax, 120(%rsp) leaq 32(%rsp), %rax movq %rax, 128(%rsp) leaq 24(%rsp), %rax movq %rax, 136(%rsp) leaq 20(%rsp), %rax movq %rax, 144(%rsp) leaq 16(%rsp), %rax movq %rax, 152(%rsp) leaq 12(%rsp), %rax movq %rax, 160(%rsp) movabsq $4294967297, %rax movq %rax, 72(%rsp) movq %rax, 84(%rsp) movl $1, 92(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L2 pushq 64(%rsp) .cfi_def_cfa_offset 200 leaq _Z13convolution2DPfS_S_iii(%rip), %rdi pushq 64(%rsp) .cfi_def_cfa_offset 208 movq 100(%rsp), %rcx movl 108(%rsp), %r8d movq 88(%rsp), %rsi movl 96(%rsp), %edx leaq 136(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 200 popq %rdx .cfi_def_cfa_offset 192 .L2: movq 168(%rsp), %rax subq %fs:40, %rax je .L4 call __stack_chk_fail@PLT .L4: addq $184, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3399: .size _Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii, .-_Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii .globl _Z13convolution2DPfS_S_iii .type _Z13convolution2DPfS_S_iii, @function _Z13convolution2DPfS_S_iii: .LFB3400: .cfi_startproc endbr64 jmp _Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii .cfi_endproc .LFE3400: .size _Z13convolution2DPfS_S_iii, .-_Z13convolution2DPfS_S_iii .section .rodata.str1.1,"aMS",@progbits,1 .LC4: .string "Kernel launch failed: " .LC5: .string "Sample output values (center):" .LC6: .string " " .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB3374: .cfi_startproc endbr64 pushq %r15 .cfi_def_cfa_offset 16 .cfi_offset 15, -16 movl $16777216, %edi pushq %r14 .cfi_def_cfa_offset 24 .cfi_offset 14, -24 pushq %r13 .cfi_def_cfa_offset 32 .cfi_offset 13, -32 pushq %r12 .cfi_def_cfa_offset 40 .cfi_offset 12, -40 pushq %rbp .cfi_def_cfa_offset 48 .cfi_offset 6, -48 pushq %rbx .cfi_def_cfa_offset 56 .cfi_offset 3, -56 subq $104, %rsp .cfi_def_cfa_offset 160 movq %fs:40, %rax movq %rax, 88(%rsp) xorl %eax, %eax call malloc@PLT movl $16777216, %edi movq %rax, %r13 call malloc@PLT movl $100, %edi movq %rax, %r12 call malloc@PLT movss .LC1(%rip), %xmm1 movq %r13, %rsi xorl %edx, %edx movq %rax, %rbp .L9: imull $10, %edx, %edi movq %rsi, %rcx xorl %eax, %eax movzbl %dil, %edi .L10: movzbl %al, %r8d addl $10, %eax addq $4, %rcx addl %edi, %r8d cvtsi2ssl %r8d, %xmm0 mulss %xmm1, %xmm0 movss %xmm0, -4(%rcx) cmpl $20480, %eax jne .L10 incl %edx addq $8192, %rsi cmpl $2048, %edx jne .L9 xorl %r15d, %r15d xorps %xmm1, %xmm1 .L11: movl $2, %eax imulq $20, %r15, %rbx xorl %r14d, %r14d subl %r15d, %eax cvtsi2ssl %eax, %xmm0 addq %rbp, %rbx mulss %xmm0, %xmm0 movss %xmm0, (%rsp) .L12: movl $2, %eax movss %xmm1, 12(%rsp) subl %r14d, %eax cvtsi2ssl %eax, %xmm0 mulss %xmm0, %xmm0 addss (%rsp), %xmm0 xorps .LC2(%rip), %xmm0 mulss .LC3(%rip), %xmm0 call expf@PLT movss 12(%rsp), %xmm1 movss %xmm0, (%rbx,%r14,4) incq %r14 addss %xmm0, %xmm1 cmpq $5, %r14 jne .L12 incq %r15 cmpq $5, %r15 jne .L11 xorl %eax, %eax .L13: movss 0(%rbp,%rax,4), %xmm0 divss %xmm1, %xmm0 movss %xmm0, 0(%rbp,%rax,4) incq %rax cmpq $25, %rax jne .L13 leaq 24(%rsp), %rdi movl $16777216, %esi call cudaMalloc@PLT leaq 32(%rsp), %rdi movl $16777216, %esi call cudaMalloc@PLT leaq 40(%rsp), %rdi movl $100, %esi call cudaMalloc@PLT movq 24(%rsp), %rdi movl $1, %ecx movq %r13, %rsi movl $16777216, %edx call cudaMemcpy@PLT movq 40(%rsp), %rdi movl $1, %ecx movq %rbp, %rsi movl $100, %edx call cudaMemcpy@PLT leaq 48(%rsp), %rdi movabsq $549755814016, %rax movl $1, 84(%rsp) movq %rax, 76(%rsp) call cudaEventCreate@PLT leaq 56(%rsp), %rdi call cudaEventCreate@PLT movq 48(%rsp), %rdi xorl %esi, %esi call cudaEventRecord@PLT movq 76(%rsp), %rdi xorl %r9d, %r9d xorl %r8d, %r8d movl 84(%rsp), %esi movl $1, %ecx movabsq $68719476752, %rdx call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L14 movq 40(%rsp), %rdx movq 32(%rsp), %rsi movl $5, %r9d movl $2048, %r8d movq 24(%rsp), %rdi movl $2048, %ecx call _Z40__device_stub__Z13convolution2DPfS_S_iiiPfS_S_iii .L14: call cudaGetLastError@PLT movl %eax, %r14d testl %eax, %eax je .L15 leaq .LC4(%rip), %rsi leaq _ZSt4cerr(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl %r14d, %edi movq %rax, %rbp call cudaGetErrorString@PLT movq %rbp, %rdi movq %rax, %rsi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT orl $-1, %eax jmp .L8 .L15: movq 56(%rsp), %rdi xorl %esi, %esi leaq _ZSt4cout(%rip), %r15 leaq 8388608(%r12), %rbx movl $2097152, %r14d call cudaEventRecord@PLT movq 56(%rsp), %rdi call cudaEventSynchronize@PLT movq 56(%rsp), %rdx movq 48(%rsp), %rsi leaq 20(%rsp), %rdi call cudaEventElapsedTime@PLT movq 32(%rsp), %rsi movl $2, %ecx movq %r12, %rdi movl $16777216, %edx call cudaMemcpy@PLT leaq .LC5(%rip), %rsi movq %r15, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT .L17: xorl %edx, %edx .L18: cvtss2sd 4096(%rbx,%rdx,4), %xmm0 movq %r15, %rdi movq %rdx, (%rsp) call _ZNSo9_M_insertIdEERSoT_@PLT leaq .LC6(%rip), %rsi movq %rax, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq (%rsp), %rdx incq %rdx cmpq $5, %rdx jne .L18 movq %r15, %rdi addl $2048, %r14d addq $8192, %rbx call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT cmpl $2107392, %r14d jne .L17 movq 24(%rsp), %rdi call cudaFree@PLT movq 32(%rsp), %rdi call cudaFree@PLT movq 40(%rsp), %rdi call cudaFree@PLT movq %r13, %rdi call free@PLT movq %r12, %rdi call free@PLT movq %rbp, %rdi call free@PLT xorl %eax, %eax .L8: movq 88(%rsp), %rdx subq %fs:40, %rdx je .L20 call __stack_chk_fail@PLT .L20: addq $104, %rsp .cfi_def_cfa_offset 56 popq %rbx .cfi_def_cfa_offset 48 popq %rbp .cfi_def_cfa_offset 40 popq %r12 .cfi_def_cfa_offset 32 popq %r13 .cfi_def_cfa_offset 24 popq %r14 .cfi_def_cfa_offset 16 popq %r15 .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3374: .size main, .-main .section .rodata.str1.1 .LC7: .string "_Z13convolution2DPfS_S_iii" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB3402: .cfi_startproc endbr64 pushq %rax .cfi_def_cfa_offset 16 leaq _ZL15__fatDeviceText(%rip), %rdi call __cudaRegisterFatBinary@PLT pushq $0 .cfi_def_cfa_offset 24 xorl %r9d, %r9d orl $-1, %r8d pushq $0 .cfi_def_cfa_offset 32 leaq .LC7(%rip), %rdx movq %rax, %rdi leaq _Z13convolution2DPfS_S_iii(%rip), %rsi pushq $0 .cfi_def_cfa_offset 40 movq %rdx, %rcx pushq $0 .cfi_def_cfa_offset 48 movq %rax, _ZL20__cudaFatCubinHandle(%rip) call __cudaRegisterFunction@PLT movq _ZL20__cudaFatCubinHandle(%rip), %rdi addq $32, %rsp .cfi_def_cfa_offset 16 call __cudaRegisterFatBinaryEnd@PLT leaq _ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi popq %rdx .cfi_def_cfa_offset 8 jmp atexit@PLT .cfi_endproc .LFE3402: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .section .text.startup .type _GLOBAL__sub_I_main, @function _GLOBAL__sub_I_main: .LFB4009: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 leaq _ZStL8__ioinit(%rip), %rbp movq %rbp, %rdi call _ZNSt8ios_base4InitC1Ev@PLT movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rdi movq %rbp, %rsi popq %rbp .cfi_def_cfa_offset 8 leaq __dso_handle(%rip), %rdx jmp __cxa_atexit@PLT .cfi_endproc .LFE4009: .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main .section .init_array .align 8 .quad _GLOBAL__sub_I_main .section .nvFatBinSegment,"aw" .align 8 .type _ZL15__fatDeviceText, @object .size _ZL15__fatDeviceText, 24 _ZL15__fatDeviceText: .long 1180844977 .long 1 .quad fatbinData .quad 0 .local _ZL20__cudaFatCubinHandle .comm _ZL20__cudaFatCubinHandle,8,8 .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC1: .long 998244352 .section .rodata.cst16,"aM",@progbits,16 .align 16 .LC2: .long -2147483648 .long 0 .long 0 .long 0 .section .rodata.cst4 .align 4 .LC3: .long 1056964608 .hidden __dso_handle .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13convolution2DPfS_S_iii .globl _Z13convolution2DPfS_S_iii .p2align 8 .type _Z13convolution2DPfS_S_iii,@function _Z13convolution2DPfS_S_iii: s_load_b32 s0, s[0:1], 0x4 s_clause 0x2 s_load_b128 s[8:11], s[2:3], 0x18 s_load_b128 s[4:7], s[2:3], 0x0 s_load_b64 s[2:3], s[2:3], 0x10 v_bfe_u32 v3, v0, 10, 10 s_mov_b32 s13, exec_lo s_waitcnt lgkmcnt(0) s_lshr_b32 s1, s0, 16 s_and_b32 s12, s0, 0xffff v_mad_u64_u32 v[1:2], null, s15, s1, v[3:4] v_and_b32_e32 v2, 0x3ff, v0 s_add_i32 s11, s10, 15 s_mul_i32 s14, s14, s12 v_cmpx_gt_i32_e64 s11, v3 s_cbranch_execz .LBB0_6 s_lshr_b32 s0, s10, 31 v_dual_mov_b32 v6, v3 :: v_dual_lshlrev_b32 v5, 2, v2 s_add_i32 s0, s10, s0 v_cmp_gt_u32_e32 vcc_lo, s11, v2 s_ashr_i32 s0, s0, 1 s_delay_alu instid0(VALU_DEP_2) v_mad_u32_u24 v5, 0x50, v3, v5 v_subrev_nc_u32_e32 v0, s0, v1 s_sub_i32 s0, s14, s0 s_add_i32 s15, s8, -1 v_lshl_add_u32 v4, v2, 1, s0 s_add_i32 s16, s9, -1 s_mul_i32 s17, s1, 0x50 s_lshl_b32 s18, s12, 2 s_mov_b32 s19, 0 s_set_inst_prefetch_distance 0x1 s_branch .LBB0_3 .p2align 6 .LBB0_2: s_or_b32 exec_lo, exec_lo, s20 v_add_nc_u32_e32 v6, s1, v6 v_add_nc_u32_e32 v5, s17, v5 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1) v_cmp_le_i32_e64 s0, s11, v6 s_or_b32 s19, s0, s19 s_delay_alu instid0(SALU_CYCLE_1) s_and_not1_b32 exec_lo, exec_lo, s19 s_cbranch_execz .LBB0_6 .LBB0_3: s_and_saveexec_b32 s20, vcc_lo s_cbranch_execz .LBB0_2 v_dual_mov_b32 v8, v5 :: v_dual_add_nc_u32 v7, v0, v6 s_mov_b32 s21, 0 s_mov_b32 s22, 0 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_minmax_i32 v7, v7, s15, 0 v_mul_lo_u32 v7, v7, s9 .p2align 6 .LBB0_5: v_add_nc_u32_e32 v9, s22, v4 s_add_i32 s22, s22, s12 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_minmax_i32 v9, v9, s16, 0 v_add_nc_u32_e32 v9, v9, v7 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_ashrrev_i32_e32 v10, 31, v9 v_lshlrev_b64 v[9:10], 2, v[9:10] s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_add_co_u32 v9, s0, s4, v9 v_add_co_ci_u32_e64 v10, s0, s5, v10, s0 global_load_b32 v9, v[9:10], off v_add_nc_u32_e32 v10, s22, v2 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_cmp_le_i32_e64 s0, s11, v10 s_or_b32 s21, s0, s21 s_waitcnt vmcnt(0) ds_store_b32 v8, v9 v_add_nc_u32_e32 v8, s18, v8 s_and_not1_b32 exec_lo, exec_lo, s21 s_cbranch_execnz .LBB0_5 s_branch .LBB0_2 .LBB0_6: s_set_inst_prefetch_distance 0x2 s_or_b32 exec_lo, exec_lo, s13 v_add_nc_u32_e32 v0, s14, v2 v_cmp_gt_i32_e64 s0, s8, v1 s_waitcnt vmcnt(0) lgkmcnt(0) s_waitcnt_vscnt null, 0x0 s_barrier s_waitcnt vmcnt(0) lgkmcnt(0) s_waitcnt_vscnt null, 0x0 buffer_gl0_inv v_cmp_gt_i32_e32 vcc_lo, s9, v0 s_and_b32 s0, vcc_lo, s0 s_delay_alu instid0(SALU_CYCLE_1) s_and_saveexec_b32 s1, s0 s_cbranch_execz .LBB0_19 s_cmp_lt_i32 s10, 1 s_cbranch_scc1 .LBB0_17 v_lshlrev_b32_e32 v2, 2, v2 s_and_b32 s8, s10, 7 s_cmp_gt_u32 s10, 7 s_mov_b32 s0, 0 s_cselect_b32 s11, -1, 0 s_and_b32 s12, s10, -8 s_cmp_lg_u32 s8, 0 v_mad_u32_u24 v3, 0x50, v3, v2 v_mov_b32_e32 v2, 0 s_cselect_b32 s13, -1, 0 s_add_u32 s14, s2, 28 s_addc_u32 s15, s3, 0 s_mov_b32 s16, 0 s_branch .LBB0_10 .LBB0_9: v_add_nc_u32_e32 v3, 0x50, v3 s_add_i32 s16, s16, 1 s_add_i32 s0, s0, s10 s_cmp_eq_u32 s16, s10 s_cbranch_scc1 .LBB0_18 .LBB0_10: s_and_not1_b32 vcc_lo, exec_lo, s11 s_cbranch_vccnz .LBB0_14 s_ashr_i32 s1, s0, 31 v_mov_b32_e32 v4, v3 s_lshl_b64 s[4:5], s[0:1], 2 s_mov_b32 s1, 0 s_add_u32 s4, s14, s4 s_addc_u32 s5, s15, s5 .p2align 6 .LBB0_12: s_load_b256 s[20:27], s[4:5], -0x1c ds_load_2addr_b32 v[5:6], v4 offset1:1 ds_load_2addr_b32 v[7:8], v4 offset0:2 offset1:3 ds_load_2addr_b32 v[9:10], v4 offset0:4 offset1:5 ds_load_2addr_b32 v[11:12], v4 offset0:6 offset1:7 s_add_i32 s1, s1, 8 v_add_nc_u32_e32 v4, 32, v4 s_add_u32 s4, s4, 32 s_addc_u32 s5, s5, 0 s_cmp_eq_u32 s12, s1 s_waitcnt lgkmcnt(0) v_fmac_f32_e32 v2, s20, v5 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_fmac_f32_e32 v2, s21, v6 v_fmac_f32_e32 v2, s22, v7 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_fmac_f32_e32 v2, s23, v8 v_fmac_f32_e32 v2, s24, v9 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_fmac_f32_e32 v2, s25, v10 v_fmac_f32_e32 v2, s26, v11 s_delay_alu instid0(VALU_DEP_1) v_fmac_f32_e32 v2, s27, v12 s_cbranch_scc0 .LBB0_12 s_mov_b32 s1, s12 s_and_not1_b32 vcc_lo, exec_lo, s13 s_cbranch_vccz .LBB0_15 s_branch .LBB0_9 .LBB0_14: s_mov_b32 s1, 0 s_and_not1_b32 vcc_lo, exec_lo, s13 s_cbranch_vccnz .LBB0_9 .LBB0_15: s_add_i32 s4, s1, s0 s_mov_b32 s17, s8 s_ashr_i32 s5, s4, 31 s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1) s_lshl_b64 s[4:5], s[4:5], 2 s_add_u32 s4, s2, s4 s_addc_u32 s5, s3, s5 s_lshl_b32 s1, s1, 2 .LBB0_16: s_delay_alu instid0(SALU_CYCLE_1) v_add_nc_u32_e32 v4, s1, v3 s_load_b32 s18, s[4:5], 0x0 s_add_u32 s4, s4, 4 s_addc_u32 s5, s5, 0 s_add_i32 s17, s17, -1 ds_load_b32 v4, v4 s_add_i32 s1, s1, 4 s_cmp_lg_u32 s17, 0 s_waitcnt lgkmcnt(0) v_fmac_f32_e32 v2, s18, v4 s_cbranch_scc1 .LBB0_16 s_branch .LBB0_9 .LBB0_17: v_mov_b32_e32 v2, 0 .LBB0_18: v_mad_u64_u32 v[3:4], null, v1, s9, v[0:1] s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_ashrrev_i32_e32 v4, 31, v3 v_lshlrev_b64 v[0:1], 2, v[3:4] s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2) v_add_co_u32 v0, vcc_lo, s6, v0 v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo global_store_b32 v[0:1], v2, off .LBB0_19: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,#alloc .p2align 6, 0x0 .amdhsa_kernel _Z13convolution2DPfS_S_iii .amdhsa_group_segment_fixed_size 1600 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 36 .amdhsa_user_sgpr_count 14 .amdhsa_user_sgpr_dispatch_ptr 1 .amdhsa_user_sgpr_queue_ptr 0 .amdhsa_user_sgpr_kernarg_segment_ptr 1 .amdhsa_user_sgpr_dispatch_id 0 .amdhsa_user_sgpr_private_segment_size 0 .amdhsa_wavefront_size32 1 .amdhsa_enable_private_segment 0 .amdhsa_system_sgpr_workgroup_id_x 1 .amdhsa_system_sgpr_workgroup_id_y 1 .amdhsa_system_sgpr_workgroup_id_z 0 .amdhsa_system_sgpr_workgroup_info 0 .amdhsa_system_vgpr_workitem_id 1 .amdhsa_next_free_vgpr 13 .amdhsa_next_free_sgpr 28 .amdhsa_float_round_mode_32 0 .amdhsa_float_round_mode_16_64 0 .amdhsa_float_denorm_mode_32 3 .amdhsa_float_denorm_mode_16_64 3 .amdhsa_dx10_clamp 1 .amdhsa_ieee_mode 1 .amdhsa_fp16_overflow 0 .amdhsa_workgroup_processor_mode 1 .amdhsa_memory_ordered 1 .amdhsa_forward_progress 0 .amdhsa_shared_vgpr_count 0 .amdhsa_exception_fp_ieee_invalid_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end0: .size _Z13convolution2DPfS_S_iii, .Lfunc_end0-_Z13convolution2DPfS_S_iii .section .AMDGPU.csdata .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .ident "Ubuntu clang version 17.0.6 (5build1)" .section ".note.GNU-stack" .addrsig .amdgpu_metadata --- amdhsa.kernels: - .args: - .address_space: global .offset: 0 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 8 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 16 .size: 8 .value_kind: global_buffer - .offset: 24 .size: 4 .value_kind: by_value - .offset: 28 .size: 4 .value_kind: by_value - .offset: 32 .size: 4 .value_kind: by_value .group_segment_fixed_size: 1600 .kernarg_segment_align: 8 .kernarg_segment_size: 36 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z13convolution2DPfS_S_iii .private_segment_fixed_size: 0 .sgpr_count: 30 .sgpr_spill_count: 0 .symbol: _Z13convolution2DPfS_S_iii.kd .vgpr_count: 13 .vgpr_spill_count: 0 .wavefront_size: 32 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 1 ... .end_amdgpu_metadata
.text .file "10.cpp" .globl _ZSt21ios_base_library_initv .globl _Z28__device_stub__convolution2DPfS_S_iii .p2align 4, 0x90 .type _Z28__device_stub__convolution2DPfS_S_iii,@function _Z28__device_stub__convolution2DPfS_S_iii: .cfi_startproc subq $152, %rsp .cfi_def_cfa_offset 160 movq %rdi, 88(%rsp) movq %rsi, 80(%rsp) movq %rdx, 72(%rsp) movl %ecx, 20(%rsp) movl %r8d, 16(%rsp) movl %r9d, 12(%rsp) leaq 88(%rsp), %rax movq %rax, 96(%rsp) leaq 80(%rsp), %rax movq %rax, 104(%rsp) leaq 72(%rsp), %rax movq %rax, 112(%rsp) leaq 20(%rsp), %rax movq %rax, 120(%rsp) leaq 16(%rsp), %rax movq %rax, 128(%rsp) leaq 12(%rsp), %rax movq %rax, 136(%rsp) leaq 56(%rsp), %rdi leaq 40(%rsp), %rsi leaq 32(%rsp), %rdx leaq 24(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 56(%rsp), %rsi movl 64(%rsp), %edx movq 40(%rsp), %rcx movl 48(%rsp), %r8d movq _Z13convolution2DPfS_S_iii@GOTPCREL(%rip), %rdi leaq 96(%rsp), %r9 pushq 24(%rsp) .cfi_adjust_cfa_offset 8 pushq 40(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $168, %rsp .cfi_adjust_cfa_offset -168 retq .Lfunc_end0: .size _Z28__device_stub__convolution2DPfS_S_iii, .Lfunc_end0-_Z28__device_stub__convolution2DPfS_S_iii .cfi_endproc .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI1_0: .long 0 .long 1 .long 2 .long 3 .LCPI1_1: .long 10 .long 10 .long 10 .long 10 .LCPI1_2: .long 40 .long 40 .long 40 .long 40 .LCPI1_3: .long 254 .long 254 .long 254 .long 254 .LCPI1_4: .long 0x3b800000 .long 0x3b800000 .long 0x3b800000 .long 0x3b800000 .LCPI1_5: .long 8 .long 8 .long 8 .long 8 .LCPI1_6: .long 0x3b4293d4 .long 0x3c5a0247 .long 0x3cb3b7cc .long 0x3c5a0247 .LCPI1_7: .long 0x3b4293d4 .long 0x3c5a0247 .long 0x3d744315 .long 0x3dc95c29 .LCPI1_8: .long 0x3d744315 .long 0x3c5a0247 .long 0x3cb3b7cc .long 0x3dc95c29 .LCPI1_9: .long 0x3e25fe46 .long 0x3dc95c29 .long 0x3cb3b7cc .long 0x3c5a0247 .LCPI1_10: .long 0x3d744315 .long 0x3dc95c29 .long 0x3d744315 .long 0x3c5a0247 .text .globl main .p2align 4, 0x90 .type main,@function main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r13 .cfi_def_cfa_offset 40 pushq %r12 .cfi_def_cfa_offset 48 pushq %rbx .cfi_def_cfa_offset 56 subq $200, %rsp .cfi_def_cfa_offset 256 .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movl $16777216, %edi callq malloc@PLT movq %rax, %rbx movl $16777216, %edi callq malloc@PLT movq %rax, %r14 movl $100, %edi callq malloc@PLT movq %rax, %r15 movq %rbx, %rax addq $16, %rax xorl %ecx, %ecx movdqa .LCPI1_0(%rip), %xmm0 movdqa .LCPI1_1(%rip), %xmm1 movdqa .LCPI1_2(%rip), %xmm2 movdqa .LCPI1_3(%rip), %xmm3 movaps .LCPI1_4(%rip), %xmm4 movdqa .LCPI1_5(%rip), %xmm5 .p2align 4, 0x90 .LBB1_1: leal (%rcx,%rcx), %edx leal (%rdx,%rdx,4), %edx movzbl %dl, %edx movd %edx, %xmm6 pshufd $0, %xmm6, %xmm6 xorl %edx, %edx movdqa %xmm0, %xmm7 .p2align 4, 0x90 .LBB1_2: movdqa %xmm7, %xmm8 pmuludq %xmm1, %xmm8 pshufd $232, %xmm8, %xmm8 pshufd $245, %xmm7, %xmm9 pmuludq %xmm1, %xmm9 pshufd $232, %xmm9, %xmm9 punpckldq %xmm9, %xmm8 movdqa %xmm8, %xmm9 paddd %xmm2, %xmm9 pand %xmm3, %xmm8 pand %xmm3, %xmm9 paddd %xmm6, %xmm8 paddd %xmm6, %xmm9 cvtdq2ps %xmm8, %xmm8 cvtdq2ps %xmm9, %xmm9 mulps %xmm4, %xmm8 mulps %xmm4, %xmm9 movups %xmm8, -16(%rax,%rdx,4) movups %xmm9, (%rax,%rdx,4) addq $8, %rdx paddd %xmm5, %xmm7 cmpq $2048, %rdx jne .LBB1_2 incq %rcx addq $8192, %rax cmpq $2048, %rcx jne .LBB1_1 movaps .LCPI1_6(%rip), %xmm0 movups %xmm0, (%r15) movaps .LCPI1_7(%rip), %xmm1 movups %xmm1, 16(%r15) movaps .LCPI1_8(%rip), %xmm1 movups %xmm1, 32(%r15) movaps .LCPI1_9(%rip), %xmm1 movups %xmm1, 48(%r15) movaps .LCPI1_10(%rip), %xmm1 movups %xmm1, 64(%r15) movups %xmm0, 80(%r15) movl $994218964, 96(%r15) leaq 32(%rsp), %rdi movl $16777216, %esi callq hipMalloc@PLT leaq 24(%rsp), %rdi movl $16777216, %esi callq hipMalloc@PLT leaq 16(%rsp), %rdi movl $100, %esi callq hipMalloc@PLT movq 32(%rsp), %rdi movl $16777216, %edx movq %rbx, %rsi movl $1, %ecx callq hipMemcpy@PLT movq 16(%rsp), %rdi movl $100, %edx movq %r15, %rsi movl $1, %ecx callq hipMemcpy@PLT leaq 56(%rsp), %rdi callq hipEventCreate@PLT leaq 8(%rsp), %rdi callq hipEventCreate@PLT movq 56(%rsp), %rdi xorl %esi, %esi callq hipEventRecord@PLT movabsq $549755814016, %rdi movabsq $68719476752, %rdx movl $1, %esi movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_5 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_15 .LBB1_7: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str(%rip), %rsi movl $22, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_8 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_10 .LBB1_5: movq 32(%rsp), %rax movq 24(%rsp), %rcx movq 16(%rsp), %rdx movq %rax, 136(%rsp) movq %rcx, 128(%rsp) movq %rdx, 120(%rsp) movl $2048, 52(%rsp) movl $2048, 48(%rsp) movl $5, 44(%rsp) leaq 136(%rsp), %rax movq %rax, 144(%rsp) leaq 128(%rsp), %rax movq %rax, 152(%rsp) leaq 120(%rsp), %rax movq %rax, 160(%rsp) leaq 52(%rsp), %rax movq %rax, 168(%rsp) leaq 48(%rsp), %rax movq %rax, 176(%rsp) leaq 44(%rsp), %rax movq %rax, 184(%rsp) leaq 104(%rsp), %rdi leaq 88(%rsp), %rsi leaq 80(%rsp), %rdx leaq 72(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 104(%rsp), %rsi movl 112(%rsp), %edx movq 88(%rsp), %rcx movl 96(%rsp), %r8d movq _Z13convolution2DPfS_S_iii@GOTPCREL(%rip), %rdi leaq 144(%rsp), %r9 pushq 72(%rsp) .cfi_adjust_cfa_offset 8 pushq 88(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_7 .LBB1_15: movq 8(%rsp), %rdi xorl %esi, %esi callq hipEventRecord@PLT movq 8(%rsp), %rdi callq hipEventSynchronize@PLT movq 56(%rsp), %rsi movq 8(%rsp), %rdx leaq 144(%rsp), %rdi callq hipEventElapsedTime@PLT movq 24(%rsp), %rsi movl $16777216, %edx movq %r14, %rdi movl $2, %ecx callq hipMemcpy@PLT movq _ZSt4cout@GOTPCREL(%rip), %r12 leaq .L.str.1(%rip), %rsi movl $30, %edx movq %r12, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq (%r12), %rax movq -24(%rax), %rax movq 240(%r12,%rax), %r13 testq %r13, %r13 je .LBB1_27 cmpb $0, 56(%r13) movq %rbx, 64(%rsp) je .LBB1_18 movzbl 67(%r13), %eax jmp .LBB1_19 .LBB1_8: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_10: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_27 cmpb $0, 56(%rbx) je .LBB1_13 movzbl 67(%rbx), %eax jmp .LBB1_14 .LBB1_13: movq %rbx, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbx), %rax movq %rbx, %rdi movl $10, %esi callq *48(%rax) .LBB1_14: movsbl %al, %esi movq _ZSt4cerr@GOTPCREL(%rip), %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $-1, %eax jmp .LBB1_26 .LBB1_18: movq %r13, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r13), %rax movq %r13, %rdi movl $10, %esi callq *48(%rax) .LBB1_19: movsbl %al, %esi movq %r12, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $8392720, %ebx leaq .L.str.2(%rip), %r13 jmp .LBB1_20 .p2align 4, 0x90 .LBB1_23: movq %rbp, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbp), %rax movq %rbp, %rdi movl $10, %esi callq *48(%rax) .LBB1_24: movsbl %al, %esi movq %r12, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT addq $8192, %rbx cmpq $8433680, %rbx je .LBB1_25 .LBB1_20: movss -16(%r14,%rbx), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r12, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movl $1, %edx movq %rax, %rdi movq %r13, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss -12(%r14,%rbx), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r12, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movl $1, %edx movq %rax, %rdi movq %r13, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss -8(%r14,%rbx), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r12, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movl $1, %edx movq %rax, %rdi movq %r13, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss -4(%r14,%rbx), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r12, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movl $1, %edx movq %rax, %rdi movq %r13, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss (%r14,%rbx), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r12, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movl $1, %edx movq %rax, %rdi movq %r13, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq (%r12), %rax movq -24(%rax), %rax movq 240(%r12,%rax), %rbp testq %rbp, %rbp je .LBB1_27 cmpb $0, 56(%rbp) je .LBB1_23 movzbl 67(%rbp), %eax jmp .LBB1_24 .LBB1_25: movq 32(%rsp), %rdi callq hipFree@PLT movq 24(%rsp), %rdi callq hipFree@PLT movq 16(%rsp), %rdi callq hipFree@PLT movq 64(%rsp), %rdi callq free@PLT movq %r14, %rdi callq free@PLT movq %r15, %rdi callq free@PLT xorl %eax, %eax .LBB1_26: addq $200, %rsp .cfi_def_cfa_offset 56 popq %rbx .cfi_def_cfa_offset 48 popq %r12 .cfi_def_cfa_offset 40 popq %r13 .cfi_def_cfa_offset 32 popq %r14 .cfi_def_cfa_offset 24 popq %r15 .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 retq .LBB1_27: .cfi_def_cfa_offset 256 callq _ZSt16__throw_bad_castv@PLT .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc .p2align 4, 0x90 .type __hip_module_ctor,@function __hip_module_ctor: .cfi_startproc subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 leaq __hip_fatbin_wrapper(%rip), %rdi callq __hipRegisterFatBinary@PLT movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movq _Z13convolution2DPfS_S_iii@GOTPCREL(%rip), %rsi leaq .L__unnamed_1(%rip), %rcx movq %rcx, %rdx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction@PLT leaq __hip_module_dtor(%rip), %rdi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit@PLT .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc .p2align 4, 0x90 .type __hip_module_dtor,@function __hip_module_dtor: .cfi_startproc movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary@PLT movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB3_2: retq .Lfunc_end3: .size __hip_module_dtor, .Lfunc_end3-__hip_module_dtor .cfi_endproc .type _Z13convolution2DPfS_S_iii,@object .section .data.rel.ro,"aw",@progbits .globl _Z13convolution2DPfS_S_iii .p2align 3, 0x0 _Z13convolution2DPfS_S_iii: .quad _Z28__device_stub__convolution2DPfS_S_iii .size _Z13convolution2DPfS_S_iii, 8 .type .L.str,@object .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "Kernel launch failed: " .size .L.str, 23 .type .L.str.1,@object .L.str.1: .asciz "Sample output values (center):" .size .L.str.1, 31 .type .L.str.2,@object .L.str.2: .asciz " " .size .L.str.2, 2 .type .L__unnamed_1,@object .L__unnamed_1: .asciz "_Z13convolution2DPfS_S_iii" .size .L__unnamed_1, 27 .type __hip_fatbin_wrapper,@object .section .hipFatBinSegment,"aw",@progbits .p2align 3, 0x90 __hip_fatbin_wrapper: .long 1212764230 .long 1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .hidden __hip_gpubin_handle .type __hip_gpubin_handle,@object .section .bss.__hip_gpubin_handle,"aGw",@nobits,__hip_gpubin_handle,comdat .weak __hip_gpubin_handle .p2align 3, 0x0 __hip_gpubin_handle: .quad 0 .size __hip_gpubin_handle, 8 .section .init_array,"aw",@init_array .p2align 3, 0x90 .quad __hip_module_ctor .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z28__device_stub__convolution2DPfS_S_iii .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z13convolution2DPfS_S_iii .addrsig_sym _ZSt4cerr .addrsig_sym _ZSt4cout .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper
Sample output values (center): 0.265227 0.288864 0.366989 0.445114 0.523239 0.288864 0.3125 0.390625 0.46875 0.546875 0.366989 0.390625 0.46875 0.546875 0.625 0.445114 0.46875 0.546875 0.625 0.703125 0.523239 0.546875 0.625 0.703125 0.78125
2.cpp
code for sm_80 Function : _Z14rgbToGrayscalePhS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)" MOV R1, c[0x0][0x28] ; S2R R3, SR_CTAID.Y ; S2R R2, SR_TID.Y ; S2R R0, SR_CTAID.X ; S2R R5, SR_TID.X ; IMAD R3, R3, c[0x0][0x4], R2 ; ISETP.GE.AND P0, PT, R3, c[0x0][0x174], PT ; IMAD R0, R0, c[0x0][0x0], R5 ; ISETP.GE.OR P0, PT, R0, c[0x0][0x170], P0 ; @P0 EXIT ; IMAD R0, R3, c[0x0][0x170], R0 ; ULDC.64 UR4, c[0x0][0x118] ; IMAD R3, R0, 0x3, RZ ; IADD3 R2, P0, R3, c[0x0][0x160], RZ ; LEA.HI.X.SX32 R3, R3, c[0x0][0x164], 0x1, P0 ; LDG.E.U8 R7, [R2.64+0x1] ; LDG.E.U8 R6, [R2.64] ; LDG.E.U8 R8, [R2.64+0x2] ; IADD3 R4, P0, R0, c[0x0][0x168], RZ ; I2F.U16 R7, R7 ; I2F.U16 R6, R6 ; I2F.U16 R8, R8 ; FMUL R5, R7, 0.58700001239776611328 ; FFMA R5, R6, 0.29899999499320983887, R5 ; FFMA R9, R8, 0.11400000005960464478, R5 ; LEA.HI.X.SX32 R5, R0, c[0x0][0x16c], 0x1, P0 ; F2I.U32.TRUNC.NTZ R9, R9 ; STG.E.U8 [R4.64], R9 ; EXIT ; BRA 0x1d0; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; ..........
.file "tmpxft_001f2ab1_00000000-6_2.cudafe1.cpp" .text .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3377: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3377: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .globl _Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii .type _Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii, @function _Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii: .LFB3399: .cfi_startproc endbr64 subq $152, %rsp .cfi_def_cfa_offset 160 movq %rdi, 24(%rsp) leaq 56(%rsp), %rdi movq %rsi, 16(%rsp) leaq 68(%rsp), %rsi movl %edx, 12(%rsp) leaq 40(%rsp), %rdx movl %ecx, 8(%rsp) leaq 48(%rsp), %rcx movq %fs:40, %rax movq %rax, 136(%rsp) xorl %eax, %eax leaq 24(%rsp), %rax movl $1, 64(%rsp) movq %rax, 104(%rsp) leaq 16(%rsp), %rax movq %rax, 112(%rsp) leaq 12(%rsp), %rax movq %rax, 120(%rsp) leaq 8(%rsp), %rax movq %rax, 128(%rsp) movabsq $4294967297, %rax movq %rax, 56(%rsp) movq %rax, 68(%rsp) movl $1, 76(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L2 pushq 48(%rsp) .cfi_def_cfa_offset 168 leaq _Z14rgbToGrayscalePhS_ii(%rip), %rdi pushq 48(%rsp) .cfi_def_cfa_offset 176 movq 84(%rsp), %rcx movl 92(%rsp), %r8d movq 72(%rsp), %rsi movl 80(%rsp), %edx leaq 120(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 168 popq %rdx .cfi_def_cfa_offset 160 .L2: movq 136(%rsp), %rax subq %fs:40, %rax je .L4 call __stack_chk_fail@PLT .L4: addq $152, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3399: .size _Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii, .-_Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii .globl _Z14rgbToGrayscalePhS_ii .type _Z14rgbToGrayscalePhS_ii, @function _Z14rgbToGrayscalePhS_ii: .LFB3400: .cfi_startproc endbr64 jmp _Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii .cfi_endproc .LFE3400: .size _Z14rgbToGrayscalePhS_ii, .-_Z14rgbToGrayscalePhS_ii .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "Kernel launch failed: " .LC1: .string "Sample middle pixel:" .LC2: .string "Original RGB: (" .LC3: .string ", " .LC4: .string ")" .LC5: .string "Grayscale: " .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB3374: .cfi_startproc endbr64 pushq %r14 .cfi_def_cfa_offset 16 .cfi_offset 14, -16 movl $6220800, %edi pushq %r13 .cfi_def_cfa_offset 24 .cfi_offset 13, -24 pushq %r12 .cfi_def_cfa_offset 32 .cfi_offset 12, -32 pushq %rbp .cfi_def_cfa_offset 40 .cfi_offset 6, -40 subq $56, %rsp .cfi_def_cfa_offset 96 movq %fs:40, %rax movq %rax, 40(%rsp) xorl %eax, %eax call malloc@PLT movl $2073600, %edi movq %rax, %rbp call malloc@PLT movq %rbp, %rsi xorl %ecx, %ecx movq %rax, %r12 .L9: movq %rsi, %rdx xorl %eax, %eax .L10: movb %al, (%rdx) leal (%rcx,%rax), %edi incl %eax addq $3, %rdx movb %cl, -2(%rdx) movb %dil, -1(%rdx) cmpl $1920, %eax jne .L10 incl %ecx addq $5760, %rsi cmpl $1080, %ecx jne .L9 movq %rsp, %rdi movl $6220800, %esi call cudaMalloc@PLT leaq 8(%rsp), %rdi movl $2073600, %esi call cudaMalloc@PLT movq (%rsp), %rdi movl $1, %ecx movq %rbp, %rsi movl $6220800, %edx call cudaMemcpy@PLT xorl %r9d, %r9d xorl %r8d, %r8d movl $1, %ecx movabsq $68719476752, %rdx movl $1, %esi movabsq $292057776248, %rdi call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L12 movq 8(%rsp), %rsi movq (%rsp), %rdi movl $1080, %ecx movl $1920, %edx call _Z38__device_stub__Z14rgbToGrayscalePhS_iiPhS_ii .L12: call cudaGetLastError@PLT movl %eax, %r13d testl %eax, %eax je .L13 leaq .LC0(%rip), %rsi leaq _ZSt4cerr(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl %r13d, %edi movq %rax, %rbp call cudaGetErrorString@PLT movq %rbp, %rdi movq %rax, %rsi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT orl $-1, %eax jmp .L8 .L13: movq 8(%rsp), %rsi movl $2, %ecx movl $2073600, %edx movq %r12, %rdi leaq _ZSt4cout(%rip), %r13 leaq .LC3(%rip), %r14 call cudaMemcpy@PLT leaq .LC1(%rip), %rsi movq %r13, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT leaq .LC2(%rip), %rsi movq %r13, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movzbl 3113280(%rbp), %esi movq %rax, %rdi call _ZNSolsEi@PLT movq %r14, %rsi movq %rax, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movzbl 3113281(%rbp), %esi movq %rax, %rdi call _ZNSolsEi@PLT movq %r14, %rsi movq %rax, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movzbl 3113282(%rbp), %esi movq %rax, %rdi call _ZNSolsEi@PLT leaq .LC4(%rip), %rsi movq %rax, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT leaq .LC5(%rip), %rsi movq %r13, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movzbl 1037760(%r12), %esi movq %rax, %rdi call _ZNSolsEi@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT movq (%rsp), %rdi call cudaFree@PLT movq 8(%rsp), %rdi call cudaFree@PLT movq %rbp, %rdi call free@PLT movq %r12, %rdi call free@PLT xorl %eax, %eax .L8: movq 40(%rsp), %rdx subq %fs:40, %rdx je .L15 call __stack_chk_fail@PLT .L15: addq $56, %rsp .cfi_def_cfa_offset 40 popq %rbp .cfi_def_cfa_offset 32 popq %r12 .cfi_def_cfa_offset 24 popq %r13 .cfi_def_cfa_offset 16 popq %r14 .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3374: .size main, .-main .section .rodata.str1.1 .LC6: .string "_Z14rgbToGrayscalePhS_ii" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB3402: .cfi_startproc endbr64 pushq %rax .cfi_def_cfa_offset 16 leaq _ZL15__fatDeviceText(%rip), %rdi call __cudaRegisterFatBinary@PLT pushq $0 .cfi_def_cfa_offset 24 xorl %r9d, %r9d orl $-1, %r8d pushq $0 .cfi_def_cfa_offset 32 leaq .LC6(%rip), %rdx movq %rax, %rdi leaq _Z14rgbToGrayscalePhS_ii(%rip), %rsi pushq $0 .cfi_def_cfa_offset 40 movq %rdx, %rcx pushq $0 .cfi_def_cfa_offset 48 movq %rax, _ZL20__cudaFatCubinHandle(%rip) call __cudaRegisterFunction@PLT movq _ZL20__cudaFatCubinHandle(%rip), %rdi addq $32, %rsp .cfi_def_cfa_offset 16 call __cudaRegisterFatBinaryEnd@PLT leaq _ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi popq %rdx .cfi_def_cfa_offset 8 jmp atexit@PLT .cfi_endproc .LFE3402: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .section .text.startup .type _GLOBAL__sub_I_main, @function _GLOBAL__sub_I_main: .LFB4008: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 leaq _ZStL8__ioinit(%rip), %rbp movq %rbp, %rdi call _ZNSt8ios_base4InitC1Ev@PLT movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rdi movq %rbp, %rsi popq %rbp .cfi_def_cfa_offset 8 leaq __dso_handle(%rip), %rdx jmp __cxa_atexit@PLT .cfi_endproc .LFE4008: .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main .section .init_array .align 8 .quad _GLOBAL__sub_I_main .section .nvFatBinSegment,"aw" .align 8 .type _ZL15__fatDeviceText, @object .size _ZL15__fatDeviceText, 24 _ZL15__fatDeviceText: .long 1180844977 .long 1 .quad fatbinData .quad 0 .local _ZL20__cudaFatCubinHandle .comm _ZL20__cudaFatCubinHandle,8,8 .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .hidden __dso_handle .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14rgbToGrayscalePhS_ii .globl _Z14rgbToGrayscalePhS_ii .p2align 8 .type _Z14rgbToGrayscalePhS_ii,@function _Z14rgbToGrayscalePhS_ii: s_load_b32 s0, s[0:1], 0x4 s_load_b64 s[4:5], s[2:3], 0x10 v_and_b32_e32 v2, 0x3ff, v0 v_bfe_u32 v3, v0, 10, 10 s_waitcnt lgkmcnt(0) s_lshr_b32 s1, s0, 16 s_and_b32 s0, s0, 0xffff s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1) v_mad_u64_u32 v[0:1], null, s14, s0, v[2:3] v_mad_u64_u32 v[1:2], null, s15, s1, v[3:4] s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2) v_cmp_gt_i32_e32 vcc_lo, s4, v0 v_cmp_gt_i32_e64 s0, s5, v1 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1) s_and_b32 s0, vcc_lo, s0 s_and_saveexec_b32 s1, s0 s_cbranch_execz .LBB0_2 s_load_b128 s[0:3], s[2:3], 0x0 v_mad_u64_u32 v[2:3], null, v1, s4, v[0:1] s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_mul_lo_u32 v0, v2, 3 v_ashrrev_i32_e32 v1, 31, v0 s_waitcnt lgkmcnt(0) v_add_co_u32 v0, vcc_lo, s0, v0 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo s_clause 0x1 global_load_u16 v3, v[0:1], off global_load_u8 v0, v[0:1], off offset:2 s_waitcnt vmcnt(1) v_cvt_f32_ubyte1_e32 v1, v3 v_cvt_f32_ubyte0_e32 v3, v3 s_waitcnt vmcnt(0) v_cvt_f32_ubyte0_e32 v0, v0 s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1) v_mul_f32_e32 v1, 0x3f1645a2, v1 v_fmac_f32_e32 v1, 0x3e991687, v3 v_ashrrev_i32_e32 v3, 31, v2 s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2) v_fmac_f32_e32 v1, 0x3de978d5, v0 v_add_co_u32 v0, vcc_lo, s2, v2 v_cvt_i32_f32_e32 v4, v1 s_delay_alu instid0(VALU_DEP_4) v_add_co_ci_u32_e32 v1, vcc_lo, s3, v3, vcc_lo global_store_b8 v[0:1], v4, off .LBB0_2: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,#alloc .p2align 6, 0x0 .amdhsa_kernel _Z14rgbToGrayscalePhS_ii .amdhsa_group_segment_fixed_size 0 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 24 .amdhsa_user_sgpr_count 14 .amdhsa_user_sgpr_dispatch_ptr 1 .amdhsa_user_sgpr_queue_ptr 0 .amdhsa_user_sgpr_kernarg_segment_ptr 1 .amdhsa_user_sgpr_dispatch_id 0 .amdhsa_user_sgpr_private_segment_size 0 .amdhsa_wavefront_size32 1 .amdhsa_enable_private_segment 0 .amdhsa_system_sgpr_workgroup_id_x 1 .amdhsa_system_sgpr_workgroup_id_y 1 .amdhsa_system_sgpr_workgroup_id_z 0 .amdhsa_system_sgpr_workgroup_info 0 .amdhsa_system_vgpr_workitem_id 1 .amdhsa_next_free_vgpr 5 .amdhsa_next_free_sgpr 16 .amdhsa_float_round_mode_32 0 .amdhsa_float_round_mode_16_64 0 .amdhsa_float_denorm_mode_32 3 .amdhsa_float_denorm_mode_16_64 3 .amdhsa_dx10_clamp 1 .amdhsa_ieee_mode 1 .amdhsa_fp16_overflow 0 .amdhsa_workgroup_processor_mode 1 .amdhsa_memory_ordered 1 .amdhsa_forward_progress 0 .amdhsa_shared_vgpr_count 0 .amdhsa_exception_fp_ieee_invalid_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end0: .size _Z14rgbToGrayscalePhS_ii, .Lfunc_end0-_Z14rgbToGrayscalePhS_ii .section .AMDGPU.csdata .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .ident "Ubuntu clang version 17.0.6 (5build1)" .section ".note.GNU-stack" .addrsig .amdgpu_metadata --- amdhsa.kernels: - .args: - .address_space: global .offset: 0 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 8 .size: 8 .value_kind: global_buffer - .offset: 16 .size: 4 .value_kind: by_value - .offset: 20 .size: 4 .value_kind: by_value .group_segment_fixed_size: 0 .kernarg_segment_align: 8 .kernarg_segment_size: 24 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z14rgbToGrayscalePhS_ii .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z14rgbToGrayscalePhS_ii.kd .vgpr_count: 5 .vgpr_spill_count: 0 .wavefront_size: 32 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 1 ... .end_amdgpu_metadata
.text .file "2.cpp" .globl _ZSt21ios_base_library_initv .globl _Z29__device_stub__rgbToGrayscalePhS_ii .p2align 4, 0x90 .type _Z29__device_stub__rgbToGrayscalePhS_ii,@function _Z29__device_stub__rgbToGrayscalePhS_ii: .cfi_startproc subq $120, %rsp .cfi_def_cfa_offset 128 movq %rdi, 72(%rsp) movq %rsi, 64(%rsp) movl %edx, 12(%rsp) movl %ecx, 8(%rsp) leaq 72(%rsp), %rax movq %rax, 80(%rsp) leaq 64(%rsp), %rax movq %rax, 88(%rsp) leaq 12(%rsp), %rax movq %rax, 96(%rsp) leaq 8(%rsp), %rax movq %rax, 104(%rsp) leaq 48(%rsp), %rdi leaq 32(%rsp), %rsi leaq 24(%rsp), %rdx leaq 16(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 48(%rsp), %rsi movl 56(%rsp), %edx movq 32(%rsp), %rcx movl 40(%rsp), %r8d movq _Z14rgbToGrayscalePhS_ii@GOTPCREL(%rip), %rdi leaq 80(%rsp), %r9 pushq 16(%rsp) .cfi_adjust_cfa_offset 8 pushq 32(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $136, %rsp .cfi_adjust_cfa_offset -136 retq .Lfunc_end0: .size _Z29__device_stub__rgbToGrayscalePhS_ii, .Lfunc_end0-_Z29__device_stub__rgbToGrayscalePhS_ii .cfi_endproc .globl main .p2align 4, 0x90 .type main,@function main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r12 .cfi_def_cfa_offset 40 pushq %rbx .cfi_def_cfa_offset 48 subq $128, %rsp .cfi_def_cfa_offset 176 .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movl $6220800, %edi callq malloc@PLT movq %rax, %rbx movl $2073600, %edi callq malloc@PLT movq %rax, %r14 movq %rbx, %rax addq $5, %rax xorl %ecx, %ecx .p2align 4, 0x90 .LBB1_1: movq %rax, %rdx xorl %esi, %esi .p2align 4, 0x90 .LBB1_2: movb %sil, -5(%rdx) movb %cl, -4(%rdx) leal (%rcx,%rsi), %edi movb %dil, -3(%rdx) leal 1(%rsi), %r8d movb %r8b, -2(%rdx) movb %cl, -1(%rdx) incb %dil movb %dil, (%rdx) addq $2, %rsi addq $6, %rdx cmpq $1920, %rsi jne .LBB1_2 incq %rcx addq $5760, %rax cmpq $1080, %rcx jne .LBB1_1 leaq 16(%rsp), %rdi movl $6220800, %esi callq hipMalloc@PLT leaq 8(%rsp), %rdi movl $2073600, %esi callq hipMalloc@PLT movq 16(%rsp), %rdi movl $6220800, %edx movq %rbx, %rsi movl $1, %ecx callq hipMemcpy@PLT movabsq $292057776248, %rdi movabsq $68719476752, %rdx movl $1, %esi movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_5 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_15 .LBB1_7: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str(%rip), %rsi movl $22, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_8 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_10 .LBB1_5: movq 16(%rsp), %rax movq 8(%rsp), %rcx movq %rax, 88(%rsp) movq %rcx, 80(%rsp) movl $1920, 28(%rsp) movl $1080, 24(%rsp) leaq 88(%rsp), %rax movq %rax, 96(%rsp) leaq 80(%rsp), %rax movq %rax, 104(%rsp) leaq 28(%rsp), %rax movq %rax, 112(%rsp) leaq 24(%rsp), %rax movq %rax, 120(%rsp) leaq 64(%rsp), %rdi leaq 48(%rsp), %rsi leaq 40(%rsp), %rdx leaq 32(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 64(%rsp), %rsi movl 72(%rsp), %edx movq 48(%rsp), %rcx movl 56(%rsp), %r8d movq _Z14rgbToGrayscalePhS_ii@GOTPCREL(%rip), %rdi leaq 96(%rsp), %r9 pushq 32(%rsp) .cfi_adjust_cfa_offset 8 pushq 48(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_7 .LBB1_15: movq 8(%rsp), %rsi movl $2073600, %edx movq %r14, %rdi movl $2, %ecx callq hipMemcpy@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.1(%rip), %rsi movl $20, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq (%r15), %rax movq -24(%rax), %rax movq 240(%r15,%rax), %r15 testq %r15, %r15 je .LBB1_29 cmpb $0, 56(%r15) je .LBB1_18 movzbl 67(%r15), %eax jmp .LBB1_19 .LBB1_8: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_10: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_29 cmpb $0, 56(%rbx) je .LBB1_13 movzbl 67(%rbx), %eax jmp .LBB1_14 .LBB1_13: movq %rbx, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbx), %rax movq %rbx, %rdi movl $10, %esi callq *48(%rax) .LBB1_14: movsbl %al, %esi movq _ZSt4cerr@GOTPCREL(%rip), %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $-1, %eax jmp .LBB1_28 .LBB1_18: movq %r15, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r15), %rax movq %r15, %rdi movl $10, %esi callq *48(%rax) .LBB1_19: movsbl %al, %esi movq _ZSt4cout@GOTPCREL(%rip), %r15 movq %r15, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT leaq .L.str.2(%rip), %rsi movl $15, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movzbl 3113280(%rbx), %esi movq %r15, %rdi callq _ZNSolsEi@PLT movq %rax, %r15 leaq .L.str.3(%rip), %r12 movl $2, %edx movq %rax, %rdi movq %r12, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movzbl 3113281(%rbx), %esi movq %r15, %rdi callq _ZNSolsEi@PLT movq %rax, %r15 movl $2, %edx movq %rax, %rdi movq %r12, %rsi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movzbl 3113282(%rbx), %esi movq %r15, %rdi callq _ZNSolsEi@PLT movq %rax, %r15 leaq .L.str.4(%rip), %rsi movl $1, %edx movq %rax, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq (%r15), %rax movq -24(%rax), %rax movq 240(%r15,%rax), %r12 testq %r12, %r12 je .LBB1_29 cmpb $0, 56(%r12) je .LBB1_22 movzbl 67(%r12), %eax jmp .LBB1_23 .LBB1_22: movq %r12, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r12), %rax movq %r12, %rdi movl $10, %esi callq *48(%rax) .LBB1_23: movsbl %al, %esi movq %r15, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.5(%rip), %rsi movl $11, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movzbl 1037760(%r14), %esi movq %r15, %rdi callq _ZNSolsEi@PLT movq %rax, %r15 movq (%rax), %rax movq -24(%rax), %rax movq 240(%r15,%rax), %r12 testq %r12, %r12 je .LBB1_29 cmpb $0, 56(%r12) je .LBB1_26 movzbl 67(%r12), %eax jmp .LBB1_27 .LBB1_26: movq %r12, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r12), %rax movq %r12, %rdi movl $10, %esi callq *48(%rax) .LBB1_27: movsbl %al, %esi movq %r15, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq 16(%rsp), %rdi callq hipFree@PLT movq 8(%rsp), %rdi callq hipFree@PLT movq %rbx, %rdi callq free@PLT movq %r14, %rdi callq free@PLT xorl %eax, %eax .LBB1_28: addq $128, %rsp .cfi_def_cfa_offset 48 popq %rbx .cfi_def_cfa_offset 40 popq %r12 .cfi_def_cfa_offset 32 popq %r14 .cfi_def_cfa_offset 24 popq %r15 .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 retq .LBB1_29: .cfi_def_cfa_offset 176 callq _ZSt16__throw_bad_castv@PLT .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc .p2align 4, 0x90 .type __hip_module_ctor,@function __hip_module_ctor: .cfi_startproc subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 leaq __hip_fatbin_wrapper(%rip), %rdi callq __hipRegisterFatBinary@PLT movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movq _Z14rgbToGrayscalePhS_ii@GOTPCREL(%rip), %rsi leaq .L__unnamed_1(%rip), %rcx movq %rcx, %rdx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction@PLT leaq __hip_module_dtor(%rip), %rdi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit@PLT .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc .p2align 4, 0x90 .type __hip_module_dtor,@function __hip_module_dtor: .cfi_startproc movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary@PLT movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB3_2: retq .Lfunc_end3: .size __hip_module_dtor, .Lfunc_end3-__hip_module_dtor .cfi_endproc .type _Z14rgbToGrayscalePhS_ii,@object .section .data.rel.ro,"aw",@progbits .globl _Z14rgbToGrayscalePhS_ii .p2align 3, 0x0 _Z14rgbToGrayscalePhS_ii: .quad _Z29__device_stub__rgbToGrayscalePhS_ii .size _Z14rgbToGrayscalePhS_ii, 8 .type .L.str,@object .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "Kernel launch failed: " .size .L.str, 23 .type .L.str.1,@object .L.str.1: .asciz "Sample middle pixel:" .size .L.str.1, 21 .type .L.str.2,@object .L.str.2: .asciz "Original RGB: (" .size .L.str.2, 16 .type .L.str.3,@object .L.str.3: .asciz ", " .size .L.str.3, 3 .type .L.str.4,@object .L.str.4: .asciz ")" .size .L.str.4, 2 .type .L.str.5,@object .L.str.5: .asciz "Grayscale: " .size .L.str.5, 12 .type .L__unnamed_1,@object .L__unnamed_1: .asciz "_Z14rgbToGrayscalePhS_ii" .size .L__unnamed_1, 25 .type __hip_fatbin_wrapper,@object .section .hipFatBinSegment,"aw",@progbits .p2align 3, 0x90 __hip_fatbin_wrapper: .long 1212764230 .long 1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .hidden __hip_gpubin_handle .type __hip_gpubin_handle,@object .section .bss.__hip_gpubin_handle,"aGw",@nobits,__hip_gpubin_handle,comdat .weak __hip_gpubin_handle .p2align 3, 0x0 __hip_gpubin_handle: .quad 0 .size __hip_gpubin_handle, 8 .section .init_array,"aw",@init_array .p2align 3, 0x90 .quad __hip_module_ctor .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z29__device_stub__rgbToGrayscalePhS_ii .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z14rgbToGrayscalePhS_ii .addrsig_sym _ZSt4cerr .addrsig_sym _ZSt4cout .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper
Sample middle pixel: Original RGB: (192, 28, 220) Grayscale: 98
3.cpp
code for sm_80 Function : _Z9vectorOpsPfS_S_S_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)" MOV R1, c[0x0][0x28] ; S2R R0, SR_CTAID.X ; S2R R3, SR_TID.X ; IMAD R0, R0, c[0x0][0x0], R3 ; ISETP.GE.AND P0, PT, R0, c[0x0][0x188], PT ; @P0 EXIT ; HFMA2.MMA R15, -RZ, RZ, 0, 2.384185791015625e-07 ; ULDC.64 UR4, c[0x0][0x118] ; IMAD.WIDE R4, R0, R15, c[0x0][0x168] ; IMAD.WIDE R2, R0.reuse, R15.reuse, c[0x0][0x160] ; LDG.E R8, [R4.64] ; LDG.E R9, [R2.64] ; IMAD.WIDE R6, R0, R15, c[0x0][0x170] ; FADD R11, -R8, R9 ; STG.E [R6.64], R11 ; LDG.E R10, [R4.64] ; LDG.E R13, [R2.64] ; IMAD.WIDE R8, R0, R15, c[0x0][0x178] ; FMUL R13, R10, R13 ; STG.E [R8.64], R13 ; LDG.E R10, [R2.64] ; BSSY B0, 0x230 ; FADD R14, |R10|, -RZ ; MUFU.RSQ R15, |R10| ; IADD3 R12, R14, -0xd000000, RZ ; ISETP.GT.U32.AND P0, PT, R12, 0x727fffff, PT ; @!P0 BRA 0x1e0 ; MOV R7, 0x1d0 ; CALL.REL.NOINC 0x270 ; BRA 0x220 ; FMUL.FTZ R5, |R10|, R15 ; FMUL.FTZ R15, R15, 0.5 ; FFMA R10, -R5, R5, |R10| ; FFMA R5, R10, R15, R5 ; BSYNC B0 ; HFMA2.MMA R3, -RZ, RZ, 0, 2.384185791015625e-07 ; IMAD.WIDE R2, R0, R3, c[0x0][0x180] ; STG.E [R2.64], R5 ; EXIT ; LOP3.LUT P0, RZ, R14, 0x7fffffff, RZ, 0xc0, !PT ; @!P0 MOV R2, R14 ; @!P0 BRA 0x3a0 ; FSETP.GEU.FTZ.AND P0, PT, R14, RZ, PT ; @!P0 MOV R2, 0x7fffffff ; @!P0 BRA 0x3a0 ; FSETP.GTU.FTZ.AND P0, PT, |R14|, +INF , PT ; @P0 FADD.FTZ R2, R14, 1 ; @P0 BRA 0x3a0 ; FSETP.NEU.FTZ.AND P0, PT, |R14|, +INF , PT ; @P0 FFMA R3, R14, 1.84467440737095516160e+19, RZ ; @P0 MUFU.RSQ R2, R3 ; @P0 FMUL.FTZ R4, R3, R2 ; @P0 FMUL.FTZ R6, R2, 0.5 ; @!P0 MOV R2, R14 ; @P0 FADD.FTZ R5, -R4, -RZ ; @P0 FFMA R5, R4, R5, R3 ; @P0 FFMA R5, R5, R6, R4 ; @P0 FMUL.FTZ R2, R5, 2.3283064365386962891e-10 ; HFMA2.MMA R3, -RZ, RZ, 0, 0 ; MOV R5, R2 ; MOV R2, R7 ; RET.REL.NODEC R2 0x0 ; BRA 0x3e0; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; ..........
.file "tmpxft_001f2ae0_00000000-6_3.cudafe1.cpp" .text .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3377: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3377: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .align 2 .type _ZNSolsEPFRSoS_E.isra.0, @function _ZNSolsEPFRSoS_E.isra.0: .LFB4012: .cfi_startproc jmp *%rsi .cfi_endproc .LFE4012: .size _ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0 .globl _Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i .type _Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i, @function _Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i: .LFB3399: .cfi_startproc endbr64 subq $184, %rsp .cfi_def_cfa_offset 192 movq %rdi, 40(%rsp) leaq 72(%rsp), %rdi movq %rsi, 32(%rsp) leaq 84(%rsp), %rsi movq %rdx, 24(%rsp) leaq 56(%rsp), %rdx movq %rcx, 16(%rsp) leaq 64(%rsp), %rcx movq %r8, 8(%rsp) movl %r9d, 4(%rsp) movq %fs:40, %rax movq %rax, 168(%rsp) xorl %eax, %eax leaq 40(%rsp), %rax movl $1, 80(%rsp) movq %rax, 120(%rsp) leaq 32(%rsp), %rax movq %rax, 128(%rsp) leaq 24(%rsp), %rax movq %rax, 136(%rsp) leaq 16(%rsp), %rax movq %rax, 144(%rsp) leaq 8(%rsp), %rax movq %rax, 152(%rsp) leaq 4(%rsp), %rax movq %rax, 160(%rsp) movabsq $4294967297, %rax movq %rax, 72(%rsp) movq %rax, 84(%rsp) movl $1, 92(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L3 pushq 64(%rsp) .cfi_def_cfa_offset 200 leaq _Z9vectorOpsPfS_S_S_S_i(%rip), %rdi pushq 64(%rsp) .cfi_def_cfa_offset 208 movq 100(%rsp), %rcx movl 108(%rsp), %r8d movq 88(%rsp), %rsi movl 96(%rsp), %edx leaq 136(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 200 popq %rdx .cfi_def_cfa_offset 192 .L3: movq 168(%rsp), %rax subq %fs:40, %rax je .L5 call __stack_chk_fail@PLT .L5: addq $184, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3399: .size _Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i, .-_Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i .globl _Z9vectorOpsPfS_S_S_S_i .type _Z9vectorOpsPfS_S_S_S_i, @function _Z9vectorOpsPfS_S_S_S_i: .LFB3400: .cfi_startproc endbr64 jmp _Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i .cfi_endproc .LFE3400: .size _Z9vectorOpsPfS_S_S_S_i, .-_Z9vectorOpsPfS_S_S_S_i .section .rodata.str1.1,"aMS",@progbits,1 .LC2: .string "Kernel launch failed: " .LC3: .string "Sample results for index 100:" .LC4: .string "Subtraction: " .LC5: .string "Multiplication: " .LC6: .string "Square root: " .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB3374: .cfi_startproc endbr64 pushq %r15 .cfi_def_cfa_offset 16 .cfi_offset 15, -16 movl $4000000, %edi pushq %r14 .cfi_def_cfa_offset 24 .cfi_offset 14, -24 pushq %r13 .cfi_def_cfa_offset 32 .cfi_offset 13, -32 pushq %r12 .cfi_def_cfa_offset 40 .cfi_offset 12, -40 pushq %rbp .cfi_def_cfa_offset 48 .cfi_offset 6, -48 pushq %rbx .cfi_def_cfa_offset 56 .cfi_offset 3, -56 subq $104, %rsp .cfi_def_cfa_offset 160 movq %fs:40, %rax movq %rax, 88(%rsp) xorl %eax, %eax call malloc@PLT movl $4000000, %edi movq %rax, %r14 call malloc@PLT movl $4000000, %edi movq %rax, %r13 call malloc@PLT movl $4000000, %edi movq %rax, %r12 call malloc@PLT movl $4000000, %edi movq %rax, %rbp call malloc@PLT movss .LC0(%rip), %xmm3 movss .LC1(%rip), %xmm1 movq %rax, 8(%rsp) xorl %eax, %eax .L10: cvtsi2ssl %eax, %xmm0 movaps %xmm0, %xmm2 mulss %xmm3, %xmm2 mulss %xmm1, %xmm0 movss %xmm2, (%r14,%rax,4) movss %xmm0, 0(%r13,%rax,4) incq %rax cmpq $1000000, %rax jne .L10 leaq 24(%rsp), %rdi movl $4000000, %esi call cudaMalloc@PLT leaq 32(%rsp), %rdi movl $4000000, %esi call cudaMalloc@PLT leaq 40(%rsp), %rdi movl $4000000, %esi call cudaMalloc@PLT leaq 48(%rsp), %rdi movl $4000000, %esi call cudaMalloc@PLT leaq 56(%rsp), %rdi movl $4000000, %esi call cudaMalloc@PLT movq 24(%rsp), %rdi movl $1, %ecx movq %r14, %rsi movl $4000000, %edx call cudaMemcpy@PLT movq 32(%rsp), %rdi movl $1, %ecx movq %r13, %rsi movl $4000000, %edx call cudaMemcpy@PLT movl $16777217, %edx xorl %r9d, %r9d xorl %r8d, %r8d salq $8, %rdx movl $1, %ecx movl $1, %esi movabsq $4294971203, %rdi call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L11 movq 56(%rsp), %r8 movq 48(%rsp), %rcx movl $1000000, %r9d movq 40(%rsp), %rdx movq 32(%rsp), %rsi movq 24(%rsp), %rdi call _Z37__device_stub__Z9vectorOpsPfS_S_S_S_iPfS_S_S_S_i .L11: call cudaGetLastError@PLT movq _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %r15 testl %eax, %eax movl %eax, %ebx je .L12 leaq .LC2(%rip), %rsi leaq _ZSt4cerr(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl %ebx, %edi movq %rax, %rbp call cudaGetErrorString@PLT movq %rbp, %rdi movq %rax, %rsi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %r15, %rsi movq %rax, %rdi call _ZNSolsEPFRSoS_E.isra.0 orl $-1, %eax jmp .L9 .L12: movq 40(%rsp), %rsi movl $2, %ecx movl $4000000, %edx movq %r12, %rdi leaq _ZSt4cout(%rip), %rbx call cudaMemcpy@PLT movq 48(%rsp), %rsi movl $2, %ecx movq %rbp, %rdi movl $4000000, %edx call cudaMemcpy@PLT movq 56(%rsp), %rsi movq 8(%rsp), %rdi movl $2, %ecx movl $4000000, %edx call cudaMemcpy@PLT leaq .LC3(%rip), %rsi movq %rbx, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %r15, %rsi movq %rax, %rdi call _ZNSolsEPFRSoS_E.isra.0 leaq .LC4(%rip), %rsi movq %rbx, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT cvtss2sd 400(%r12), %xmm0 movq %rax, %rdi call _ZNSo9_M_insertIdEERSoT_@PLT movq %r15, %rsi movq %rax, %rdi call _ZNSolsEPFRSoS_E.isra.0 leaq .LC5(%rip), %rsi movq %rbx, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT cvtss2sd 400(%rbp), %xmm0 movq %rax, %rdi call _ZNSo9_M_insertIdEERSoT_@PLT movq %r15, %rsi movq %rax, %rdi call _ZNSolsEPFRSoS_E.isra.0 leaq .LC6(%rip), %rsi movq %rbx, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi movq 8(%rsp), %rax cvtss2sd 400(%rax), %xmm0 call _ZNSo9_M_insertIdEERSoT_@PLT movq %r15, %rsi movq %rax, %rdi call _ZNSolsEPFRSoS_E.isra.0 movq 24(%rsp), %rdi call cudaFree@PLT movq 32(%rsp), %rdi call cudaFree@PLT movq 40(%rsp), %rdi call cudaFree@PLT movq 48(%rsp), %rdi call cudaFree@PLT movq 56(%rsp), %rdi call cudaFree@PLT movq %r14, %rdi call free@PLT movq %r13, %rdi call free@PLT movq %r12, %rdi call free@PLT movq %rbp, %rdi call free@PLT movq 8(%rsp), %rdi call free@PLT xorl %eax, %eax .L9: movq 88(%rsp), %rdx subq %fs:40, %rdx je .L14 call __stack_chk_fail@PLT .L14: addq $104, %rsp .cfi_def_cfa_offset 56 popq %rbx .cfi_def_cfa_offset 48 popq %rbp .cfi_def_cfa_offset 40 popq %r12 .cfi_def_cfa_offset 32 popq %r13 .cfi_def_cfa_offset 24 popq %r14 .cfi_def_cfa_offset 16 popq %r15 .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3374: .size main, .-main .section .rodata.str1.1 .LC7: .string "_Z9vectorOpsPfS_S_S_S_i" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB3402: .cfi_startproc endbr64 pushq %rax .cfi_def_cfa_offset 16 leaq _ZL15__fatDeviceText(%rip), %rdi call __cudaRegisterFatBinary@PLT pushq $0 .cfi_def_cfa_offset 24 xorl %r9d, %r9d orl $-1, %r8d pushq $0 .cfi_def_cfa_offset 32 leaq .LC7(%rip), %rdx movq %rax, %rdi leaq _Z9vectorOpsPfS_S_S_S_i(%rip), %rsi pushq $0 .cfi_def_cfa_offset 40 movq %rdx, %rcx pushq $0 .cfi_def_cfa_offset 48 movq %rax, _ZL20__cudaFatCubinHandle(%rip) call __cudaRegisterFunction@PLT movq _ZL20__cudaFatCubinHandle(%rip), %rdi addq $32, %rsp .cfi_def_cfa_offset 16 call __cudaRegisterFatBinaryEnd@PLT leaq _ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi popq %rdx .cfi_def_cfa_offset 8 jmp atexit@PLT .cfi_endproc .LFE3402: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .section .text.startup .type _GLOBAL__sub_I_main, @function _GLOBAL__sub_I_main: .LFB4009: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 leaq _ZStL8__ioinit(%rip), %rbp movq %rbp, %rdi call _ZNSt8ios_base4InitC1Ev@PLT movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rdi movq %rbp, %rsi popq %rbp .cfi_def_cfa_offset 8 leaq __dso_handle(%rip), %rdx jmp __cxa_atexit@PLT .cfi_endproc .LFE4009: .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main .section .init_array .align 8 .quad _GLOBAL__sub_I_main .section .nvFatBinSegment,"aw" .align 8 .type _ZL15__fatDeviceText, @object .size _ZL15__fatDeviceText, 24 _ZL15__fatDeviceText: .long 1180844977 .long 1 .quad fatbinData .quad 0 .local _ZL20__cudaFatCubinHandle .comm _ZL20__cudaFatCubinHandle,8,8 .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC0: .long 1008981770 .align 4 .LC1: .long 1000593162 .hidden __dso_handle .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9vectorOpsPfS_S_S_S_i .globl _Z9vectorOpsPfS_S_S_S_i .p2align 8 .type _Z9vectorOpsPfS_S_S_S_i,@function _Z9vectorOpsPfS_S_S_S_i: s_load_b32 s0, s[0:1], 0x4 s_load_b32 s1, s[2:3], 0x28 s_waitcnt lgkmcnt(0) s_and_b32 s0, s0, 0xffff s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1) v_mad_u64_u32 v[1:2], null, s15, s0, v[0:1] s_mov_b32 s0, exec_lo v_cmpx_gt_i32_e64 s1, v1 s_cbranch_execz .LBB0_2 s_load_b256 s[4:11], s[2:3], 0x0 v_ashrrev_i32_e32 v2, 31, v1 s_load_b64 s[0:1], s[2:3], 0x20 s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1) v_lshlrev_b64 v[0:1], 2, v[1:2] s_waitcnt lgkmcnt(0) v_add_co_u32 v2, vcc_lo, s4, v0 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo v_add_co_u32 v4, vcc_lo, s6, v0 v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo v_add_co_u32 v6, vcc_lo, s8, v0 global_load_b32 v8, v[2:3], off global_load_b32 v9, v[4:5], off v_add_co_ci_u32_e32 v7, vcc_lo, s9, v1, vcc_lo s_waitcnt vmcnt(0) v_sub_f32_e32 v8, v8, v9 global_store_b32 v[6:7], v8, off global_load_b32 v6, v[2:3], off global_load_b32 v7, v[4:5], off v_add_co_u32 v4, vcc_lo, s10, v0 v_add_co_ci_u32_e32 v5, vcc_lo, s11, v1, vcc_lo s_waitcnt vmcnt(0) v_mul_f32_e32 v6, v6, v7 global_store_b32 v[4:5], v6, off global_load_b32 v2, v[2:3], off s_waitcnt vmcnt(0) v_cmp_gt_f32_e64 s4, 0xf800000, |v2| s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_cndmask_b32_e64 v3, 1.0, 0x4f800000, s4 v_mul_f32_e64 v2, |v2|, v3 s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2) v_sqrt_f32_e32 v3, v2 s_waitcnt_depctr 0xfff v_add_nc_u32_e32 v5, 1, v3 v_add_nc_u32_e32 v4, -1, v3 v_fma_f32 v7, -v5, v3, v2 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1) v_fma_f32 v6, -v4, v3, v2 v_cmp_ge_f32_e32 vcc_lo, 0, v6 v_cndmask_b32_e32 v3, v3, v4, vcc_lo s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_3) v_cmp_lt_f32_e32 vcc_lo, 0, v7 v_cndmask_b32_e64 v4, 1.0, 0x37800000, s4 v_cndmask_b32_e32 v3, v3, v5, vcc_lo v_cmp_class_f32_e64 vcc_lo, v2, 0x260 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1) v_mul_f32_e32 v3, v4, v3 v_cndmask_b32_e32 v2, v3, v2, vcc_lo v_add_co_u32 v0, vcc_lo, s0, v0 v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo global_store_b32 v[0:1], v2, off .LBB0_2: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,#alloc .p2align 6, 0x0 .amdhsa_kernel _Z9vectorOpsPfS_S_S_S_i .amdhsa_group_segment_fixed_size 0 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 44 .amdhsa_user_sgpr_count 15 .amdhsa_user_sgpr_dispatch_ptr 1 .amdhsa_user_sgpr_queue_ptr 0 .amdhsa_user_sgpr_kernarg_segment_ptr 1 .amdhsa_user_sgpr_dispatch_id 0 .amdhsa_user_sgpr_private_segment_size 0 .amdhsa_wavefront_size32 1 .amdhsa_enable_private_segment 0 .amdhsa_system_sgpr_workgroup_id_x 1 .amdhsa_system_sgpr_workgroup_id_y 0 .amdhsa_system_sgpr_workgroup_id_z 0 .amdhsa_system_sgpr_workgroup_info 0 .amdhsa_system_vgpr_workitem_id 0 .amdhsa_next_free_vgpr 10 .amdhsa_next_free_sgpr 16 .amdhsa_float_round_mode_32 0 .amdhsa_float_round_mode_16_64 0 .amdhsa_float_denorm_mode_32 3 .amdhsa_float_denorm_mode_16_64 3 .amdhsa_dx10_clamp 1 .amdhsa_ieee_mode 1 .amdhsa_fp16_overflow 0 .amdhsa_workgroup_processor_mode 1 .amdhsa_memory_ordered 1 .amdhsa_forward_progress 0 .amdhsa_shared_vgpr_count 0 .amdhsa_exception_fp_ieee_invalid_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end0: .size _Z9vectorOpsPfS_S_S_S_i, .Lfunc_end0-_Z9vectorOpsPfS_S_S_S_i .section .AMDGPU.csdata .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .ident "Ubuntu clang version 17.0.6 (5build1)" .section ".note.GNU-stack" .addrsig .amdgpu_metadata --- amdhsa.kernels: - .args: - .address_space: global .offset: 0 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 8 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 16 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 24 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 32 .size: 8 .value_kind: global_buffer - .offset: 40 .size: 4 .value_kind: by_value .group_segment_fixed_size: 0 .kernarg_segment_align: 8 .kernarg_segment_size: 44 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z9vectorOpsPfS_S_S_S_i .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z9vectorOpsPfS_S_S_S_i.kd .vgpr_count: 10 .vgpr_spill_count: 0 .wavefront_size: 32 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 1 ... .end_amdgpu_metadata
.text .file "3.cpp" .globl _ZSt21ios_base_library_initv .globl _Z24__device_stub__vectorOpsPfS_S_S_S_i .p2align 4, 0x90 .type _Z24__device_stub__vectorOpsPfS_S_S_S_i,@function _Z24__device_stub__vectorOpsPfS_S_S_S_i: .cfi_startproc subq $152, %rsp .cfi_def_cfa_offset 160 movq %rdi, 88(%rsp) movq %rsi, 80(%rsp) movq %rdx, 72(%rsp) movq %rcx, 64(%rsp) movq %r8, 56(%rsp) movl %r9d, 4(%rsp) leaq 88(%rsp), %rax movq %rax, 96(%rsp) leaq 80(%rsp), %rax movq %rax, 104(%rsp) leaq 72(%rsp), %rax movq %rax, 112(%rsp) leaq 64(%rsp), %rax movq %rax, 120(%rsp) leaq 56(%rsp), %rax movq %rax, 128(%rsp) leaq 4(%rsp), %rax movq %rax, 136(%rsp) leaq 40(%rsp), %rdi leaq 24(%rsp), %rsi leaq 16(%rsp), %rdx leaq 8(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 40(%rsp), %rsi movl 48(%rsp), %edx movq 24(%rsp), %rcx movl 32(%rsp), %r8d movq _Z9vectorOpsPfS_S_S_S_i@GOTPCREL(%rip), %rdi leaq 96(%rsp), %r9 pushq 8(%rsp) .cfi_adjust_cfa_offset 8 pushq 24(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $168, %rsp .cfi_adjust_cfa_offset -168 retq .Lfunc_end0: .size _Z24__device_stub__vectorOpsPfS_S_S_S_i, .Lfunc_end0-_Z24__device_stub__vectorOpsPfS_S_S_S_i .cfi_endproc .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI1_0: .long 0 .long 1 .long 2 .long 3 .LCPI1_1: .long 4 .long 4 .long 4 .long 4 .LCPI1_2: .long 0x3c23d70a .long 0x3c23d70a .long 0x3c23d70a .long 0x3c23d70a .LCPI1_3: .long 0x3ba3d70a .long 0x3ba3d70a .long 0x3ba3d70a .long 0x3ba3d70a .LCPI1_4: .long 8 .long 8 .long 8 .long 8 .text .globl main .p2align 4, 0x90 .type main,@function main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r13 .cfi_def_cfa_offset 40 pushq %r12 .cfi_def_cfa_offset 48 pushq %rbx .cfi_def_cfa_offset 56 subq $200, %rsp .cfi_def_cfa_offset 256 .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movl $4000000, %edi callq malloc@PLT movq %rax, %rbx movl $4000000, %edi callq malloc@PLT movq %rax, %r14 movl $4000000, %edi callq malloc@PLT movq %rax, %r15 movl $4000000, %edi callq malloc@PLT movq %rax, %r12 movl $4000000, %edi callq malloc@PLT movq %rax, %r13 movdqa .LCPI1_0(%rip), %xmm0 movl $4, %eax movdqa .LCPI1_1(%rip), %xmm1 movaps .LCPI1_2(%rip), %xmm2 movaps .LCPI1_3(%rip), %xmm3 movdqa .LCPI1_4(%rip), %xmm4 .p2align 4, 0x90 .LBB1_1: movdqa %xmm0, %xmm5 paddd %xmm1, %xmm5 cvtdq2ps %xmm0, %xmm6 cvtdq2ps %xmm5, %xmm5 movaps %xmm6, %xmm7 mulps %xmm2, %xmm7 movaps %xmm5, %xmm8 mulps %xmm2, %xmm8 movups %xmm7, -16(%rbx,%rax,4) movups %xmm8, (%rbx,%rax,4) mulps %xmm3, %xmm6 mulps %xmm3, %xmm5 movups %xmm6, -16(%r14,%rax,4) movups %xmm5, (%r14,%rax,4) paddd %xmm4, %xmm0 addq $8, %rax cmpq $1000004, %rax jne .LBB1_1 leaq 32(%rsp), %rdi movl $4000000, %esi callq hipMalloc@PLT leaq 24(%rsp), %rdi movl $4000000, %esi callq hipMalloc@PLT leaq 16(%rsp), %rdi movl $4000000, %esi callq hipMalloc@PLT leaq 8(%rsp), %rdi movl $4000000, %esi callq hipMalloc@PLT movq %rsp, %rdi movl $4000000, %esi callq hipMalloc@PLT movq 32(%rsp), %rdi movl $4000000, %edx movq %rbx, %rsi movl $1, %ecx callq hipMemcpy@PLT movq 24(%rsp), %rdi movl $4000000, %edx movq %r14, %rsi movl $1, %ecx callq hipMemcpy@PLT movabsq $4294967552, %rdx leaq 3651(%rdx), %rdi movl $1, %esi movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_3 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_13 .LBB1_5: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str(%rip), %rsi movl $22, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_6 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_8 .LBB1_3: movq 32(%rsp), %rax movq 24(%rsp), %rcx movq 16(%rsp), %rdx movq 8(%rsp), %rsi movq (%rsp), %rdi movq %rax, 136(%rsp) movq %rcx, 128(%rsp) movq %rdx, 120(%rsp) movq %rsi, 112(%rsp) movq %rdi, 104(%rsp) movl $1000000, 44(%rsp) leaq 136(%rsp), %rax movq %rax, 144(%rsp) leaq 128(%rsp), %rax movq %rax, 152(%rsp) leaq 120(%rsp), %rax movq %rax, 160(%rsp) leaq 112(%rsp), %rax movq %rax, 168(%rsp) leaq 104(%rsp), %rax movq %rax, 176(%rsp) leaq 44(%rsp), %rax movq %rax, 184(%rsp) leaq 88(%rsp), %rdi leaq 72(%rsp), %rsi leaq 64(%rsp), %rdx leaq 56(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 88(%rsp), %rsi movl 96(%rsp), %edx movq 72(%rsp), %rcx movl 80(%rsp), %r8d movq _Z9vectorOpsPfS_S_S_S_i@GOTPCREL(%rip), %rdi leaq 144(%rsp), %r9 pushq 56(%rsp) .cfi_adjust_cfa_offset 8 pushq 72(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_5 .LBB1_13: movq 16(%rsp), %rsi movl $4000000, %edx movq %r15, 48(%rsp) movq %r15, %rdi movl $2, %ecx callq hipMemcpy@PLT movq 8(%rsp), %rsi movl $4000000, %edx movq %r12, %rdi movl $2, %ecx callq hipMemcpy@PLT movq (%rsp), %rsi movl $4000000, %edx movq %r13, %rdi movl $2, %ecx callq hipMemcpy@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.1(%rip), %rsi movl $29, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq (%r15), %rax movq -24(%rax), %rax movq 240(%r15,%rax), %r15 testq %r15, %r15 je .LBB1_31 cmpb $0, 56(%r15) je .LBB1_16 movzbl 67(%r15), %eax jmp .LBB1_17 .LBB1_6: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_8: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_31 cmpb $0, 56(%rbx) je .LBB1_11 movzbl 67(%rbx), %eax jmp .LBB1_12 .LBB1_11: movq %rbx, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbx), %rax movq %rbx, %rdi movl $10, %esi callq *48(%rax) .LBB1_12: movsbl %al, %esi movq _ZSt4cerr@GOTPCREL(%rip), %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $-1, %eax jmp .LBB1_30 .LBB1_16: movq %r15, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r15), %rax movq %r15, %rdi movl $10, %esi callq *48(%rax) .LBB1_17: movsbl %al, %esi movq _ZSt4cout@GOTPCREL(%rip), %r15 movq %r15, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT leaq .L.str.2(%rip), %rsi movl $13, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq 48(%rsp), %rax movss 400(%rax), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r15, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movq %rax, %rbp movq (%rax), %rax movq -24(%rax), %rax movq 240(%rbp,%rax), %r15 testq %r15, %r15 je .LBB1_31 cmpb $0, 56(%r15) je .LBB1_20 movzbl 67(%r15), %eax jmp .LBB1_21 .LBB1_20: movq %r15, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r15), %rax movq %r15, %rdi movl $10, %esi callq *48(%rax) .LBB1_21: movsbl %al, %esi movq %rbp, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.3(%rip), %rsi movl $16, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss 400(%r12), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r15, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movq %rax, %rbp movq (%rax), %rax movq -24(%rax), %rax movq 240(%rbp,%rax), %r15 testq %r15, %r15 je .LBB1_31 cmpb $0, 56(%r15) je .LBB1_24 movzbl 67(%r15), %eax jmp .LBB1_25 .LBB1_24: movq %r15, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r15), %rax movq %r15, %rdi movl $10, %esi callq *48(%rax) .LBB1_25: movsbl %al, %esi movq %rbp, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.4(%rip), %rsi movl $13, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss 400(%r13), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r15, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movq %rax, %rbp movq (%rax), %rax movq -24(%rax), %rax movq 240(%rbp,%rax), %r15 testq %r15, %r15 je .LBB1_31 cmpb $0, 56(%r15) je .LBB1_28 movzbl 67(%r15), %eax jmp .LBB1_29 .LBB1_28: movq %r15, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r15), %rax movq %r15, %rdi movl $10, %esi callq *48(%rax) .LBB1_29: movsbl %al, %esi movq %rbp, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq 32(%rsp), %rdi callq hipFree@PLT movq 24(%rsp), %rdi callq hipFree@PLT movq 16(%rsp), %rdi callq hipFree@PLT movq 8(%rsp), %rdi callq hipFree@PLT movq (%rsp), %rdi callq hipFree@PLT movq %rbx, %rdi callq free@PLT movq %r14, %rdi callq free@PLT movq 48(%rsp), %rdi callq free@PLT movq %r12, %rdi callq free@PLT movq %r13, %rdi callq free@PLT xorl %eax, %eax .LBB1_30: addq $200, %rsp .cfi_def_cfa_offset 56 popq %rbx .cfi_def_cfa_offset 48 popq %r12 .cfi_def_cfa_offset 40 popq %r13 .cfi_def_cfa_offset 32 popq %r14 .cfi_def_cfa_offset 24 popq %r15 .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 retq .LBB1_31: .cfi_def_cfa_offset 256 callq _ZSt16__throw_bad_castv@PLT .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc .p2align 4, 0x90 .type __hip_module_ctor,@function __hip_module_ctor: .cfi_startproc subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 leaq __hip_fatbin_wrapper(%rip), %rdi callq __hipRegisterFatBinary@PLT movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movq _Z9vectorOpsPfS_S_S_S_i@GOTPCREL(%rip), %rsi leaq .L__unnamed_1(%rip), %rcx movq %rcx, %rdx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction@PLT leaq __hip_module_dtor(%rip), %rdi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit@PLT .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc .p2align 4, 0x90 .type __hip_module_dtor,@function __hip_module_dtor: .cfi_startproc movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary@PLT movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB3_2: retq .Lfunc_end3: .size __hip_module_dtor, .Lfunc_end3-__hip_module_dtor .cfi_endproc .type _Z9vectorOpsPfS_S_S_S_i,@object .section .data.rel.ro,"aw",@progbits .globl _Z9vectorOpsPfS_S_S_S_i .p2align 3, 0x0 _Z9vectorOpsPfS_S_S_S_i: .quad _Z24__device_stub__vectorOpsPfS_S_S_S_i .size _Z9vectorOpsPfS_S_S_S_i, 8 .type .L.str,@object .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "Kernel launch failed: " .size .L.str, 23 .type .L.str.1,@object .L.str.1: .asciz "Sample results for index 100:" .size .L.str.1, 30 .type .L.str.2,@object .L.str.2: .asciz "Subtraction: " .size .L.str.2, 14 .type .L.str.3,@object .L.str.3: .asciz "Multiplication: " .size .L.str.3, 17 .type .L.str.4,@object .L.str.4: .asciz "Square root: " .size .L.str.4, 14 .type .L__unnamed_1,@object .L__unnamed_1: .asciz "_Z9vectorOpsPfS_S_S_S_i" .size .L__unnamed_1, 24 .type __hip_fatbin_wrapper,@object .section .hipFatBinSegment,"aw",@progbits .p2align 3, 0x90 __hip_fatbin_wrapper: .long 1212764230 .long 1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .hidden __hip_gpubin_handle .type __hip_gpubin_handle,@object .section .bss.__hip_gpubin_handle,"aGw",@nobits,__hip_gpubin_handle,comdat .weak __hip_gpubin_handle .p2align 3, 0x0 __hip_gpubin_handle: .quad 0 .size __hip_gpubin_handle, 8 .section .init_array,"aw",@init_array .p2align 3, 0x90 .quad __hip_module_ctor .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z24__device_stub__vectorOpsPfS_S_S_S_i .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z9vectorOpsPfS_S_S_S_i .addrsig_sym _ZSt4cerr .addrsig_sym _ZSt4cout .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper
Sample results for index 100: Subtraction: 0.5 Multiplication: 0.5 Square root: 1
4.cpp
code for sm_80 Function : _Z9matrixMulPiS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)" MOV R1, c[0x0][0x28] ; S2R R0, SR_CTAID.X ; S2R R5, SR_TID.X ; S2R R3, SR_CTAID.Y ; S2R R2, SR_TID.Y ; IMAD R0, R0, c[0x0][0x0], R5 ; ISETP.GE.AND P0, PT, R0, c[0x0][0x178], PT ; IMAD R3, R3, c[0x0][0x4], R2 ; ISETP.GE.OR P0, PT, R3, c[0x0][0x178], P0 ; @P0 EXIT ; MOV R2, c[0x0][0x178] ; ULDC.64 UR4, c[0x0][0x118] ; HFMA2.MMA R24, -RZ, RZ, 0, 0 ; IMAD R3, R3, c[0x0][0x178], RZ ; ISETP.GE.AND P0, PT, R2, 0x1, PT ; @!P0 BRA 0xbb0 ; IADD3 R4, R2.reuse, -0x1, RZ ; LOP3.LUT R5, R2, 0x3, RZ, 0xc0, !PT ; ISETP.GE.U32.AND P0, PT, R4, 0x3, PT ; MOV R4, RZ ; MOV R24, RZ ; @!P0 BRA 0xab0 ; HFMA2.MMA R26, -RZ, RZ, 0, 2.384185791015625e-07 ; IADD3 R6, -R5, c[0x0][0x178], RZ ; ISETP.GT.AND P0, PT, R6, RZ, PT ; IMAD.WIDE R8, R3, R26, c[0x0][0x160] ; IMAD.WIDE R26, R0, R26, c[0x0][0x168] ; IADD3 R12, P1, R8, 0x8, RZ ; IADD3.X R13, RZ, R9, RZ, P1, !PT ; @!P0 BRA 0x930 ; ISETP.GT.AND P1, PT, R6, 0xc, PT ; PLOP3.LUT P0, PT, PT, PT, PT, 0x80, 0x0 ; @!P1 BRA 0x680 ; PLOP3.LUT P0, PT, PT, PT, PT, 0x8, 0x0 ; LDG.E R8, [R26.64] ; LDG.E R21, [R12.64+-0x8] ; IMAD.WIDE R10, R2, 0x4, R26 ; LDG.E R17, [R12.64+-0x4] ; IMAD.WIDE R14, R2.reuse, 0x4, R10 ; LDG.E R16, [R10.64] ; LDG.E R26, [R12.64+0x8] ; IMAD.WIDE R18, R2, 0x4, R14 ; LDG.E R15, [R14.64] ; IMAD.WIDE R28, R2.reuse, 0x4, R18 ; LDG.E R11, [R12.64+0xc] ; LDG.E R18, [R18.64] ; LDG.E R14, [R12.64] ; LDG.E R7, [R28.64] ; LDG.E R19, [R12.64+0x4] ; LDG.E R20, [R12.64+0x10] ; IMAD.WIDE R28, R2, 0x4, R28 ; LDG.E R10, [R28.64] ; IMAD.WIDE R22, R2, 0x4, R28 ; LDG.E R9, [R22.64] ; IMAD.WIDE R22, R2, 0x4, R22 ; IMAD R27, R8, R21, R24 ; LDG.E R8, [R12.64+0x14] ; LDG.E R21, [R22.64] ; IMAD.WIDE R24, R2, 0x4, R22 ; IMAD R29, R16, R17, R27 ; LDG.E R28, [R24.64] ; IMAD.WIDE R16, R2, 0x4, R24 ; LDG.E R27, [R12.64+0x18] ; LDG.E R24, [R12.64+0x20] ; IMAD R29, R15, R14, R29 ; IMAD.WIDE R14, R2, 0x4, R16 ; LDG.E R16, [R16.64] ; IMAD R22, R18, R19, R29 ; IMAD.WIDE R18, R2.reuse, 0x4, R14 ; LDG.E R29, [R12.64+0x1c] ; IMAD R26, R7, R26, R22 ; LDG.E R17, [R14.64] ; IMAD.WIDE R22, R2, 0x4, R18 ; LDG.E R7, [R18.64] ; LDG.E R25, [R22.64] ; IMAD R14, R10, R11, R26 ; IMAD.WIDE R10, R2.reuse, 0x4, R22 ; LDG.E R26, [R12.64+0x24] ; IMAD R9, R9, R20, R14 ; LDG.E R18, [R12.64+0x28] ; IMAD.WIDE R14, R2, 0x4, R10 ; LDG.E R20, [R10.64] ; LDG.E R19, [R12.64+0x2c] ; LDG.E R22, [R12.64+0x34] ; LDG.E R10, [R12.64+0x30] ; IMAD R11, R21, R8, R9 ; IMAD.WIDE R8, R2, 0x4, R14 ; LDG.E R21, [R14.64] ; LDG.E R23, [R8.64] ; IMAD R27, R28, R27, R11 ; IADD3 R6, R6, -0x10, RZ ; ISETP.GT.AND P1, PT, R6, 0xc, PT ; IMAD R16, R16, R29, R27 ; IMAD R16, R17, R24, R16 ; IADD3 R12, P2, R12, 0x40, RZ ; IMAD R7, R7, R26, R16 ; IMAD R7, R25, R18, R7 ; IMAD R7, R20, R19, R7 ; IADD3.X R13, RZ, R13, RZ, P2, !PT ; IMAD.WIDE R26, R2, 0x4, R8 ; IADD3 R4, R4, 0x10, RZ ; IMAD R7, R21, R10, R7 ; IMAD R24, R23, R22, R7 ; @P1 BRA 0x220 ; ISETP.GT.AND P1, PT, R6, 0x4, PT ; @!P1 BRA 0x910 ; LDG.E R22, [R26.64] ; LDG.E R7, [R12.64+-0x8] ; IMAD.WIDE R28, R2, 0x4, R26 ; LDG.E R21, [R12.64+-0x4] ; IMAD.WIDE R10, R2.reuse, 0x4, R28 ; LDG.E R20, [R28.64] ; LDG.E R23, [R10.64] ; IMAD.WIDE R14, R2, 0x4, R10 ; LDG.E R26, [R12.64] ; IMAD.WIDE R8, R2.reuse, 0x4, R14 ; LDG.E R25, [R12.64+0x4] ; LDG.E R14, [R14.64] ; IMAD.WIDE R16, R2, 0x4, R8 ; LDG.E R8, [R8.64] ; IMAD.WIDE R18, R2.reuse, 0x4, R16 ; LDG.E R27, [R12.64+0x8] ; LDG.E R16, [R16.64] ; IMAD.WIDE R10, R2, 0x4, R18 ; LDG.E R29, [R12.64+0xc] ; LDG.E R28, [R18.64] ; LDG.E R9, [R12.64+0x10] ; IMAD R22, R22, R7, R24 ; LDG.E R7, [R12.64+0x14] ; LDG.E R24, [R10.64] ; IMAD R20, R20, R21, R22 ; IMAD R20, R23, R26, R20 ; IMAD R14, R14, R25, R20 ; IMAD R8, R8, R27, R14 ; IADD3 R14, P1, R12, 0x20, RZ ; IMAD R8, R16, R29, R8 ; IADD3.X R15, RZ, R13, RZ, P1, !PT ; IMAD.WIDE R26, R2, 0x4, R10 ; PLOP3.LUT P0, PT, PT, PT, PT, 0x8, 0x0 ; IMAD R8, R28, R9, R8 ; IADD3 R4, R4, 0x8, RZ ; IADD3 R6, R6, -0x8, RZ ; MOV R12, R14 ; MOV R13, R15 ; IMAD R24, R24, R7, R8 ; ISETP.NE.OR P0, PT, R6, RZ, P0 ; @!P0 BRA 0xab0 ; IMAD.WIDE R14, R2.reuse, 0x4, R26 ; LDG.E R7, [R12.64+-0x8] ; LDG.E R27, [R26.64] ; IMAD.WIDE R10, R2, 0x4, R14 ; LDG.E R16, [R14.64] ; LDG.E R17, [R12.64+-0x4] ; IMAD.WIDE R8, R2, 0x4, R10 ; LDG.E R19, [R12.64] ; LDG.E R18, [R10.64] ; LDG.E R21, [R12.64+0x4] ; LDG.E R20, [R8.64] ; IADD3 R6, R6, -0x4, RZ ; ISETP.NE.AND P0, PT, R6, RZ, PT ; IADD3 R14, P1, R12, 0x10, RZ ; IADD3.X R15, RZ, R13, RZ, P1, !PT ; IADD3 R4, R4, 0x4, RZ ; MOV R12, R14 ; MOV R13, R15 ; IMAD R7, R27, R7, R24 ; IMAD R7, R16, R17, R7 ; IMAD.WIDE R26, R2, 0x4, R8 ; IMAD R7, R18, R19, R7 ; IMAD R24, R20, R21, R7 ; @P0 BRA 0x930 ; ISETP.NE.AND P0, PT, R5, RZ, PT ; @!P0 BRA 0xbb0 ; HFMA2.MMA R9, -RZ, RZ, 0, 2.384185791015625e-07 ; IADD3 R6, R3, R4, RZ ; IMAD R4, R4, c[0x0][0x178], R0 ; IMAD.WIDE R6, R6, R9, c[0x0][0x160] ; IMAD.WIDE R8, R4, R9, c[0x0][0x168] ; LDG.E R11, [R8.64] ; LDG.E R4, [R6.64] ; IADD3 R5, R5, -0x1, RZ ; ISETP.NE.AND P0, PT, R5, RZ, PT ; IMAD.WIDE R8, R2, 0x4, R8 ; IADD3 R6, P1, R6, 0x4, RZ ; IADD3.X R7, RZ, R7, RZ, P1, !PT ; IMAD R24, R11, R4, R24 ; @P0 BRA 0xb20 ; IADD3 R3, R0, R3, RZ ; MOV R2, 0x4 ; IMAD.WIDE R2, R3, R2, c[0x0][0x170] ; STG.E [R2.64], R24 ; EXIT ; BRA 0xc00; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; ..........
.file "tmpxft_001f2b10_00000000-6_4.cudafe1.cpp" .text .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3377: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3377: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .globl _Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i .type _Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i, @function _Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i: .LFB3399: .cfi_startproc endbr64 subq $152, %rsp .cfi_def_cfa_offset 160 movq %rdi, 24(%rsp) leaq 56(%rsp), %rdi movq %rsi, 16(%rsp) leaq 68(%rsp), %rsi movq %rdx, 8(%rsp) leaq 40(%rsp), %rdx movl %ecx, 4(%rsp) leaq 48(%rsp), %rcx movq %fs:40, %rax movq %rax, 136(%rsp) xorl %eax, %eax leaq 24(%rsp), %rax movl $1, 64(%rsp) movq %rax, 104(%rsp) leaq 16(%rsp), %rax movq %rax, 112(%rsp) leaq 8(%rsp), %rax movq %rax, 120(%rsp) leaq 4(%rsp), %rax movq %rax, 128(%rsp) movabsq $4294967297, %rax movq %rax, 56(%rsp) movq %rax, 68(%rsp) movl $1, 76(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L2 pushq 48(%rsp) .cfi_def_cfa_offset 168 leaq _Z9matrixMulPiS_S_i(%rip), %rdi pushq 48(%rsp) .cfi_def_cfa_offset 176 movq 84(%rsp), %rcx movl 92(%rsp), %r8d movq 72(%rsp), %rsi movl 80(%rsp), %edx leaq 120(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 168 popq %rdx .cfi_def_cfa_offset 160 .L2: movq 136(%rsp), %rax subq %fs:40, %rax je .L4 call __stack_chk_fail@PLT .L4: addq $152, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3399: .size _Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i, .-_Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i .globl _Z9matrixMulPiS_S_i .type _Z9matrixMulPiS_S_i, @function _Z9matrixMulPiS_S_i: .LFB3400: .cfi_startproc endbr64 jmp _Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i .cfi_endproc .LFE3400: .size _Z9matrixMulPiS_S_i, .-_Z9matrixMulPiS_S_i .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "Kernel launch failed: " .LC1: .string "Result sample: C[0][0] = " .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB3374: .cfi_startproc endbr64 pushq %r14 .cfi_def_cfa_offset 16 .cfi_offset 14, -16 movl $1048576, %edi pushq %r13 .cfi_def_cfa_offset 24 .cfi_offset 13, -24 pushq %r12 .cfi_def_cfa_offset 32 .cfi_offset 12, -32 pushq %rbp .cfi_def_cfa_offset 40 .cfi_offset 6, -40 subq $72, %rsp .cfi_def_cfa_offset 112 movq %fs:40, %rax movq %rax, 56(%rsp) xorl %eax, %eax call malloc@PLT movl $1048576, %edi movq %rax, %r13 call malloc@PLT movl $1048576, %edi movq %rax, %r12 call malloc@PLT movq %rax, %rbp xorl %eax, %eax .L9: movl $1, 0(%r13,%rax) movl $2, (%r12,%rax) addq $4, %rax cmpq $1048576, %rax jne .L9 leaq 8(%rsp), %rdi movl $1048576, %esi call cudaMalloc@PLT leaq 16(%rsp), %rdi movl $1048576, %esi call cudaMalloc@PLT leaq 24(%rsp), %rdi movl $1048576, %esi call cudaMalloc@PLT movq 8(%rsp), %rdi movl $1, %ecx movq %r13, %rsi movl $1048576, %edx call cudaMemcpy@PLT movq 16(%rsp), %rdi movl $1, %ecx movq %r12, %rsi movl $1048576, %edx call cudaMemcpy@PLT xorl %r9d, %r9d xorl %r8d, %r8d movl $1, %ecx movabsq $68719476752, %rdx movl $1, %esi movabsq $137438953504, %rdi call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L10 movq 24(%rsp), %rdx movq 16(%rsp), %rsi movl $512, %ecx movq 8(%rsp), %rdi call _Z33__device_stub__Z9matrixMulPiS_S_iPiS_S_i .L10: call cudaGetLastError@PLT movl %eax, %r14d testl %eax, %eax je .L11 leaq .LC0(%rip), %rsi leaq _ZSt4cerr(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl %r14d, %edi movq %rax, %rbp call cudaGetErrorString@PLT movq %rbp, %rdi movq %rax, %rsi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT orl $-1, %eax jmp .L8 .L11: movq 24(%rsp), %rsi movl $2, %ecx movl $1048576, %edx movq %rbp, %rdi call cudaMemcpy@PLT leaq .LC1(%rip), %rsi leaq _ZSt4cout(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl 0(%rbp), %esi movq %rax, %rdi call _ZNSolsEi@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT movq 8(%rsp), %rdi call cudaFree@PLT movq 16(%rsp), %rdi call cudaFree@PLT movq 24(%rsp), %rdi call cudaFree@PLT movq %r13, %rdi call free@PLT movq %r12, %rdi call free@PLT movq %rbp, %rdi call free@PLT xorl %eax, %eax .L8: movq 56(%rsp), %rdx subq %fs:40, %rdx je .L13 call __stack_chk_fail@PLT .L13: addq $72, %rsp .cfi_def_cfa_offset 40 popq %rbp .cfi_def_cfa_offset 32 popq %r12 .cfi_def_cfa_offset 24 popq %r13 .cfi_def_cfa_offset 16 popq %r14 .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3374: .size main, .-main .section .rodata.str1.1 .LC2: .string "_Z9matrixMulPiS_S_i" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB3402: .cfi_startproc endbr64 pushq %rax .cfi_def_cfa_offset 16 leaq _ZL15__fatDeviceText(%rip), %rdi call __cudaRegisterFatBinary@PLT pushq $0 .cfi_def_cfa_offset 24 xorl %r9d, %r9d orl $-1, %r8d pushq $0 .cfi_def_cfa_offset 32 leaq .LC2(%rip), %rdx movq %rax, %rdi leaq _Z9matrixMulPiS_S_i(%rip), %rsi pushq $0 .cfi_def_cfa_offset 40 movq %rdx, %rcx pushq $0 .cfi_def_cfa_offset 48 movq %rax, _ZL20__cudaFatCubinHandle(%rip) call __cudaRegisterFunction@PLT movq _ZL20__cudaFatCubinHandle(%rip), %rdi addq $32, %rsp .cfi_def_cfa_offset 16 call __cudaRegisterFatBinaryEnd@PLT leaq _ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi popq %rdx .cfi_def_cfa_offset 8 jmp atexit@PLT .cfi_endproc .LFE3402: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .section .text.startup .type _GLOBAL__sub_I_main, @function _GLOBAL__sub_I_main: .LFB4008: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 leaq _ZStL8__ioinit(%rip), %rbp movq %rbp, %rdi call _ZNSt8ios_base4InitC1Ev@PLT movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rdi movq %rbp, %rsi popq %rbp .cfi_def_cfa_offset 8 leaq __dso_handle(%rip), %rdx jmp __cxa_atexit@PLT .cfi_endproc .LFE4008: .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main .section .init_array .align 8 .quad _GLOBAL__sub_I_main .section .nvFatBinSegment,"aw" .align 8 .type _ZL15__fatDeviceText, @object .size _ZL15__fatDeviceText, 24 _ZL15__fatDeviceText: .long 1180844977 .long 1 .quad fatbinData .quad 0 .local _ZL20__cudaFatCubinHandle .comm _ZL20__cudaFatCubinHandle,8,8 .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .hidden __dso_handle .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9matrixMulPiS_S_i .globl _Z9matrixMulPiS_S_i .p2align 8 .type _Z9matrixMulPiS_S_i,@function _Z9matrixMulPiS_S_i: s_load_b32 s0, s[0:1], 0x4 s_load_b32 s8, s[2:3], 0x18 v_bfe_u32 v1, v0, 10, 10 v_and_b32_e32 v4, 0x3ff, v0 s_waitcnt lgkmcnt(0) s_lshr_b32 s1, s0, 16 s_and_b32 s0, s0, 0xffff v_mad_u64_u32 v[2:3], null, s15, s1, v[1:2] v_mad_u64_u32 v[0:1], null, s14, s0, v[4:5] s_mov_b32 s0, exec_lo s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_max_i32_e32 v1, v2, v0 v_cmpx_gt_i32_e64 s8, v1 s_cbranch_execz .LBB0_6 s_clause 0x1 s_load_b128 s[4:7], s[2:3], 0x0 s_load_b64 s[0:1], s[2:3], 0x10 v_mul_lo_u32 v1, v2, s8 s_cmp_lt_i32 s8, 1 s_cbranch_scc1 .LBB0_4 s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2) v_ashrrev_i32_e32 v2, 31, v1 s_mov_b32 s2, s8 v_mov_b32_e32 v5, v0 v_lshlrev_b64 v[3:4], 2, v[1:2] v_mov_b32_e32 v2, 0 s_waitcnt lgkmcnt(0) s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3) v_add_co_u32 v3, vcc_lo, s4, v3 v_add_co_ci_u32_e32 v4, vcc_lo, s5, v4, vcc_lo .p2align 6 .LBB0_3: s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(SALU_CYCLE_1) v_ashrrev_i32_e32 v6, 31, v5 s_add_i32 s2, s2, -1 s_cmp_eq_u32 s2, 0 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_lshlrev_b64 v[6:7], 2, v[5:6] v_add_co_u32 v6, vcc_lo, s6, v6 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v7, vcc_lo, s7, v7, vcc_lo global_load_b32 v8, v[3:4], off global_load_b32 v9, v[6:7], off s_waitcnt vmcnt(0) v_mad_u64_u32 v[6:7], null, v9, v8, v[2:3] v_add_co_u32 v3, vcc_lo, v3, 4 v_add_co_ci_u32_e32 v4, vcc_lo, 0, v4, vcc_lo s_delay_alu instid0(VALU_DEP_3) v_dual_mov_b32 v2, v6 :: v_dual_add_nc_u32 v5, s8, v5 s_cbranch_scc0 .LBB0_3 s_branch .LBB0_5 .LBB0_4: v_mov_b32_e32 v2, 0 .LBB0_5: s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1) v_add_nc_u32_e32 v0, v1, v0 v_ashrrev_i32_e32 v1, 31, v0 s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1) v_lshlrev_b64 v[0:1], 2, v[0:1] s_waitcnt lgkmcnt(0) v_add_co_u32 v0, vcc_lo, s0, v0 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo global_store_b32 v[0:1], v2, off .LBB0_6: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,#alloc .p2align 6, 0x0 .amdhsa_kernel _Z9matrixMulPiS_S_i .amdhsa_group_segment_fixed_size 0 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 28 .amdhsa_user_sgpr_count 14 .amdhsa_user_sgpr_dispatch_ptr 1 .amdhsa_user_sgpr_queue_ptr 0 .amdhsa_user_sgpr_kernarg_segment_ptr 1 .amdhsa_user_sgpr_dispatch_id 0 .amdhsa_user_sgpr_private_segment_size 0 .amdhsa_wavefront_size32 1 .amdhsa_enable_private_segment 0 .amdhsa_system_sgpr_workgroup_id_x 1 .amdhsa_system_sgpr_workgroup_id_y 1 .amdhsa_system_sgpr_workgroup_id_z 0 .amdhsa_system_sgpr_workgroup_info 0 .amdhsa_system_vgpr_workitem_id 1 .amdhsa_next_free_vgpr 10 .amdhsa_next_free_sgpr 16 .amdhsa_float_round_mode_32 0 .amdhsa_float_round_mode_16_64 0 .amdhsa_float_denorm_mode_32 3 .amdhsa_float_denorm_mode_16_64 3 .amdhsa_dx10_clamp 1 .amdhsa_ieee_mode 1 .amdhsa_fp16_overflow 0 .amdhsa_workgroup_processor_mode 1 .amdhsa_memory_ordered 1 .amdhsa_forward_progress 0 .amdhsa_shared_vgpr_count 0 .amdhsa_exception_fp_ieee_invalid_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end0: .size _Z9matrixMulPiS_S_i, .Lfunc_end0-_Z9matrixMulPiS_S_i .section .AMDGPU.csdata .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .ident "Ubuntu clang version 17.0.6 (5build1)" .section ".note.GNU-stack" .addrsig .amdgpu_metadata --- amdhsa.kernels: - .args: - .address_space: global .offset: 0 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 8 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 16 .size: 8 .value_kind: global_buffer - .offset: 24 .size: 4 .value_kind: by_value .group_segment_fixed_size: 0 .kernarg_segment_align: 8 .kernarg_segment_size: 28 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z9matrixMulPiS_S_i .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z9matrixMulPiS_S_i.kd .vgpr_count: 10 .vgpr_spill_count: 0 .wavefront_size: 32 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 1 ... .end_amdgpu_metadata
.text .file "4.cpp" .globl _ZSt21ios_base_library_initv .globl _Z24__device_stub__matrixMulPiS_S_i .p2align 4, 0x90 .type _Z24__device_stub__matrixMulPiS_S_i,@function _Z24__device_stub__matrixMulPiS_S_i: .cfi_startproc subq $120, %rsp .cfi_def_cfa_offset 128 movq %rdi, 72(%rsp) movq %rsi, 64(%rsp) movq %rdx, 56(%rsp) movl %ecx, 4(%rsp) leaq 72(%rsp), %rax movq %rax, 80(%rsp) leaq 64(%rsp), %rax movq %rax, 88(%rsp) leaq 56(%rsp), %rax movq %rax, 96(%rsp) leaq 4(%rsp), %rax movq %rax, 104(%rsp) leaq 40(%rsp), %rdi leaq 24(%rsp), %rsi leaq 16(%rsp), %rdx leaq 8(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 40(%rsp), %rsi movl 48(%rsp), %edx movq 24(%rsp), %rcx movl 32(%rsp), %r8d movq _Z9matrixMulPiS_S_i@GOTPCREL(%rip), %rdi leaq 80(%rsp), %r9 pushq 8(%rsp) .cfi_adjust_cfa_offset 8 pushq 24(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $136, %rsp .cfi_adjust_cfa_offset -136 retq .Lfunc_end0: .size _Z24__device_stub__matrixMulPiS_S_i, .Lfunc_end0-_Z24__device_stub__matrixMulPiS_S_i .cfi_endproc .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI1_0: .long 1 .long 1 .long 1 .long 1 .LCPI1_1: .long 2 .long 2 .long 2 .long 2 .text .globl main .p2align 4, 0x90 .type main,@function main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r13 .cfi_def_cfa_offset 40 pushq %r12 .cfi_def_cfa_offset 48 pushq %rbx .cfi_def_cfa_offset 56 subq $152, %rsp .cfi_def_cfa_offset 208 .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movl $1048576, %edi callq malloc@PLT movq %rax, %rbx movl $1048576, %edi callq malloc@PLT movq %rax, %r14 movl $1048576, %edi callq malloc@PLT movq %rax, %r15 movl $12, %eax movaps .LCPI1_0(%rip), %xmm0 movaps .LCPI1_1(%rip), %xmm1 .p2align 4, 0x90 .LBB1_1: movups %xmm0, -48(%rbx,%rax,4) movups %xmm0, -32(%rbx,%rax,4) movups %xmm1, -48(%r14,%rax,4) movups %xmm1, -32(%r14,%rax,4) movups %xmm0, -16(%rbx,%rax,4) movups %xmm0, (%rbx,%rax,4) movups %xmm1, -16(%r14,%rax,4) movups %xmm1, (%r14,%rax,4) addq $16, %rax cmpq $262156, %rax jne .LBB1_1 leaq 24(%rsp), %rdi movl $1048576, %esi callq hipMalloc@PLT leaq 16(%rsp), %rdi movl $1048576, %esi callq hipMalloc@PLT leaq 8(%rsp), %rdi movl $1048576, %esi callq hipMalloc@PLT movq 24(%rsp), %rdi movl $1048576, %edx movq %rbx, %rsi movl $1, %ecx callq hipMemcpy@PLT movq 16(%rsp), %rdi movl $1048576, %edx movq %r14, %rsi movl $1, %ecx callq hipMemcpy@PLT movabsq $137438953504, %rdi movabsq $68719476752, %rdx movl $1, %esi movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_3 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_13 .LBB1_5: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str(%rip), %rsi movl $22, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_6 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_8 .LBB1_3: movq 24(%rsp), %rax movq 16(%rsp), %rcx movq 8(%rsp), %rdx movq %rax, 104(%rsp) movq %rcx, 96(%rsp) movq %rdx, 88(%rsp) movl $512, 36(%rsp) leaq 104(%rsp), %rax movq %rax, 112(%rsp) leaq 96(%rsp), %rax movq %rax, 120(%rsp) leaq 88(%rsp), %rax movq %rax, 128(%rsp) leaq 36(%rsp), %rax movq %rax, 136(%rsp) leaq 72(%rsp), %rdi leaq 56(%rsp), %rsi leaq 48(%rsp), %rdx leaq 40(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 72(%rsp), %rsi movl 80(%rsp), %edx movq 56(%rsp), %rcx movl 64(%rsp), %r8d movq _Z9matrixMulPiS_S_i@GOTPCREL(%rip), %rdi leaq 112(%rsp), %r9 pushq 40(%rsp) .cfi_adjust_cfa_offset 8 pushq 56(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_5 .LBB1_13: movq 8(%rsp), %rsi movl $1048576, %edx movq %r15, %rdi movl $2, %ecx callq hipMemcpy@PLT movq _ZSt4cout@GOTPCREL(%rip), %r12 leaq .L.str.1(%rip), %rsi movl $25, %edx movq %r12, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl (%r15), %esi movq %r12, %rdi callq _ZNSolsEi@PLT movq %rax, %r12 movq (%rax), %rax movq -24(%rax), %rax movq 240(%r12,%rax), %r13 testq %r13, %r13 je .LBB1_19 cmpb $0, 56(%r13) je .LBB1_16 movzbl 67(%r13), %eax jmp .LBB1_17 .LBB1_6: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_8: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_19 cmpb $0, 56(%rbx) je .LBB1_11 movzbl 67(%rbx), %eax jmp .LBB1_12 .LBB1_11: movq %rbx, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbx), %rax movq %rbx, %rdi movl $10, %esi callq *48(%rax) .LBB1_12: movsbl %al, %esi movq _ZSt4cerr@GOTPCREL(%rip), %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $-1, %eax jmp .LBB1_18 .LBB1_16: movq %r13, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r13), %rax movq %r13, %rdi movl $10, %esi callq *48(%rax) .LBB1_17: movsbl %al, %esi movq %r12, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq 24(%rsp), %rdi callq hipFree@PLT movq 16(%rsp), %rdi callq hipFree@PLT movq 8(%rsp), %rdi callq hipFree@PLT movq %rbx, %rdi callq free@PLT movq %r14, %rdi callq free@PLT movq %r15, %rdi callq free@PLT xorl %eax, %eax .LBB1_18: addq $152, %rsp .cfi_def_cfa_offset 56 popq %rbx .cfi_def_cfa_offset 48 popq %r12 .cfi_def_cfa_offset 40 popq %r13 .cfi_def_cfa_offset 32 popq %r14 .cfi_def_cfa_offset 24 popq %r15 .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 retq .LBB1_19: .cfi_def_cfa_offset 208 callq _ZSt16__throw_bad_castv@PLT .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc .p2align 4, 0x90 .type __hip_module_ctor,@function __hip_module_ctor: .cfi_startproc subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 leaq __hip_fatbin_wrapper(%rip), %rdi callq __hipRegisterFatBinary@PLT movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movq _Z9matrixMulPiS_S_i@GOTPCREL(%rip), %rsi leaq .L__unnamed_1(%rip), %rcx movq %rcx, %rdx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction@PLT leaq __hip_module_dtor(%rip), %rdi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit@PLT .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc .p2align 4, 0x90 .type __hip_module_dtor,@function __hip_module_dtor: .cfi_startproc movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary@PLT movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB3_2: retq .Lfunc_end3: .size __hip_module_dtor, .Lfunc_end3-__hip_module_dtor .cfi_endproc .type _Z9matrixMulPiS_S_i,@object .section .data.rel.ro,"aw",@progbits .globl _Z9matrixMulPiS_S_i .p2align 3, 0x0 _Z9matrixMulPiS_S_i: .quad _Z24__device_stub__matrixMulPiS_S_i .size _Z9matrixMulPiS_S_i, 8 .type .L.str,@object .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "Kernel launch failed: " .size .L.str, 23 .type .L.str.1,@object .L.str.1: .asciz "Result sample: C[0][0] = " .size .L.str.1, 26 .type .L__unnamed_1,@object .L__unnamed_1: .asciz "_Z9matrixMulPiS_S_i" .size .L__unnamed_1, 20 .type __hip_fatbin_wrapper,@object .section .hipFatBinSegment,"aw",@progbits .p2align 3, 0x90 __hip_fatbin_wrapper: .long 1212764230 .long 1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .hidden __hip_gpubin_handle .type __hip_gpubin_handle,@object .section .bss.__hip_gpubin_handle,"aGw",@nobits,__hip_gpubin_handle,comdat .weak __hip_gpubin_handle .p2align 3, 0x0 __hip_gpubin_handle: .quad 0 .size __hip_gpubin_handle, 8 .section .init_array,"aw",@init_array .p2align 3, 0x90 .quad __hip_module_ctor .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z24__device_stub__matrixMulPiS_S_i .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z9matrixMulPiS_S_i .addrsig_sym _ZSt4cerr .addrsig_sym _ZSt4cout .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper
Result sample: C[0][0] = 1024
5.cpp
code for sm_80 Function : _Z6reducePfS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)" IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; S2R R6, SR_CTAID.X ; IMAD.MOV.U32 R0, RZ, RZ, RZ ; ULDC.64 UR6, c[0x0][0x118] ; S2R R7, SR_TID.X ; IMAD R2, R6, c[0x0][0x0], R7 ; ISETP.GE.U32.AND P0, PT, R2, c[0x0][0x170], PT ; @!P0 MOV R3, 0x4 ; @!P0 IMAD.WIDE.U32 R2, R2, R3, c[0x0][0x160] ; @!P0 LDG.E R0, [R2.64] ; ULDC UR4, c[0x0][0x0] ; ISETP.NE.AND P0, PT, R7, RZ, PT ; USHF.R.U32.HI UR4, URZ, 0x1, UR4 ; ISETP.NE.AND P1, PT, RZ, UR4, PT ; STS [R7.X4], R0 ; BAR.SYNC 0x0 ; @!P1 BRA 0x1d0 ; SHF.L.U32 R0, R7, 0x2, RZ ; IMAD.U32 R3, RZ, RZ, UR4 ; ISETP.GE.U32.AND P1, PT, R7, R3, PT ; @!P1 LEA R2, R3, R0, 0x2 ; @!P1 LDS R4, [R7.X4] ; SHF.R.U32.HI R3, RZ, 0x1, R3 ; @!P1 LDS R5, [R2] ; @!P1 FADD R4, R4, R5 ; @!P1 STS [R7.X4], R4 ; BAR.SYNC 0x0 ; ISETP.NE.AND P1, PT, R3, RZ, PT ; @P1 BRA 0x130 ; @P0 EXIT ; LDS R5, [RZ] ; IMAD.MOV.U32 R3, RZ, RZ, 0x4 ; IMAD.WIDE.U32 R2, R6, R3, c[0x0][0x168] ; STG.E [R2.64], R5 ; EXIT ; BRA 0x230; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; ..........
.file "tmpxft_001f2b3b_00000000-6_5.cudafe1.cpp" .text .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3377: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3377: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .globl _Z28__device_stub__Z6reducePfS_iPfS_i .type _Z28__device_stub__Z6reducePfS_iPfS_i, @function _Z28__device_stub__Z6reducePfS_iPfS_i: .LFB3399: .cfi_startproc endbr64 subq $136, %rsp .cfi_def_cfa_offset 144 movq %rdi, 24(%rsp) leaq 40(%rsp), %rcx leaq 48(%rsp), %rdi movq %rsi, 16(%rsp) leaq 60(%rsp), %rsi movl %edx, 12(%rsp) leaq 32(%rsp), %rdx movq %fs:40, %rax movq %rax, 120(%rsp) xorl %eax, %eax leaq 24(%rsp), %rax movl $1, 56(%rsp) movq %rax, 96(%rsp) leaq 16(%rsp), %rax movq %rax, 104(%rsp) leaq 12(%rsp), %rax movq %rax, 112(%rsp) movabsq $4294967297, %rax movq %rax, 48(%rsp) movq %rax, 60(%rsp) movl $1, 68(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L2 pushq 40(%rsp) .cfi_def_cfa_offset 152 leaq _Z6reducePfS_i(%rip), %rdi pushq 40(%rsp) .cfi_def_cfa_offset 160 movq 76(%rsp), %rcx movl 84(%rsp), %r8d movq 64(%rsp), %rsi movl 72(%rsp), %edx leaq 112(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 152 popq %rdx .cfi_def_cfa_offset 144 .L2: movq 120(%rsp), %rax subq %fs:40, %rax je .L4 call __stack_chk_fail@PLT .L4: addq $136, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3399: .size _Z28__device_stub__Z6reducePfS_iPfS_i, .-_Z28__device_stub__Z6reducePfS_iPfS_i .globl _Z6reducePfS_i .type _Z6reducePfS_i, @function _Z6reducePfS_i: .LFB3400: .cfi_startproc endbr64 jmp _Z28__device_stub__Z6reducePfS_iPfS_i .cfi_endproc .LFE3400: .size _Z6reducePfS_i, .-_Z6reducePfS_i .section .rodata.str1.1,"aMS",@progbits,1 .LC1: .string "First kernel launch failed: " .LC2: .string "Second kernel launch failed: " .LC3: .string "Computed sum: " .LC4: .string "Expected sum: " .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB3374: .cfi_startproc endbr64 pushq %r13 .cfi_def_cfa_offset 16 .cfi_offset 13, -16 movl $4194304, %edi pushq %r12 .cfi_def_cfa_offset 24 .cfi_offset 12, -24 pushq %rbp .cfi_def_cfa_offset 32 .cfi_offset 6, -32 subq $64, %rsp .cfi_def_cfa_offset 96 movq %fs:40, %rax movq %rax, 56(%rsp) xorl %eax, %eax call malloc@PLT movl $4, %edi movq %rax, %r12 call malloc@PLT movss .LC0(%rip), %xmm0 movq %rax, %rbp xorl %eax, %eax .L9: movss %xmm0, (%r12,%rax,4) incq %rax cmpq $1048576, %rax jne .L9 leaq 8(%rsp), %rdi movl $4194304, %esi call cudaMalloc@PLT movq 8(%rsp), %rdi movl $1, %ecx movq %r12, %rsi movl $4194304, %edx call cudaMemcpy@PLT leaq 16(%rsp), %rdi movl $16384, %esi call cudaMalloc@PLT movl $16777217, %edx movl $1048577, %edi xorl %r9d, %r9d salq $8, %rdx salq $12, %rdi movl $1024, %r8d movl $1, %ecx movl $1, %esi movq %rdx, 44(%rsp) movl $1, 52(%rsp) movq %rdi, 32(%rsp) movl $1, 40(%rsp) call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L10 movq 16(%rsp), %rsi movq 8(%rsp), %rdi movl $1048576, %edx call _Z28__device_stub__Z6reducePfS_iPfS_i .L10: call cudaGetLastError@PLT leaq .LC1(%rip), %rsi movl %eax, %r13d testl %eax, %eax jne .L18 leaq 24(%rsp), %rdi movl $4, %esi call cudaMalloc@PLT movl $16777217, %edx xorl %r9d, %r9d movabsq $4294967297, %rdi salq $8, %rdx movl $1024, %r8d movl $1, %ecx movl $1, %esi movq %rdx, 44(%rsp) movl $1, 52(%rsp) movq %rdi, 32(%rsp) movl $1, 40(%rsp) call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L13 movq 24(%rsp), %rsi movq 16(%rsp), %rdi movl $4096, %edx call _Z28__device_stub__Z6reducePfS_iPfS_i .L13: call cudaGetLastError@PLT movl %eax, %r13d testl %eax, %eax je .L14 leaq .LC2(%rip), %rsi .L18: leaq _ZSt4cerr(%rip), %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl %r13d, %edi movq %rax, %rbp call cudaGetErrorString@PLT movq %rbp, %rdi movq %rax, %rsi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT orl $-1, %eax jmp .L8 .L14: movq 24(%rsp), %rsi movl $2, %ecx movl $4, %edx movq %rbp, %rdi leaq _ZSt4cout(%rip), %r13 call cudaMemcpy@PLT movq 24(%rsp), %rdi call cudaFree@PLT leaq .LC3(%rip), %rsi movq %r13, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT cvtss2sd 0(%rbp), %xmm0 movq %rax, %rdi call _ZNSo9_M_insertIdEERSoT_@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT leaq .LC4(%rip), %rsi movq %r13, %rdi call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT movl $1048576, %esi movq %rax, %rdi call _ZNSolsEi@PLT movq %rax, %rdi call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT movq 8(%rsp), %rdi call cudaFree@PLT movq 16(%rsp), %rdi call cudaFree@PLT movq %r12, %rdi call free@PLT movq %rbp, %rdi call free@PLT xorl %eax, %eax .L8: movq 56(%rsp), %rdx subq %fs:40, %rdx je .L15 call __stack_chk_fail@PLT .L15: addq $64, %rsp .cfi_def_cfa_offset 32 popq %rbp .cfi_def_cfa_offset 24 popq %r12 .cfi_def_cfa_offset 16 popq %r13 .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE3374: .size main, .-main .section .rodata.str1.1 .LC5: .string "_Z6reducePfS_i" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB3402: .cfi_startproc endbr64 pushq %rax .cfi_def_cfa_offset 16 leaq _ZL15__fatDeviceText(%rip), %rdi call __cudaRegisterFatBinary@PLT pushq $0 .cfi_def_cfa_offset 24 xorl %r9d, %r9d orl $-1, %r8d pushq $0 .cfi_def_cfa_offset 32 leaq .LC5(%rip), %rdx movq %rax, %rdi leaq _Z6reducePfS_i(%rip), %rsi pushq $0 .cfi_def_cfa_offset 40 movq %rdx, %rcx pushq $0 .cfi_def_cfa_offset 48 movq %rax, _ZL20__cudaFatCubinHandle(%rip) call __cudaRegisterFunction@PLT movq _ZL20__cudaFatCubinHandle(%rip), %rdi addq $32, %rsp .cfi_def_cfa_offset 16 call __cudaRegisterFatBinaryEnd@PLT leaq _ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi popq %rdx .cfi_def_cfa_offset 8 jmp atexit@PLT .cfi_endproc .LFE3402: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .section .text.startup .type _GLOBAL__sub_I_main, @function _GLOBAL__sub_I_main: .LFB4009: .cfi_startproc endbr64 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 leaq _ZStL8__ioinit(%rip), %rbp movq %rbp, %rdi call _ZNSt8ios_base4InitC1Ev@PLT movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rdi movq %rbp, %rsi popq %rbp .cfi_def_cfa_offset 8 leaq __dso_handle(%rip), %rdx jmp __cxa_atexit@PLT .cfi_endproc .LFE4009: .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main .section .init_array .align 8 .quad _GLOBAL__sub_I_main .section .nvFatBinSegment,"aw" .align 8 .type _ZL15__fatDeviceText, @object .size _ZL15__fatDeviceText, 24 _ZL15__fatDeviceText: .long 1180844977 .long 1 .quad fatbinData .quad 0 .local _ZL20__cudaFatCubinHandle .comm _ZL20__cudaFatCubinHandle,8,8 .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC0: .long 1065353216 .hidden __dso_handle .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6reducePfS_i .globl _Z6reducePfS_i .p2align 8 .type _Z6reducePfS_i,@function _Z6reducePfS_i: s_load_b32 s5, s[0:1], 0x4 s_clause 0x1 s_load_b32 s6, s[2:3], 0x10 s_load_b128 s[0:3], s[2:3], 0x0 s_mov_b32 s4, s15 s_waitcnt lgkmcnt(0) s_and_b32 s5, s5, 0xffff s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_2) v_mad_u64_u32 v[1:2], null, s4, s5, v[0:1] v_mov_b32_e32 v2, 0 v_cmp_gt_u32_e32 vcc_lo, s6, v1 s_and_saveexec_b32 s6, vcc_lo s_cbranch_execz .LBB0_2 v_mov_b32_e32 v2, 0 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1) v_lshlrev_b64 v[1:2], 2, v[1:2] v_add_co_u32 v1, vcc_lo, s0, v1 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo global_load_b32 v2, v[1:2], off .LBB0_2: s_or_b32 exec_lo, exec_lo, s6 v_lshlrev_b32_e32 v1, 2, v0 s_cmp_lt_u32 s5, 2 s_waitcnt vmcnt(0) ds_store_b32 v1, v2 s_waitcnt vmcnt(0) lgkmcnt(0) s_waitcnt_vscnt null, 0x0 s_barrier s_branch .LBB0_4 .p2align 6 .LBB0_3: s_or_b32 exec_lo, exec_lo, s1 s_waitcnt vmcnt(0) lgkmcnt(0) s_waitcnt_vscnt null, 0x0 s_barrier s_cmp_lt_u32 s5, 4 s_mov_b32 s5, s0 .LBB0_4: s_waitcnt vmcnt(0) lgkmcnt(0) s_waitcnt_vscnt null, 0x0 buffer_gl0_inv s_cbranch_scc1 .LBB0_7 s_lshr_b32 s0, s5, 1 s_mov_b32 s1, exec_lo v_cmpx_gt_u32_e64 s0, v0 s_cbranch_execz .LBB0_3 v_lshl_add_u32 v2, s0, 2, v1 ds_load_b32 v2, v2 ds_load_b32 v3, v1 s_waitcnt lgkmcnt(0) v_add_f32_e32 v2, v2, v3 ds_store_b32 v1, v2 s_branch .LBB0_3 .LBB0_7: s_mov_b32 s5, 0 s_mov_b32 s0, exec_lo v_cmpx_eq_u32_e32 0, v0 s_cbranch_execz .LBB0_9 v_mov_b32_e32 v0, 0 s_lshl_b64 s[0:1], s[4:5], 2 s_delay_alu instid0(SALU_CYCLE_1) s_add_u32 s0, s2, s0 s_addc_u32 s1, s3, s1 ds_load_b32 v1, v0 s_waitcnt lgkmcnt(0) global_store_b32 v0, v1, s[0:1] .LBB0_9: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,#alloc .p2align 6, 0x0 .amdhsa_kernel _Z6reducePfS_i .amdhsa_group_segment_fixed_size 1024 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 20 .amdhsa_user_sgpr_count 15 .amdhsa_user_sgpr_dispatch_ptr 1 .amdhsa_user_sgpr_queue_ptr 0 .amdhsa_user_sgpr_kernarg_segment_ptr 1 .amdhsa_user_sgpr_dispatch_id 0 .amdhsa_user_sgpr_private_segment_size 0 .amdhsa_wavefront_size32 1 .amdhsa_enable_private_segment 0 .amdhsa_system_sgpr_workgroup_id_x 1 .amdhsa_system_sgpr_workgroup_id_y 0 .amdhsa_system_sgpr_workgroup_id_z 0 .amdhsa_system_sgpr_workgroup_info 0 .amdhsa_system_vgpr_workitem_id 0 .amdhsa_next_free_vgpr 4 .amdhsa_next_free_sgpr 16 .amdhsa_float_round_mode_32 0 .amdhsa_float_round_mode_16_64 0 .amdhsa_float_denorm_mode_32 3 .amdhsa_float_denorm_mode_16_64 3 .amdhsa_dx10_clamp 1 .amdhsa_ieee_mode 1 .amdhsa_fp16_overflow 0 .amdhsa_workgroup_processor_mode 1 .amdhsa_memory_ordered 1 .amdhsa_forward_progress 0 .amdhsa_shared_vgpr_count 0 .amdhsa_exception_fp_ieee_invalid_op 0 .amdhsa_exception_fp_denorm_src 0 .amdhsa_exception_fp_ieee_div_zero 0 .amdhsa_exception_fp_ieee_overflow 0 .amdhsa_exception_fp_ieee_underflow 0 .amdhsa_exception_fp_ieee_inexact 0 .amdhsa_exception_int_div_zero 0 .end_amdhsa_kernel .text .Lfunc_end0: .size _Z6reducePfS_i, .Lfunc_end0-_Z6reducePfS_i .section .AMDGPU.csdata .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .ident "Ubuntu clang version 17.0.6 (5build1)" .section ".note.GNU-stack" .addrsig .amdgpu_metadata --- amdhsa.kernels: - .args: - .address_space: global .offset: 0 .size: 8 .value_kind: global_buffer - .address_space: global .offset: 8 .size: 8 .value_kind: global_buffer - .offset: 16 .size: 4 .value_kind: by_value .group_segment_fixed_size: 1024 .kernarg_segment_align: 8 .kernarg_segment_size: 20 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z6reducePfS_i .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z6reducePfS_i.kd .vgpr_count: 4 .vgpr_spill_count: 0 .wavefront_size: 32 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 1 ... .end_amdgpu_metadata
.text .file "5.cpp" .globl _ZSt21ios_base_library_initv .globl _Z21__device_stub__reducePfS_i .p2align 4, 0x90 .type _Z21__device_stub__reducePfS_i,@function _Z21__device_stub__reducePfS_i: .cfi_startproc subq $104, %rsp .cfi_def_cfa_offset 112 movq %rdi, 72(%rsp) movq %rsi, 64(%rsp) movl %edx, 12(%rsp) leaq 72(%rsp), %rax movq %rax, 80(%rsp) leaq 64(%rsp), %rax movq %rax, 88(%rsp) leaq 12(%rsp), %rax movq %rax, 96(%rsp) leaq 48(%rsp), %rdi leaq 32(%rsp), %rsi leaq 24(%rsp), %rdx leaq 16(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 48(%rsp), %rsi movl 56(%rsp), %edx movq 32(%rsp), %rcx movl 40(%rsp), %r8d movq _Z6reducePfS_i@GOTPCREL(%rip), %rdi leaq 80(%rsp), %r9 pushq 16(%rsp) .cfi_adjust_cfa_offset 8 pushq 32(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $120, %rsp .cfi_adjust_cfa_offset -120 retq .Lfunc_end0: .size _Z21__device_stub__reducePfS_i, .Lfunc_end0-_Z21__device_stub__reducePfS_i .cfi_endproc .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI1_0: .long 0x3f800000 .long 0x3f800000 .long 0x3f800000 .long 0x3f800000 .text .globl main .p2align 4, 0x90 .type main,@function main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 .cfi_def_cfa_offset 24 pushq %r14 .cfi_def_cfa_offset 32 pushq %r12 .cfi_def_cfa_offset 40 pushq %rbx .cfi_def_cfa_offset 48 subq $128, %rsp .cfi_def_cfa_offset 176 .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movl $4194304, %edi callq malloc@PLT movq %rax, %rbx movl $4, %edi callq malloc@PLT movq %rax, %r14 movl $28, %eax movaps .LCPI1_0(%rip), %xmm0 .p2align 4, 0x90 .LBB1_1: movups %xmm0, -112(%rbx,%rax,4) movups %xmm0, -96(%rbx,%rax,4) movups %xmm0, -80(%rbx,%rax,4) movups %xmm0, -64(%rbx,%rax,4) movups %xmm0, -48(%rbx,%rax,4) movups %xmm0, -32(%rbx,%rax,4) movups %xmm0, -16(%rbx,%rax,4) movups %xmm0, (%rbx,%rax,4) addq $32, %rax cmpq $1048604, %rax jne .LBB1_1 movabsq $4294967552, %r15 leaq 16(%rsp), %rdi movl $4194304, %esi callq hipMalloc@PLT movq 16(%rsp), %rdi movl $4194304, %edx movq %rbx, %rsi movl $1, %ecx callq hipMemcpy@PLT leaq 8(%rsp), %rdi movl $16384, %esi callq hipMalloc@PLT leaq 3840(%r15), %rdi movl $1024, %r8d movl $1, %esi movq %r15, %rdx movl $1, %ecx xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_6 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_7 .LBB1_4: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str(%rip), %rsi movl $28, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_11 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_12 .LBB1_6: movq 16(%rsp), %rax movq 8(%rsp), %rcx movq %rax, 80(%rsp) movq %rcx, 72(%rsp) movl $1048576, (%rsp) leaq 80(%rsp), %rax movq %rax, 96(%rsp) leaq 72(%rsp), %rax movq %rax, 104(%rsp) movq %rsp, %rax movq %rax, 112(%rsp) leaq 56(%rsp), %rdi leaq 40(%rsp), %rsi leaq 32(%rsp), %rdx leaq 24(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 56(%rsp), %rsi movl 64(%rsp), %edx movq 40(%rsp), %rcx movl 48(%rsp), %r8d movq _Z6reducePfS_i@GOTPCREL(%rip), %rdi leaq 96(%rsp), %r9 pushq 24(%rsp) .cfi_adjust_cfa_offset 8 pushq 40(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_4 .LBB1_7: movq %rsp, %rdi movl $4, %esi callq hipMalloc@PLT leaq -255(%r15), %rdi movl $1024, %r8d movl $1, %esi movq %r15, %rdx movl $1, %ecx xorl %r9d, %r9d callq __hipPushCallConfiguration@PLT testl %eax, %eax je .LBB1_15 callq hipGetLastError@PLT testl %eax, %eax je .LBB1_16 .LBB1_9: movl %eax, %ebp movq _ZSt4cerr@GOTPCREL(%rip), %rbx leaq .L.str.1(%rip), %rsi movl $29, %edx movq %rbx, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movl %ebp, %edi callq hipGetErrorString@PLT testq %rax, %rax je .LBB1_19 movq %rax, %r14 movq %rax, %rdi callq strlen@PLT movq _ZSt4cerr@GOTPCREL(%rip), %rdi movq %r14, %rsi movq %rax, %rdx callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT jmp .LBB1_20 .LBB1_11: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_12: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_32 cmpb $0, 56(%rbx) je .LBB1_23 .LBB1_14: movzbl 67(%rbx), %eax jmp .LBB1_24 .LBB1_15: movq 8(%rsp), %rax movq (%rsp), %rcx movq %rax, 80(%rsp) movq %rcx, 72(%rsp) movl $4096, 92(%rsp) leaq 80(%rsp), %rax movq %rax, 96(%rsp) leaq 72(%rsp), %rax movq %rax, 104(%rsp) leaq 92(%rsp), %rax movq %rax, 112(%rsp) leaq 56(%rsp), %rdi leaq 40(%rsp), %rsi leaq 32(%rsp), %rdx leaq 24(%rsp), %rcx callq __hipPopCallConfiguration@PLT movq 56(%rsp), %rsi movl 64(%rsp), %edx movq 40(%rsp), %rcx movl 48(%rsp), %r8d movq _Z6reducePfS_i@GOTPCREL(%rip), %rdi leaq 96(%rsp), %r9 pushq 24(%rsp) .cfi_adjust_cfa_offset 8 pushq 40(%rsp) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel@PLT addq $16, %rsp .cfi_adjust_cfa_offset -16 callq hipGetLastError@PLT testl %eax, %eax jne .LBB1_9 .LBB1_16: movq (%rsp), %rsi movl $4, %edx movq %r14, %rdi movl $2, %ecx callq hipMemcpy@PLT movq (%rsp), %rdi callq hipFree@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.2(%rip), %rsi movl $14, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movss (%r14), %xmm0 cvtss2sd %xmm0, %xmm0 movq %r15, %rdi callq _ZNSo9_M_insertIdEERSoT_@PLT movq %rax, %r15 movq (%rax), %rax movq -24(%rax), %rax movq 240(%r15,%rax), %r12 testq %r12, %r12 je .LBB1_32 cmpb $0, 56(%r12) je .LBB1_26 movzbl 67(%r12), %eax jmp .LBB1_27 .LBB1_19: movq (%rbx), %rax movq -24(%rax), %rax leaq (%rbx,%rax), %rdi movl 32(%rbx,%rax), %esi orl $1, %esi callq _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate@PLT .LBB1_20: movq (%rbx), %rax movq -24(%rax), %rax movq 240(%rbx,%rax), %rbx testq %rbx, %rbx je .LBB1_32 cmpb $0, 56(%rbx) jne .LBB1_14 .LBB1_23: movq %rbx, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%rbx), %rax movq %rbx, %rdi movl $10, %esi callq *48(%rax) .LBB1_24: movsbl %al, %esi movq _ZSt4cerr@GOTPCREL(%rip), %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movl $-1, %eax .LBB1_25: addq $128, %rsp .cfi_def_cfa_offset 48 popq %rbx .cfi_def_cfa_offset 40 popq %r12 .cfi_def_cfa_offset 32 popq %r14 .cfi_def_cfa_offset 24 popq %r15 .cfi_def_cfa_offset 16 popq %rbp .cfi_def_cfa_offset 8 retq .LBB1_26: .cfi_def_cfa_offset 176 movq %r12, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r12), %rax movq %r12, %rdi movl $10, %esi callq *48(%rax) .LBB1_27: movsbl %al, %esi movq %r15, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq _ZSt4cout@GOTPCREL(%rip), %r15 leaq .L.str.3(%rip), %rsi movl $14, %edx movq %r15, %rdi callq _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT movq %r15, %rdi movl $1048576, %esi callq _ZNSolsEi@PLT movq %rax, %r15 movq (%rax), %rax movq -24(%rax), %rax movq 240(%r15,%rax), %r12 testq %r12, %r12 je .LBB1_32 cmpb $0, 56(%r12) je .LBB1_30 movzbl 67(%r12), %eax jmp .LBB1_31 .LBB1_30: movq %r12, %rdi callq _ZNKSt5ctypeIcE13_M_widen_initEv@PLT movq (%r12), %rax movq %r12, %rdi movl $10, %esi callq *48(%rax) .LBB1_31: movsbl %al, %esi movq %r15, %rdi callq _ZNSo3putEc@PLT movq %rax, %rdi callq _ZNSo5flushEv@PLT movq 16(%rsp), %rdi callq hipFree@PLT movq 8(%rsp), %rdi callq hipFree@PLT movq %rbx, %rdi callq free@PLT movq %r14, %rdi callq free@PLT xorl %eax, %eax jmp .LBB1_25 .LBB1_32: callq _ZSt16__throw_bad_castv@PLT .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc .p2align 4, 0x90 .type __hip_module_ctor,@function __hip_module_ctor: .cfi_startproc subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 leaq __hip_fatbin_wrapper(%rip), %rdi callq __hipRegisterFatBinary@PLT movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movq _Z6reducePfS_i@GOTPCREL(%rip), %rsi leaq .L__unnamed_1(%rip), %rcx movq %rcx, %rdx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction@PLT leaq __hip_module_dtor(%rip), %rdi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit@PLT .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc .p2align 4, 0x90 .type __hip_module_dtor,@function __hip_module_dtor: .cfi_startproc movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary@PLT movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB3_2: retq .Lfunc_end3: .size __hip_module_dtor, .Lfunc_end3-__hip_module_dtor .cfi_endproc .type _Z6reducePfS_i,@object .section .data.rel.ro,"aw",@progbits .globl _Z6reducePfS_i .p2align 3, 0x0 _Z6reducePfS_i: .quad _Z21__device_stub__reducePfS_i .size _Z6reducePfS_i, 8 .type .L.str,@object .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "First kernel launch failed: " .size .L.str, 29 .type .L.str.1,@object .L.str.1: .asciz "Second kernel launch failed: " .size .L.str.1, 30 .type .L.str.2,@object .L.str.2: .asciz "Computed sum: " .size .L.str.2, 15 .type .L.str.3,@object .L.str.3: .asciz "Expected sum: " .size .L.str.3, 15 .type .L__unnamed_1,@object .L__unnamed_1: .asciz "_Z6reducePfS_i" .size .L__unnamed_1, 15 .type __hip_fatbin_wrapper,@object .section .hipFatBinSegment,"aw",@progbits .p2align 3, 0x90 __hip_fatbin_wrapper: .long 1212764230 .long 1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .hidden __hip_gpubin_handle .type __hip_gpubin_handle,@object .section .bss.__hip_gpubin_handle,"aGw",@nobits,__hip_gpubin_handle,comdat .weak __hip_gpubin_handle .p2align 3, 0x0 __hip_gpubin_handle: .quad 0 .size __hip_gpubin_handle, 8 .section .init_array,"aw",@init_array .p2align 3, 0x90 .quad __hip_module_ctor .ident "Ubuntu clang version 17.0.6 (9ubuntu1)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z21__device_stub__reducePfS_i .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z6reducePfS_i .addrsig_sym _ZSt4cerr .addrsig_sym _ZSt4cout .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper
Computed sum: 65536 Expected sum: 1048576
6.cpp
"code for sm_80\nFunction : _Z9stencil3DPfS_iii\n.headerflags @\"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64B(...TRUNCATED)
"\t.file\t\"tmpxft_001f2b5d_00000000-6_6.cudafe1.cpp\"\n\t.text\n\n\t.type\t_ZL26__cudaUnregisterBin(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z9stencil3DPfS_iii \n\(...TRUNCATED)
"\t.text\n\t.file\t\"6.cpp\"\n\t.globl\t_ZSt21ios_base_library_initv\n\n\t.globl\t_Z24__device_stub_(...TRUNCATED)
Input value at center: 0.5 Output value at center: 0.5
7.cpp
"code for sm_80\nFunction : _Z15updateParticlesP8Particlefi\n.headerflags @\"EF_CUDA_TEXMODE_UNIFIED(...TRUNCATED)
"\t.file\t\"tmpxft_001f2b85_00000000-6_7.cudafe1.cpp\"\n\t.text\n\n\t.type\t_ZL26__cudaUnregisterBin(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z15updateParticlesP8Partic(...TRUNCATED)
"\t.text\n\t.file\t\"7.cpp\"\n\t.globl\t_ZSt21ios_base_library_initv\n\n\t.globl\t_Z30__device_stub_(...TRUNCATED)
"Particle positions after simulation:\nParticle 0: (15.4902, 3.30477, -5.72496)\nParticle 1: (6.1784(...TRUNCATED)
8.cpp
"code for sm_80\nFunction : _Z9histogramPhPji\n.headerflags @\"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT(...TRUNCATED)
"\t.file\t\"tmpxft_001f2ba7_00000000-6_8.cudafe1.cpp\"\n\t.text\n\n\t.type\t_ZL26__cudaUnregisterBin(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z9histogramPhPji \n\(...TRUNCATED)
"\t.text\n\t.file\t\"8.cpp\"\n\t.globl\t_ZSt21ios_base_library_initv\n\n\t.globl\t_Z24__device_stub_(...TRUNCATED)
"Input elements: 50000000\nElements counted in histogram: 50000000\nSample bin values:\nBin 0: 19515(...TRUNCATED)
9.cpp
"code for sm_80\nFunction : _Z12addBlockSumsPfS_i\n.headerflags @\"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_6(...TRUNCATED)
"\t.file\t\"tmpxft_001f2bc9_00000000-6_9.cudafe1.cpp\"\n\t.text\n\n\t.type\t_ZL26__cudaUnregisterBin(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z9localScanPfS_S_i \n\(...TRUNCATED)
"\t.text\n\t.file\t\"9.cpp\"\n\t.globl\t_ZSt21ios_base_library_initv\n\n\t.globl\t_Z24__device_stub_(...TRUNCATED)
"Error at element 3774870: 1.69967e+07 vs. expected 1.69941e+07\nPrefix sum FAILED\nFirst few elemen(...TRUNCATED)
README.md exists but content is empty.
Downloads last month
6