Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/backend/amd/gfx942/embed5120_step-gfx942.s # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / backend / amd / gfx942 / embed5120_step-gfx942.s` 110 lines · 2841 bytes Raw Blame History 1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 // LLVM18 independent encoding oracle only. 3 .amdgcn_target "amdgcn-amd-amdhsa--gfx942" 4 .text 5 .globl embed5120_step 6 .p2align 8 7 .type embed5120_step,@function 8 embed5120_step: 9 s_load_dwordx2 s[4:5], s[0:1], 0 10 s_load_dwordx2 s[6:7], s[0:1], 8 11 s_waitcnt lgkmcnt(0) 12 s_load_dwordx2 s[8:9], s[0:1], 16 13 s_waitcnt lgkmcnt(0) 14 v_mov_b32 v30, s8 15 v_mov_b32 v31, s9 16 global_load_dword v29, v[30:31], off 17 s_waitcnt vmcnt(0) 18 v_readfirstlane_b32 s8, v29 19 s_nop 1 20 s_load_dword s10, s[0:1], 24 21 s_waitcnt lgkmcnt(0) 22 s_sub_u32 s28, s8, s10 23 s_cbranch_scc0 .L99 24 s_mov_b32 s28, 10240 25 v_mul_lo_u32 v30, v29, s28 26 v_mul_hi_u32 v31, v29, s28 27 v_add_co_u32 v30, vcc, s4, v30 28 v_mov_b32 v29, s5 29 v_addc_co_u32 v31, vcc, v29, v31, vcc 30 v_readfirstlane_b32 s4, v30 31 v_readfirstlane_b32 s5, v31 32 s_nop 1 33 s_mov_b32 s29, 0x50 34 s_sub_u32 s28, s2, s29 35 s_cbranch_scc0 .L99 36 s_sub_u32 s28, s3, 1 37 s_cbranch_scc0 .L99 38 v_and_b32 v0, 0x3ff, v0 39 v_mov_b32 v1, s2 40 v_lshlrev_b32 v1, 6, v1 41 v_add_u32 v1, v0, v1 42 v_lshlrev_b32 v2, 1, v1 43 v_lshrrev_b32 v3, 31, v1 44 v_mov_b32 v27, s5 45 v_add_co_u32 v2, vcc, s4, v2 46 v_addc_co_u32 v3, vcc, v27, v3, vcc 47 v_lshlrev_b32 v4, 2, v1 48 v_lshrrev_b32 v5, 30, v1 49 v_mov_b32 v27, s7 50 v_add_co_u32 v4, vcc, s6, v4 51 v_addc_co_u32 v5, vcc, v27, v5, vcc 52 v_mov_b32 v8, 0 53 global_load_short_d16_hi v8, v[2:3], off 54 s_waitcnt vmcnt(0) 55 global_store_dword v[4:5], v8, off 56 .L99: 57 s_endpgm 58 .Lembed5120_step_end: 59 .size embed5120_step, .Lembed5120_step_end-embed5120_step 60 .rodata 61 .p2align 6 62 .amdhsa_kernel embed5120_step 63 .amdhsa_user_sgpr_kernarg_segment_ptr 1 64 .amdhsa_system_sgpr_workgroup_id_x 1 65 .amdhsa_system_sgpr_workgroup_id_y 1 66 .amdhsa_system_vgpr_workitem_id 0 67 .amdhsa_kernarg_size 28 68 .amdhsa_next_free_vgpr 32 69 .amdhsa_next_free_sgpr 30 70 .amdhsa_accum_offset 32 71 .amdhsa_float_denorm_mode_32 3 72 .end_amdhsa_kernel 73 .amdgpu_metadata 74 --- 75 amdhsa.version: [ 1, 2 ] 76 amdhsa.target: amdgcn-amd-amdhsa--gfx942 77 amdhsa.kernels: 78 - .name: embed5120_step 79 .symbol: embed5120_step.kd 80 .kernarg_segment_size: 28 81 .kernarg_segment_align: 8 82 .group_segment_fixed_size: 0 83 .private_segment_fixed_size: 0 84 .wavefront_size: 64 85 .sgpr_count: 36 86 .vgpr_count: 32 87 .agpr_count: 0 88 .max_flat_workgroup_size: 64 89 .args: 90 - .name: table 91 .offset: 0 92 .size: 8 93 .value_kind: global_buffer 94 .address_space: global 95 - .name: output 96 .offset: 8 97 .size: 8 98 .value_kind: global_buffer 99 .address_space: global 100 - .name: token 101 .offset: 16 102 .size: 8 103 .value_kind: global_buffer 104 .address_space: global 105 - .name: vocab 106 .offset: 24 107 .size: 4 108 .value_kind: by_value 109 ... 110 .end_amdgpu_metadata