Dataset Viewer
Auto-converted to Parquet Duplicate
filename
stringlengths
40
40
cuda_source
stringlengths
12
1.26M
cuda_host
stringlengths
1.53k
859k
cuda_device
stringlengths
17
10.5M
hip_source
stringlengths
29
1.26M
hip_host
stringlengths
408
1.58M
hip_device
stringlengths
650
2.28M
759ecbbfa1646c1f70d99ece9884f5907876404f
/* * main.cu * * Created on: Nov 14, 2019 * Author: cuda-s01 */ #include <stdio.h> __global__ void matrixMultiplicationKernel(float* M, float* N, float* P, int Width) { // Calculate the row index of the P element and M int Row = blockIdx.y*blockDim.y+threadIdx.y; // Calculate the column index of P and N int Col = blockIdx.x*blockDim.x+threadIdx.x; if ((Row < Width) && (Col < Width)) { float Pvalue = 0; // each thread computes one element of the block sub-matrix for (int k = 0; k < Width; ++k) { Pvalue += M[Row*Width+k]*N[k*Width+Col]; } P[Row*Width+Col] = Pvalue; } } void matrixMultiplication(float *M, float *N, float *P, int Width){ // declare the number of blocks per grid and the number of threads per block int th = Width; int bl= 1; dim3 threadsPerBlock(th,th); dim3 blocksPerGrid(bl,bl); printf("Kernel started: %d blocks, %d threads.\n", bl,th); matrixMultiplicationKernel<<<blocksPerGrid,threadsPerBlock>>>(M, N, P, Width); } void PrintMatrix(float* M, int Width) { for(int i = 0; i < Width; i++) { for(int j = 0; j < Width; j++) printf("%f ",M[i*Width+j]); printf("\n"); } printf("\n"); } int main(void) { printf("Starting the program:\n"); cudaError_t err = cudaSuccess; int matrix_size = 100; int num_of_elements = matrix_size * matrix_size; size_t size = num_of_elements * sizeof(float); printf("matrix [%d x %d] multiplication.\n", matrix_size, matrix_size); //==========================Shared Memory============================================ //allocate matrixes on the device: printf("Started variables allocation for the device.\n"); printf("First matrix.\n"); float *M; err = cudaMallocManaged((void**)&M, size); if(err != cudaSuccess) { fprintf(stderr, "Failed to allocate M matrix!\n"); exit(EXIT_FAILURE); } else printf("Allocation successful.\n"); printf("Second matrix.\n"); float *N; err = cudaMallocManaged((void**)&N, size); if(err != cudaSuccess) { fprintf(stderr, "Failed to allocate N matrix!\n"); exit(EXIT_FAILURE); } else printf("Allocation successful.\n"); printf("Third matrix.\n"); float *P; err = cudaMallocManaged((void**)&P, size); if(err != cudaSuccess) { fprintf(stderr, "Failed to allocate P matrix!\n"); exit(EXIT_FAILURE); } else printf("Allocation successful.\n"); //initialisation: for(int i=0; i<num_of_elements; i++) { M[i] = rand()/(float)RAND_MAX; N[i] = rand()/(float)RAND_MAX; } printf("Initialisation finished.\n"); //calculations: matrixMultiplication(M, N, P, matrix_size); err = cudaGetLastError(); if(err != cudaSuccess) { fprintf(stderr, "Failed to launch kernel. Error: %s.\n", cudaGetErrorString(err)); exit(EXIT_FAILURE); } else printf("Kerel operations successful.\n"); //==========================TEST=============================================== PrintMatrix(M, matrix_size); PrintMatrix(N, matrix_size); PrintMatrix(P, matrix_size); for(int i = 0; i < matrix_size; i++) { for(int j = 0; j < matrix_size; j++) { float tmp = 0; for(int k = 0; k < matrix_size; k++) tmp += M[i*matrix_size + k] * N[k*matrix_size + j]; //debug line: //printf("%f ",tmp); if(fabs(tmp - P[i*matrix_size + j]) > 1e-3) { fprintf(stderr, "Verification test failed.!\nElement at index (%d, %d) should be %f, but is %f. \n", i,j,tmp,P[i*matrix_size + j]); exit(EXIT_FAILURE); } } } printf("Test PASSED\n"); // Free device global memory err = cudaFree(M); if (err != cudaSuccess) { fprintf(stderr, "Failed to free device matrix M (error code %s)!\n", cudaGetErrorString(err)); exit(EXIT_FAILURE); } err = cudaFree(N); if (err != cudaSuccess) { fprintf(stderr, "Failed to free device matrix N (error code %s)!\n", cudaGetErrorString(err)); exit(EXIT_FAILURE); } err = cudaFree(P); if (err != cudaSuccess) { fprintf(stderr, "Failed to free device matrix P (error code %s)!\n", cudaGetErrorString(err)); exit(EXIT_FAILURE); } printf("Done\n"); return 0; }
.file "tmpxft_003b47c5_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "%f " .LC1: .string "\n" .text .globl _Z11PrintMatrixPfi .type _Z11PrintMatrixPfi, @function _Z11PrintMatrixPfi: .LFB2028: .cfi_startproc endbr64 pushq %r15 .cfi_def_cfa_offset 16 .cfi_offset 15, -16 pushq %r14 .cfi_def_cfa_offset 24 .cfi_offset 14, -24 leaq .LC0(%rip), %r14 pushq %r13 .cfi_def_cfa_offset 32 .cfi_offset 13, -32 movslq %esi, %r13 pushq %r12 .cfi_def_cfa_offset 40 .cfi_offset 12, -40 xorl %r12d, %r12d pushq %rbp .cfi_def_cfa_offset 48 .cfi_offset 6, -48 movq %r13, %rbp salq $2, %r13 pushq %rbx .cfi_def_cfa_offset 56 .cfi_offset 3, -56 movq %rdi, %rbx pushq %rcx .cfi_def_cfa_offset 64 .L3: cmpl %ebp, %r12d jge .L9 leaq (%rbx,%r13), %r15 .L4: cvtss2sd (%rbx), %xmm0 movq %r14, %rsi movl $2, %edi movb $1, %al call __printf_chk@PLT addq $4, %rbx cmpq %r15, %rbx jne .L4 leaq .LC1(%rip), %rsi movl $2, %edi xorl %eax, %eax incl %r12d call __printf_chk@PLT jmp .L3 .L9: popq %rdx .cfi_def_cfa_offset 56 leaq .LC1(%rip), %rsi popq %rbx .cfi_def_cfa_offset 48 movl $2, %edi popq %rbp .cfi_def_cfa_offset 40 xorl %eax, %eax 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 jmp __printf_chk@PLT .cfi_endproc .LFE2028: .size _Z11PrintMatrixPfi, .-_Z11PrintMatrixPfi .globl _Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i .type _Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i, @function _Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i: .LFB2054: .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 .L10 pushq 48(%rsp) .cfi_def_cfa_offset 168 leaq _Z26matrixMultiplicationKernelPfS_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 .L10: movq 136(%rsp), %rax subq %fs:40, %rax je .L12 call __stack_chk_fail@PLT .L12: addq $152, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE2054: .size _Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i, .-_Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i .globl _Z26matrixMultiplicationKernelPfS_S_i .type _Z26matrixMultiplicationKernelPfS_S_i, @function _Z26matrixMultiplicationKernelPfS_S_i: .LFB2055: .cfi_startproc endbr64 jmp _Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i .cfi_endproc .LFE2055: .size _Z26matrixMultiplicationKernelPfS_S_i, .-_Z26matrixMultiplicationKernelPfS_S_i .section .rodata.str1.1 .LC2: .string "Kernel started: %d blocks, %d threads.\n" .text .globl _Z20matrixMultiplicationPfS_S_i .type _Z20matrixMultiplicationPfS_S_i, @function _Z20matrixMultiplicationPfS_S_i: .LFB2027: .cfi_startproc endbr64 movabsq $4294967297, %rax pushq %r13 .cfi_def_cfa_offset 16 .cfi_offset 13, -16 movq %rdx, %r13 movl $1, %edx pushq %r12 .cfi_def_cfa_offset 24 .cfi_offset 12, -24 movq %rsi, %r12 leaq .LC2(%rip), %rsi pushq %rbp .cfi_def_cfa_offset 32 .cfi_offset 6, -32 movq %rdi, %rbp movl $2, %edi pushq %rbx .cfi_def_cfa_offset 40 .cfi_offset 3, -40 movl %ecx, %ebx subq $40, %rsp .cfi_def_cfa_offset 80 movq %rax, 20(%rsp) xorl %eax, %eax movl %ecx, 8(%rsp) movl %ecx, 12(%rsp) movl $1, 16(%rsp) movl $1, 28(%rsp) call __printf_chk@PLT movl 16(%rsp), %ecx movl 28(%rsp), %esi xorl %r9d, %r9d movq 8(%rsp), %rdx movq 20(%rsp), %rdi xorl %r8d, %r8d call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L15 addq $40, %rsp .cfi_remember_state .cfi_def_cfa_offset 40 movl %ebx, %ecx movq %r13, %rdx movq %r12, %rsi popq %rbx .cfi_def_cfa_offset 32 movq %rbp, %rdi popq %rbp .cfi_def_cfa_offset 24 popq %r12 .cfi_def_cfa_offset 16 popq %r13 .cfi_def_cfa_offset 8 jmp _Z51__device_stub__Z26matrixMultiplicationKernelPfS_S_iPfS_S_i .L15: .cfi_restore_state addq $40, %rsp .cfi_def_cfa_offset 40 popq %rbx .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 .LFE2027: .size _Z20matrixMultiplicationPfS_S_i, .-_Z20matrixMultiplicationPfS_S_i .section .rodata.str1.1 .LC4: .string "Starting the program:\n" .LC5: .string "matrix [%d x %d] multiplication.\n" .LC6: .string "Started variables allocation for the device.\n" .LC7: .string "First matrix.\n" .LC8: .string "Failed to allocate M matrix!\n" .LC9: .string "Allocation successful.\n" .LC10: .string "Second matrix.\n" .LC11: .string "Failed to allocate N matrix!\n" .LC12: .string "Third matrix.\n" .LC13: .string "Failed to allocate P matrix!\n" .LC15: .string "Initialisation finished.\n" .LC16: .string "Failed to launch kernel. Error: %s.\n" .LC17: .string "Kerel operations successful.\n" .LC20: .string "Verification test failed.!\nElement at index (%d, %d) should be %f, but is %f. \n" .LC21: .string "Test PASSED\n" .LC22: .string "Failed to free device matrix M (error code %s)!\n" .LC23: .string "Failed to free device matrix N (error code %s)!\n" .LC24: .string "Failed to free device matrix P (error code %s)!\n" .LC25: .string "Done\n" .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB2029: .cfi_startproc endbr64 pushq %rbx .cfi_def_cfa_offset 16 .cfi_offset 3, -16 leaq .LC4(%rip), %rsi movl $2, %edi subq $32, %rsp .cfi_def_cfa_offset 48 movq %fs:40, %rax movq %rax, 24(%rsp) xorl %eax, %eax call __printf_chk@PLT movl $100, %ecx movl $100, %edx xorl %eax, %eax leaq .LC5(%rip), %rsi movl $2, %edi call __printf_chk@PLT leaq .LC6(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT leaq .LC7(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT movl $1, %edx movq %rsp, %rdi movl $40000, %esi call cudaMallocManaged@PLT leaq .LC8(%rip), %rdx testl %eax, %eax jne .L40 leaq .LC9(%rip), %rbx movl $2, %edi xorl %eax, %eax movq %rbx, %rsi call __printf_chk@PLT leaq .LC10(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT leaq 8(%rsp), %rdi movl $1, %edx movl $40000, %esi call cudaMallocManaged@PLT testl %eax, %eax je .L20 leaq .LC11(%rip), %rdx .L40: movq stderr(%rip), %rdi movl $2, %esi xorl %eax, %eax call __fprintf_chk@PLT .L41: movl $1, %edi call exit@PLT .L20: movq %rbx, %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT leaq .LC12(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT movl $1, %edx leaq 16(%rsp), %rdi movl $40000, %esi call cudaMallocManaged@PLT leaq .LC13(%rip), %rdx testl %eax, %eax jne .L40 movq %rbx, %rsi movl $2, %edi xorl %eax, %eax xorl %ebx, %ebx call __printf_chk@PLT .L22: call rand@PLT cvtsi2ssl %eax, %xmm0 mulss .LC14(%rip), %xmm0 movq (%rsp), %rax movss %xmm0, (%rax,%rbx) call rand@PLT cvtsi2ssl %eax, %xmm0 mulss .LC14(%rip), %xmm0 movq 8(%rsp), %rax movss %xmm0, (%rax,%rbx) addq $4, %rbx cmpq $40000, %rbx jne .L22 leaq .LC15(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT movq (%rsp), %rdi movq 16(%rsp), %rdx movl $100, %ecx movq 8(%rsp), %rsi call _Z20matrixMultiplicationPfS_S_i call cudaGetLastError@PLT movl %eax, %edi testl %eax, %eax je .L23 call cudaGetErrorString@PLT leaq .LC16(%rip), %rdx movq %rax, %rcx jmp .L42 .L23: leaq .LC17(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT movq (%rsp), %rdi movl $100, %esi call _Z11PrintMatrixPfi movq 8(%rsp), %rdi movl $100, %esi call _Z11PrintMatrixPfi movq 16(%rsp), %rdi movl $100, %esi call _Z11PrintMatrixPfi movq (%rsp), %r11 movq 8(%rsp), %rbx xorl %eax, %eax movq 16(%rsp), %r9 movsd .LC19(%rip), %xmm4 xorl %ecx, %ecx movss .LC18(%rip), %xmm3 .L24: xorl %r8d, %r8d leaq (%r11,%rax), %r10 leaq (%r9,%rax), %rdi .L30: leaq (%rbx,%r8,4), %rsi xorl %edx, %edx xorps %xmm0, %xmm0 .L25: movss (%r10,%rdx,4), %xmm1 mulss (%rsi), %xmm1 incq %rdx addq $400, %rsi addss %xmm1, %xmm0 cmpq $100, %rdx jne .L25 movss (%rdi,%r8,4), %xmm1 movaps %xmm0, %xmm2 subss %xmm1, %xmm2 andps %xmm3, %xmm2 cvtss2sd %xmm2, %xmm2 comisd %xmm4, %xmm2 jbe .L38 movl $2, %esi movq stderr(%rip), %rdi leaq .LC20(%rip), %rdx movb $2, %al cvtss2sd %xmm0, %xmm0 cvtss2sd %xmm1, %xmm1 call __fprintf_chk@PLT jmp .L41 .L38: incq %r8 cmpq $100, %r8 jne .L30 incl %ecx addq $400, %rax cmpl $100, %ecx jne .L24 leaq .LC21(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT movq (%rsp), %rdi call cudaFree@PLT movl %eax, %edi testl %eax, %eax je .L31 call cudaGetErrorString@PLT leaq .LC22(%rip), %rdx movq %rax, %rcx jmp .L42 .L31: movq 8(%rsp), %rdi call cudaFree@PLT movl %eax, %edi testl %eax, %eax je .L32 call cudaGetErrorString@PLT leaq .LC23(%rip), %rdx movq %rax, %rcx jmp .L42 .L32: movq 16(%rsp), %rdi call cudaFree@PLT movl %eax, %edi testl %eax, %eax je .L33 call cudaGetErrorString@PLT leaq .LC24(%rip), %rdx movq %rax, %rcx .L42: movq stderr(%rip), %rdi movl $2, %esi xorl %eax, %eax call __fprintf_chk@PLT jmp .L41 .L33: xorl %eax, %eax leaq .LC25(%rip), %rsi movl $2, %edi call __printf_chk@PLT movq 24(%rsp), %rax subq %fs:40, %rax je .L34 call __stack_chk_fail@PLT .L34: addq $32, %rsp .cfi_def_cfa_offset 16 xorl %eax, %eax popq %rbx .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE2029: .size main, .-main .section .rodata.str1.1 .LC26: .string "_Z26matrixMultiplicationKernelPfS_S_i" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB2057: .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 .LC26(%rip), %rdx movq %rax, %rdi leaq _Z26matrixMultiplicationKernelPfS_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 .LFE2057: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .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 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC14: .long 805306368 .section .rodata.cst16,"aM",@progbits,16 .align 16 .LC18: .long 2147483647 .long 0 .long 0 .long 0 .section .rodata.cst8,"aM",@progbits,8 .align 8 .LC19: .long -755914244 .long 1062232653 .ident "GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.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:
code for sm_89 Function : _Z26matrixMultiplicationKernelPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00 */ /*0010*/ S2R R0, SR_CTAID.X ; /* 0x0000000000007919 */ /* 0x000e280000002500 */ /*0020*/ S2R R3, SR_TID.X ; /* 0x0000000000037919 */ /* 0x000e280000002100 */ /*0030*/ S2R R21, SR_CTAID.Y ; /* 0x0000000000157919 */ /* 0x000e680000002600 */ /*0040*/ S2R R2, SR_TID.Y ; /* 0x0000000000027919 */ /* 0x000e620000002200 */ /*0050*/ IMAD R0, R0, c[0x0][0x0], R3 ; /* 0x0000000000007a24 */ /* 0x001fca00078e0203 */ /*0060*/ ISETP.GE.AND P0, PT, R0, c[0x0][0x178], PT ; /* 0x00005e0000007a0c */ /* 0x000fe20003f06270 */ /*0070*/ IMAD R21, R21, c[0x0][0x4], R2 ; /* 0x0000010015157a24 */ /* 0x002fca00078e0202 */ /*0080*/ ISETP.GE.OR P0, PT, R21, c[0x0][0x178], P0 ; /* 0x00005e0015007a0c */ /* 0x000fda0000706670 */ /*0090*/ @P0 EXIT ; /* 0x000000000000094d */ /* 0x000fea0003800000 */ /*00a0*/ MOV R19, c[0x0][0x178] ; /* 0x00005e0000137a02 */ /* 0x000fe20000000f00 */ /*00b0*/ ULDC.64 UR4, c[0x0][0x118] ; /* 0x0000460000047ab9 */ /* 0x000fe20000000a00 */ /*00c0*/ IMAD R21, R21, c[0x0][0x178], RZ ; /* 0x00005e0015157a24 */ /* 0x000fe200078e02ff */ /*00d0*/ MOV R34, RZ ; /* 0x000000ff00227202 */ /* 0x000fe40000000f00 */ /*00e0*/ ISETP.GE.AND P0, PT, R19, 0x1, PT ; /* 0x000000011300780c */ /* 0x000fda0003f06270 */ /*00f0*/ @!P0 BRA 0xc20 ; /* 0x00000b2000008947 */ /* 0x000fea0003800000 */ /*0100*/ IADD3 R2, R19.reuse, -0x1, RZ ; /* 0xffffffff13027810 */ /* 0x040fe40007ffe0ff */ /*0110*/ LOP3.LUT R20, R19, 0x3, RZ, 0xc0, !PT ; /* 0x0000000313147812 */ /* 0x000fe400078ec0ff */ /*0120*/ ISETP.GE.U32.AND P0, PT, R2, 0x3, PT ; /* 0x000000030200780c */ /* 0x000fe40003f06070 */ /*0130*/ MOV R34, RZ ; /* 0x000000ff00227202 */ /* 0x000fe40000000f00 */ /*0140*/ MOV R18, RZ ; /* 0x000000ff00127202 */ /* 0x000fd20000000f00 */ /*0150*/ @!P0 BRA 0xb00 ; /* 0x000009a000008947 */ /* 0x000fea0003800000 */ /*0160*/ IADD3 R22, -R20, c[0x0][0x178], RZ ; /* 0x00005e0014167a10 */ /* 0x000fe20007ffe1ff */ /*0170*/ ULDC.64 UR6, c[0x0][0x160] ; /* 0x0000580000067ab9 */ /* 0x000fe20000000a00 */ /*0180*/ MOV R7, 0x4 ; /* 0x0000000400077802 */ /* 0x000fe40000000f00 */ /*0190*/ ISETP.GT.AND P0, PT, R22, RZ, PT ; /* 0x000000ff1600720c */ /* 0x000fe40003f04270 */ /*01a0*/ MOV R34, RZ ; /* 0x000000ff00227202 */ /* 0x000fe20000000f00 */ /*01b0*/ IMAD.WIDE R6, R0, R7, c[0x0][0x168] ; /* 0x00005a0000067625 */ /* 0x000fe200078e0207 */ /*01c0*/ MOV R18, RZ ; /* 0x000000ff00127202 */ /* 0x000fd20000000f00 */ /*01d0*/ @!P0 BRA 0x970 ; /* 0x0000079000008947 */ /* 0x000fea0003800000 */ /*01e0*/ ISETP.GT.AND P1, PT, R22, 0xc, PT ; /* 0x0000000c1600780c */ /* 0x000fe40003f24270 */ /*01f0*/ PLOP3.LUT P0, PT, PT, PT, PT, 0x80, 0x0 ; /* 0x000000000000781c */ /* 0x000fd60003f0f070 */ /*0200*/ @!P1 BRA 0x6b0 ; /* 0x000004a000009947 */ /* 0x000fea0003800000 */ /*0210*/ PLOP3.LUT P0, PT, PT, PT, PT, 0x8, 0x0 ; /* 0x000000000000781c */ /* 0x000fe40003f0e170 */ /*0220*/ MOV R2, UR6 ; /* 0x0000000600027c02 */ /* 0x000fe20008000f00 */ /*0230*/ IMAD.WIDE R4, R19, 0x4, R6 ; /* 0x0000000413047825 */ /* 0x000fe200078e0206 */ /*0240*/ MOV R3, UR7 ; /* 0x0000000700037c02 */ /* 0x000fe20008000f00 */ /*0250*/ LDG.E R35, [R6.64] ; /* 0x0000000406237981 */ /* 0x0000a8000c1e1900 */ /*0260*/ IMAD.WIDE R2, R21, 0x4, R2 ; /* 0x0000000415027825 */ /* 0x000fe200078e0202 */ /*0270*/ LDG.E R27, [R4.64] ; /* 0x00000004041b7981 */ /* 0x0002e8000c1e1900 */ /*0280*/ LDG.E R36, [R2.64] ; /* 0x0000000402247981 */ /* 0x000ea2000c1e1900 */ /*0290*/ IMAD.WIDE R10, R19, 0x4, R4 ; /* 0x00000004130a7825 */ /* 0x000fc600078e0204 */ /*02a0*/ LDG.E R28, [R2.64+0x4] ; /* 0x00000404021c7981 */ /* 0x000ee6000c1e1900 */ /*02b0*/ IMAD.WIDE R12, R19.reuse, 0x4, R10 ; /* 0x00000004130c7825 */ /* 0x040fe200078e020a */ /*02c0*/ LDG.E R26, [R10.64] ; /* 0x000000040a1a7981 */ /* 0x000968000c1e1900 */ /*02d0*/ LDG.E R25, [R2.64+0x8] ; /* 0x0000080402197981 */ /* 0x000f68000c1e1900 */ /*02e0*/ LDG.E R24, [R12.64] ; /* 0x000000040c187981 */ /* 0x000168000c1e1900 */ /*02f0*/ LDG.E R23, [R2.64+0xc] ; /* 0x00000c0402177981 */ /* 0x000f62000c1e1900 */ /*0300*/ IMAD.WIDE R16, R19, 0x4, R12 ; /* 0x0000000413107825 */ /* 0x000fc600078e020c */ /*0310*/ LDG.E R30, [R2.64+0x10] ; /* 0x00001004021e7981 */ /* 0x000f66000c1e1900 */ /*0320*/ IMAD.WIDE R14, R19.reuse, 0x4, R16 ; /* 0x00000004130e7825 */ /* 0x040fe200078e0210 */ /*0330*/ LDG.E R29, [R16.64] ; /* 0x00000004101d7981 */ /* 0x000168000c1e1900 */ /*0340*/ LDG.E R31, [R2.64+0x14] ; /* 0x00001404021f7981 */ /* 0x000f62000c1e1900 */ /*0350*/ IMAD.WIDE R8, R19, 0x4, R14 ; /* 0x0000000413087825 */ /* 0x000fc600078e020e */ /*0360*/ LDG.E R14, [R14.64] ; /* 0x000000040e0e7981 */ /* 0x000966000c1e1900 */ /*0370*/ IMAD.WIDE R4, R19.reuse, 0x4, R8 ; /* 0x0000000413047825 */ /* 0x042fe200078e0208 */ /*0380*/ LDG.E R32, [R8.64] ; /* 0x0000000408207981 */ /* 0x000368000c1e1900 */ /*0390*/ LDG.E R33, [R2.64+0x18] ; /* 0x0000180402217981 */ /* 0x000f62000c1e1900 */ /*03a0*/ IMAD.WIDE R6, R19, 0x4, R4 ; /* 0x0000000413067825 */ /* 0x001fc600078e0204 */ /*03b0*/ LDG.E R15, [R4.64] ; /* 0x00000004040f7981 */ /* 0x010126000c1e1900 */ /*03c0*/ IMAD.WIDE R10, R19.reuse, 0x4, R6 ; /* 0x00000004130a7825 */ /* 0x040fe200078e0206 */ /*03d0*/ LDG.E R37, [R2.64+0x1c] ; /* 0x00001c0402257981 */ /* 0x000f28000c1e1900 */ /*03e0*/ LDG.E R6, [R6.64] ; /* 0x0000000406067981 */ /* 0x000122000c1e1900 */ /*03f0*/ IMAD.WIDE R12, R19, 0x4, R10 ; /* 0x00000004130c7825 */ /* 0x000fcc00078e020a */ /*0400*/ IMAD.WIDE R16, R19.reuse, 0x4, R12 ; /* 0x0000000413107825 */ /* 0x040fe400078e020c */ /*0410*/ LDG.E R12, [R12.64] ; /* 0x000000040c0c7981 */ /* 0x000528000c1e1900 */ /*0420*/ IMAD.WIDE R8, R19.reuse, 0x4, R16 ; /* 0x0000000413087825 */ /* 0x042fe200078e0210 */ /*0430*/ LDG.E R7, [R2.64+0x2c] ; /* 0x00002c0402077981 */ /* 0x001f28000c1e1900 */ /*0440*/ LDG.E R16, [R16.64] ; /* 0x0000000410107981 */ /* 0x000122000c1e1900 */ /*0450*/ IMAD.WIDE R4, R19, 0x4, R8 ; /* 0x0000000413047825 */ /* 0x000fc600078e0208 */ /*0460*/ LDG.E R8, [R8.64] ; /* 0x0000000408087981 */ /* 0x000f28000c1e1900 */ /*0470*/ LDG.E R17, [R2.64+0x38] ; /* 0x0000380402117981 */ /* 0x001f22000c1e1900 */ /*0480*/ FFMA R36, R35, R36, R34 ; /* 0x0000002423247223 */ /* 0x004fc60000000022 */ /*0490*/ LDG.E R35, [R2.64+0x20] ; /* 0x0000200402237981 */ /* 0x000ea2000c1e1900 */ /*04a0*/ FFMA R36, R27, R28, R36 ; /* 0x0000001c1b247223 */ /* 0x008fc60000000024 */ /*04b0*/ LDG.E R34, [R10.64] ; /* 0x000000040a227981 */ /* 0x0000e8000c1e1900 */ /*04c0*/ LDG.E R27, [R2.64+0x24] ; /* 0x00002404021b7981 */ /* 0x000ee8000c1e1900 */ /*04d0*/ LDG.E R28, [R2.64+0x28] ; /* 0x00002804021c7981 */ /* 0x000ee2000c1e1900 */ /*04e0*/ FFMA R25, R26, R25, R36 ; /* 0x000000191a197223 */ /* 0x020fc60000000024 */ /*04f0*/ LDG.E R36, [R2.64+0x34] ; /* 0x0000340402247981 */ /* 0x000f62000c1e1900 */ /*0500*/ FFMA R26, R24, R23, R25 ; /* 0x00000017181a7223 */ /* 0x000fe20000000019 */ /*0510*/ IMAD.WIDE R24, R19.reuse, 0x4, R4 ; /* 0x0000000413187825 */ /* 0x040fe400078e0204 */ /*0520*/ LDG.E R23, [R2.64+0x30] ; /* 0x0000300402177981 */ /* 0x000f68000c1e1900 */ /*0530*/ LDG.E R4, [R4.64] ; /* 0x0000000404047981 */ /* 0x000362000c1e1900 */ /*0540*/ IMAD.WIDE R10, R19, 0x4, R24 ; /* 0x00000004130a7825 */ /* 0x001fc600078e0218 */ /*0550*/ LDG.E R13, [R24.64] ; /* 0x00000004180d7981 */ /* 0x000168000c1e1900 */ /*0560*/ LDG.E R5, [R10.64] ; /* 0x000000040a057981 */ /* 0x002f68000c1e1900 */ /*0570*/ LDG.E R24, [R2.64+0x3c] ; /* 0x00003c0402187981 */ /* 0x001f62000c1e1900 */ /*0580*/ FFMA R29, R29, R30, R26 ; /* 0x0000001e1d1d7223 */ /* 0x000fc8000000001a */ /*0590*/ FFMA R29, R14, R31, R29 ; /* 0x0000001f0e1d7223 */ /* 0x000fc8000000001d */ /*05a0*/ FFMA R32, R32, R33, R29 ; /* 0x0000002120207223 */ /* 0x000fc8000000001d */ /*05b0*/ FFMA R15, R15, R37, R32 ; /* 0x000000250f0f7223 */ /* 0x010fe20000000020 */ /*05c0*/ IADD3 R22, R22, -0x10, RZ ; /* 0xfffffff016167810 */ /* 0x000fc80007ffe0ff */ /*05d0*/ ISETP.GT.AND P1, PT, R22, 0xc, PT ; /* 0x0000000c1600780c */ /* 0x000fe20003f24270 */ /*05e0*/ UIADD3 UR6, UP0, UR6, 0x40, URZ ; /* 0x0000004006067890 */ /* 0x000fe2000ff1e03f */ /*05f0*/ IADD3 R18, R18, 0x10, RZ ; /* 0x0000001012127810 */ /* 0x000fc60007ffe0ff */ /*0600*/ UIADD3.X UR7, URZ, UR7, URZ, UP0, !UPT ; /* 0x000000073f077290 */ /* 0x000fe200087fe43f */ /*0610*/ FFMA R15, R6, R35, R15 ; /* 0x00000023060f7223 */ /* 0x004fc8000000000f */ /*0620*/ FFMA R15, R34, R27, R15 ; /* 0x0000001b220f7223 */ /* 0x008fc8000000000f */ /*0630*/ FFMA R15, R12, R28, R15 ; /* 0x0000001c0c0f7223 */ /* 0x000fc8000000000f */ /*0640*/ FFMA R7, R16, R7, R15 ; /* 0x0000000710077223 */ /* 0x000fc8000000000f */ /*0650*/ FFMA R7, R8, R23, R7 ; /* 0x0000001708077223 */ /* 0x020fc80000000007 */ /*0660*/ FFMA R4, R4, R36, R7 ; /* 0x0000002404047223 */ /* 0x000fc80000000007 */ /*0670*/ FFMA R4, R13, R17, R4 ; /* 0x000000110d047223 */ /* 0x000fe20000000004 */ /*0680*/ IMAD.WIDE R6, R19, 0x4, R10 ; /* 0x0000000413067825 */ /* 0x000fc600078e020a */ /*0690*/ FFMA R34, R5, R24, R4 ; /* 0x0000001805227223 */ /* 0x000fe20000000004 */ /*06a0*/ @P1 BRA 0x220 ; /* 0xfffffb7000001947 */ /* 0x000fea000383ffff */ /*06b0*/ ISETP.GT.AND P1, PT, R22, 0x4, PT ; /* 0x000000041600780c */ /* 0x000fda0003f24270 */ /*06c0*/ @!P1 BRA 0x950 ; /* 0x0000028000009947 */ /* 0x000fea0003800000 */ /*06d0*/ IMAD.WIDE R16, R19, 0x4, R6 ; /* 0x0000000413107825 */ /* 0x000fe200078e0206 */ /*06e0*/ MOV R2, UR6 ; /* 0x0000000600027c02 */ /* 0x000fe20008000f00 */ /*06f0*/ LDG.E R13, [R6.64] ; /* 0x00000004060d7981 */ /* 0x0000a2000c1e1900 */ /*0700*/ MOV R3, UR7 ; /* 0x0000000700037c02 */ /* 0x000fc60008000f00 */ /*0710*/ IMAD.WIDE R24, R19, 0x4, R16 ; /* 0x0000000413187825 */ /* 0x000fe200078e0210 */ /*0720*/ LDG.E R14, [R16.64] ; /* 0x00000004100e7981 */ /* 0x0002e6000c1e1900 */ /*0730*/ IMAD.WIDE R2, R21, 0x4, R2 ; /* 0x0000000415027825 */ /* 0x000fc800078e0202 */ /*0740*/ IMAD.WIDE R26, R19.reuse, 0x4, R24 ; /* 0x00000004131a7825 */ /* 0x040fe200078e0218 */ /*0750*/ LDG.E R12, [R2.64] ; /* 0x00000004020c7981 */ /* 0x000ea8000c1e1900 */ /*0760*/ LDG.E R15, [R2.64+0x4] ; /* 0x00000404020f7981 */ /* 0x000ee2000c1e1900 */ /*0770*/ IMAD.WIDE R4, R19, 0x4, R26 ; /* 0x0000000413047825 */ /* 0x000fc600078e021a */ /*0780*/ LDG.E R24, [R24.64] ; /* 0x0000000418187981 */ /* 0x000968000c1e1900 */ /*0790*/ LDG.E R23, [R2.64+0x8] ; /* 0x0000080402177981 */ /* 0x000f62000c1e1900 */ /*07a0*/ IMAD.WIDE R8, R19, 0x4, R4 ; /* 0x0000000413087825 */ /* 0x000fc600078e0204 */ /*07b0*/ LDG.E R26, [R26.64] ; /* 0x000000041a1a7981 */ /* 0x000168000c1e1900 */ /*07c0*/ LDG.E R28, [R2.64+0xc] ; /* 0x00000c04021c7981 */ /* 0x000f62000c1e1900 */ /*07d0*/ IMAD.WIDE R10, R19, 0x4, R8 ; /* 0x00000004130a7825 */ /* 0x000fc600078e0208 */ /*07e0*/ LDG.E R4, [R4.64] ; /* 0x0000000404047981 */ /* 0x000f68000c1e1900 */ /*07f0*/ LDG.E R29, [R2.64+0x10] ; /* 0x00001004021d7981 */ /* 0x000f62000c1e1900 */ /*0800*/ IMAD.WIDE R6, R19, 0x4, R10 ; /* 0x0000000413067825 */ /* 0x001fc600078e020a */ /*0810*/ LDG.E R9, [R8.64] ; /* 0x0000000408097981 */ /* 0x000f68000c1e1900 */ /*0820*/ LDG.E R16, [R2.64+0x14] ; /* 0x0000140402107981 */ /* 0x002f68000c1e1900 */ /*0830*/ LDG.E R17, [R10.64] ; /* 0x000000040a117981 */ /* 0x000f68000c1e1900 */ /*0840*/ LDG.E R25, [R2.64+0x18] ; /* 0x0000180402197981 */ /* 0x010f28000c1e1900 */ /*0850*/ LDG.E R30, [R2.64+0x1c] ; /* 0x00001c04021e7981 */ /* 0x000f28000c1e1900 */ /*0860*/ LDG.E R27, [R6.64] ; /* 0x00000004061b7981 */ /* 0x000122000c1e1900 */ /*0870*/ UIADD3 UR6, UP0, UR6, 0x20, URZ ; /* 0x0000002006067890 */ /* 0x000fe2000ff1e03f */ /*0880*/ PLOP3.LUT P0, PT, PT, PT, PT, 0x8, 0x0 ; /* 0x000000000000781c */ /* 0x000fc40003f0e170 */ /*0890*/ IADD3 R18, R18, 0x8, RZ ; /* 0x0000000812127810 */ /* 0x000fe40007ffe0ff */ /*08a0*/ IADD3 R22, R22, -0x8, RZ ; /* 0xfffffff816167810 */ /* 0x000fe20007ffe0ff */ /*08b0*/ UIADD3.X UR7, URZ, UR7, URZ, UP0, !UPT ; /* 0x000000073f077290 */ /* 0x000fe200087fe43f */ /*08c0*/ IMAD.WIDE R6, R19, 0x4, R6 ; /* 0x0000000413067825 */ /* 0x001fe200078e0206 */ /*08d0*/ FFMA R13, R13, R12, R34 ; /* 0x0000000c0d0d7223 */ /* 0x004fc80000000022 */ /*08e0*/ FFMA R13, R14, R15, R13 ; /* 0x0000000f0e0d7223 */ /* 0x008fc8000000000d */ /*08f0*/ FFMA R13, R24, R23, R13 ; /* 0x00000017180d7223 */ /* 0x020fc8000000000d */ /*0900*/ FFMA R13, R26, R28, R13 ; /* 0x0000001c1a0d7223 */ /* 0x000fc8000000000d */ /*0910*/ FFMA R4, R4, R29, R13 ; /* 0x0000001d04047223 */ /* 0x000fc8000000000d */ /*0920*/ FFMA R4, R9, R16, R4 ; /* 0x0000001009047223 */ /* 0x000fc80000000004 */ /*0930*/ FFMA R4, R17, R25, R4 ; /* 0x0000001911047223 */ /* 0x010fc80000000004 */ /*0940*/ FFMA R34, R27, R30, R4 ; /* 0x0000001e1b227223 */ /* 0x000fe20000000004 */ /*0950*/ ISETP.NE.OR P0, PT, R22, RZ, P0 ; /* 0x000000ff1600720c */ /* 0x000fda0000705670 */ /*0960*/ @!P0 BRA 0xb00 ; /* 0x0000019000008947 */ /* 0x000fea0003800000 */ /*0970*/ MOV R2, UR6 ; /* 0x0000000600027c02 */ /* 0x000fe20008000f00 */ /*0980*/ IMAD.WIDE R8, R19, 0x4, R6 ; /* 0x0000000413087825 */ /* 0x000fe200078e0206 */ /*0990*/ MOV R3, UR7 ; /* 0x0000000700037c02 */ /* 0x000fe20008000f00 */ /*09a0*/ LDG.E R7, [R6.64] ; /* 0x0000000406077981 */ /* 0x000ea8000c1e1900 */ /*09b0*/ IMAD.WIDE R4, R21, 0x4, R2 ; /* 0x0000000415047825 */ /* 0x000fc800078e0202 */ /*09c0*/ IMAD.WIDE R10, R19.reuse, 0x4, R8 ; /* 0x00000004130a7825 */ /* 0x040fe200078e0208 */ /*09d0*/ LDG.E R12, [R4.64] ; /* 0x00000004040c7981 */ /* 0x000ea8000c1e1900 */ /*09e0*/ LDG.E R9, [R8.64] ; /* 0x0000000408097981 */ /* 0x000ee2000c1e1900 */ /*09f0*/ IMAD.WIDE R2, R19, 0x4, R10 ; /* 0x0000000413027825 */ /* 0x000fc600078e020a */ /*0a00*/ LDG.E R13, [R4.64+0x4] ; /* 0x00000404040d7981 */ /* 0x000ee8000c1e1900 */ /*0a10*/ LDG.E R15, [R10.64] ; /* 0x000000040a0f7981 */ /* 0x000f28000c1e1900 */ /*0a20*/ LDG.E R14, [R4.64+0x8] ; /* 0x00000804040e7981 */ /* 0x000f28000c1e1900 */ /*0a30*/ LDG.E R16, [R4.64+0xc] ; /* 0x00000c0404107981 */ /* 0x000f68000c1e1900 */ /*0a40*/ LDG.E R17, [R2.64] ; /* 0x0000000402117981 */ /* 0x000f62000c1e1900 */ /*0a50*/ IADD3 R22, R22, -0x4, RZ ; /* 0xfffffffc16167810 */ /* 0x000fc80007ffe0ff */ /*0a60*/ ISETP.NE.AND P0, PT, R22, RZ, PT ; /* 0x000000ff1600720c */ /* 0x000fe20003f05270 */ /*0a70*/ UIADD3 UR6, UP0, UR6, 0x10, URZ ; /* 0x0000001006067890 */ /* 0x000fe2000ff1e03f */ /*0a80*/ IADD3 R18, R18, 0x4, RZ ; /* 0x0000000412127810 */ /* 0x000fc60007ffe0ff */ /*0a90*/ UIADD3.X UR7, URZ, UR7, URZ, UP0, !UPT ; /* 0x000000073f077290 */ /* 0x000fe200087fe43f */ /*0aa0*/ FFMA R12, R7, R12, R34 ; /* 0x0000000c070c7223 */ /* 0x004fc80000000022 */ /*0ab0*/ FFMA R12, R9, R13, R12 ; /* 0x0000000d090c7223 */ /* 0x008fe2000000000c */ /*0ac0*/ IMAD.WIDE R6, R19, 0x4, R2 ; /* 0x0000000413067825 */ /* 0x000fc600078e0202 */ /*0ad0*/ FFMA R12, R15, R14, R12 ; /* 0x0000000e0f0c7223 */ /* 0x010fc8000000000c */ /*0ae0*/ FFMA R34, R17, R16, R12 ; /* 0x0000001011227223 */ /* 0x020fe2000000000c */ /*0af0*/ @P0 BRA 0x970 ; /* 0xfffffe7000000947 */ /* 0x000fea000383ffff */ /*0b00*/ ISETP.NE.AND P0, PT, R20, RZ, PT ; /* 0x000000ff1400720c */ /* 0x000fda0003f05270 */ /*0b10*/ @!P0 BRA 0xc20 ; /* 0x0000010000008947 */ /* 0x000fea0003800000 */ /*0b20*/ IADD3 R2, R21, R18, RZ ; /* 0x0000001215027210 */ /* 0x000fe20007ffe0ff */ /*0b30*/ IMAD R4, R18, c[0x0][0x178], R0 ; /* 0x00005e0012047a24 */ /* 0x000fe200078e0200 */ /*0b40*/ MOV R5, 0x4 ; /* 0x0000000400057802 */ /* 0x000fca0000000f00 */ /*0b50*/ IMAD.WIDE R2, R2, R5, c[0x0][0x160] ; /* 0x0000580002027625 */ /* 0x000fc800078e0205 */ /*0b60*/ IMAD.WIDE R4, R4, R5, c[0x0][0x168] ; /* 0x00005a0004047625 */ /* 0x000fe200078e0205 */ /*0b70*/ MOV R6, R2 ; /* 0x0000000200067202 */ /* 0x000fc80000000f00 */ /*0b80*/ MOV R2, R6 ; /* 0x0000000600027202 */ /* 0x000fe20000000f00 */ /*0b90*/ LDG.E R7, [R4.64] ; /* 0x0000000404077981 */ /* 0x0000aa000c1e1900 */ /*0ba0*/ LDG.E R2, [R2.64] ; /* 0x0000000402027981 */ /* 0x0002a2000c1e1900 */ /*0bb0*/ IADD3 R20, R20, -0x1, RZ ; /* 0xffffffff14147810 */ /* 0x000fe40007ffe0ff */ /*0bc0*/ IADD3 R6, P1, R6, 0x4, RZ ; /* 0x0000000406067810 */ /* 0x000fc40007f3e0ff */ /*0bd0*/ ISETP.NE.AND P0, PT, R20, RZ, PT ; /* 0x000000ff1400720c */ /* 0x000fe20003f05270 */ /*0be0*/ IMAD.WIDE R4, R19, 0x4, R4 ; /* 0x0000000413047825 */ /* 0x001fe200078e0204 */ /*0bf0*/ IADD3.X R3, RZ, R3, RZ, P1, !PT ; /* 0x00000003ff037210 */ /* 0x002fe20000ffe4ff */ /*0c00*/ FFMA R34, R7, R2, R34 ; /* 0x0000000207227223 */ /* 0x004fd40000000022 */ /*0c10*/ @P0 BRA 0xb80 ; /* 0xffffff6000000947 */ /* 0x000fea000383ffff */ /*0c20*/ IADD3 R2, R0, R21, RZ ; /* 0x0000001500027210 */ /* 0x000fe40007ffe0ff */ /*0c30*/ MOV R3, 0x4 ; /* 0x0000000400037802 */ /* 0x000fca0000000f00 */ /*0c40*/ IMAD.WIDE R2, R2, R3, c[0x0][0x170] ; /* 0x00005c0002027625 */ /* 0x000fca00078e0203 */ /*0c50*/ STG.E [R2.64], R34 ; /* 0x0000002202007986 */ /* 0x000fe2000c101904 */ /*0c60*/ EXIT ; /* 0x000000000000794d */ /* 0x000fea0003800000 */ /*0c70*/ BRA 0xc70; /* 0xfffffff000007947 */ /* 0x000fc0000383ffff */ /*0c80*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0c90*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0ca0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0cb0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0cc0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0cd0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0ce0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0cf0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ ..........
/* * main.cu * * Created on: Nov 14, 2019 * Author: cuda-s01 */ #include <hip/hip_runtime.h> #include <stdio.h> __global__ void matrixMultiplicationKernel(float* M, float* N, float* P, int Width) { // Calculate the row index of the P element and M int Row = blockIdx.y*blockDim.y+threadIdx.y; // Calculate the column index of P and N int Col = blockIdx.x*blockDim.x+threadIdx.x; if ((Row < Width) && (Col < Width)) { float Pvalue = 0; // each thread computes one element of the block sub-matrix for (int k = 0; k < Width; ++k) { Pvalue += M[Row*Width+k]*N[k*Width+Col]; } P[Row*Width+Col] = Pvalue; } } void matrixMultiplication(float *M, float *N, float *P, int Width){ // declare the number of blocks per grid and the number of threads per block int th = Width; int bl= 1; dim3 threadsPerBlock(th,th); dim3 blocksPerGrid(bl,bl); printf("Kernel started: %d blocks, %d threads.\n", bl,th); matrixMultiplicationKernel<<<blocksPerGrid,threadsPerBlock>>>(M, N, P, Width); } void PrintMatrix(float* M, int Width) { for(int i = 0; i < Width; i++) { for(int j = 0; j < Width; j++) printf("%f ",M[i*Width+j]); printf("\n"); } printf("\n"); } int main(void) { printf("Starting the program:\n"); hipError_t err = hipSuccess; int matrix_size = 100; int num_of_elements = matrix_size * matrix_size; size_t size = num_of_elements * sizeof(float); printf("matrix [%d x %d] multiplication.\n", matrix_size, matrix_size); //==========================Shared Memory============================================ //allocate matrixes on the device: printf("Started variables allocation for the device.\n"); printf("First matrix.\n"); float *M; err = hipMallocManaged((void**)&M, size); if(err != hipSuccess) { fprintf(stderr, "Failed to allocate M matrix!\n"); exit(EXIT_FAILURE); } else printf("Allocation successful.\n"); printf("Second matrix.\n"); float *N; err = hipMallocManaged((void**)&N, size); if(err != hipSuccess) { fprintf(stderr, "Failed to allocate N matrix!\n"); exit(EXIT_FAILURE); } else printf("Allocation successful.\n"); printf("Third matrix.\n"); float *P; err = hipMallocManaged((void**)&P, size); if(err != hipSuccess) { fprintf(stderr, "Failed to allocate P matrix!\n"); exit(EXIT_FAILURE); } else printf("Allocation successful.\n"); //initialisation: for(int i=0; i<num_of_elements; i++) { M[i] = rand()/(float)RAND_MAX; N[i] = rand()/(float)RAND_MAX; } printf("Initialisation finished.\n"); //calculations: matrixMultiplication(M, N, P, matrix_size); err = hipGetLastError(); if(err != hipSuccess) { fprintf(stderr, "Failed to launch kernel. Error: %s.\n", hipGetErrorString(err)); exit(EXIT_FAILURE); } else printf("Kerel operations successful.\n"); //==========================TEST=============================================== PrintMatrix(M, matrix_size); PrintMatrix(N, matrix_size); PrintMatrix(P, matrix_size); for(int i = 0; i < matrix_size; i++) { for(int j = 0; j < matrix_size; j++) { float tmp = 0; for(int k = 0; k < matrix_size; k++) tmp += M[i*matrix_size + k] * N[k*matrix_size + j]; //debug line: //printf("%f ",tmp); if(fabs(tmp - P[i*matrix_size + j]) > 1e-3) { fprintf(stderr, "Verification test failed.!\nElement at index (%d, %d) should be %f, but is %f. \n", i,j,tmp,P[i*matrix_size + j]); exit(EXIT_FAILURE); } } } printf("Test PASSED\n"); // Free device global memory err = hipFree(M); if (err != hipSuccess) { fprintf(stderr, "Failed to free device matrix M (error code %s)!\n", hipGetErrorString(err)); exit(EXIT_FAILURE); } err = hipFree(N); if (err != hipSuccess) { fprintf(stderr, "Failed to free device matrix N (error code %s)!\n", hipGetErrorString(err)); exit(EXIT_FAILURE); } err = hipFree(P); if (err != hipSuccess) { fprintf(stderr, "Failed to free device matrix P (error code %s)!\n", hipGetErrorString(err)); exit(EXIT_FAILURE); } printf("Done\n"); return 0; }
.text .file "main.hip" .globl _Z41__device_stub__matrixMultiplicationKernelPfS_S_i # -- Begin function _Z41__device_stub__matrixMultiplicationKernelPfS_S_i .type _Z41__device_stub__matrixMultiplicationKernelPfS_S_i,@function _Z41__device_stub__matrixMultiplicationKernelPfS_S_i: # @_Z41__device_stub__matrixMultiplicationKernelPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r13 .cfi_def_cfa_offset 32 pushq %r12 .cfi_def_cfa_offset 40 pushq %rbx .cfi_def_cfa_offset 48 subq $112, %rsp .cfi_def_cfa_offset 160 .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r13, -32 .cfi_offset %r14, -24 .cfi_offset %r15, -16 leaq 40(%rsp), %rax movq %rdi, (%rax) leaq 32(%rsp), %rdi movq %rsi, (%rdi) leaq 24(%rsp), %rsi movq %rdx, (%rsi) leaq 4(%rsp), %rdx movl %ecx, (%rdx) leaq 80(%rsp), %rbx movq %rax, (%rbx) movq %rdi, 8(%rbx) movq %rsi, 16(%rbx) movq %rdx, 24(%rbx) leaq 64(%rsp), %r14 leaq 48(%rsp), %r15 leaq 16(%rsp), %r12 leaq 8(%rsp), %r13 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx movq %r13, %rcx callq __hipPopCallConfiguration movq (%r14), %rsi movl 8(%r14), %edx movq (%r15), %rcx movl 8(%r15), %r8d movl $_Z26matrixMultiplicationKernelPfS_S_i, %edi movq %rbx, %r9 pushq (%r13) .cfi_adjust_cfa_offset 8 pushq (%r12) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel addq $128, %rsp .cfi_adjust_cfa_offset -128 popq %rbx .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 retq .Lfunc_end0: .size _Z41__device_stub__matrixMultiplicationKernelPfS_S_i, .Lfunc_end0-_Z41__device_stub__matrixMultiplicationKernelPfS_S_i .cfi_endproc # -- End function .globl _Z20matrixMultiplicationPfS_S_i # -- Begin function _Z20matrixMultiplicationPfS_S_i .type _Z20matrixMultiplicationPfS_S_i,@function _Z20matrixMultiplicationPfS_S_i: # @_Z20matrixMultiplicationPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r13 .cfi_def_cfa_offset 32 pushq %r12 .cfi_def_cfa_offset 40 pushq %rbx .cfi_def_cfa_offset 48 .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r13, -32 .cfi_offset %r14, -24 .cfi_offset %r15, -16 movl %ecx, %ebx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 movl %ecx, %eax movq %rax, %r13 shlq $32, %r13 orq %rax, %r13 movl $.L.str, %edi movl $1, %esi movl %ecx, %edx xorl %eax, %eax callq printf movabsq $4294967297, %rdi # imm = 0x100000001 movl $1, %esi movq %r13, %rdx movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration testl %eax, %eax je .LBB1_2 # %bb.1: popq %rbx .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 retq .LBB1_2: .cfi_def_cfa_offset 48 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx movl %ebx, %ecx popq %rbx .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 jmp _Z41__device_stub__matrixMultiplicationKernelPfS_S_i # TAILCALL .Lfunc_end1: .size _Z20matrixMultiplicationPfS_S_i, .Lfunc_end1-_Z20matrixMultiplicationPfS_S_i .cfi_endproc # -- End function .globl _Z11PrintMatrixPfi # -- Begin function _Z11PrintMatrixPfi .type _Z11PrintMatrixPfi,@function _Z11PrintMatrixPfi: # @_Z11PrintMatrixPfi .cfi_startproc # %bb.0: 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 pushq %rax .cfi_def_cfa_offset 64 .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 .cfi_offset %rbp, -16 movq %rdi, (%rsp) # 8-byte Spill testl %esi, %esi jle .LBB2_5 # %bb.1: # %.preheader.lr.ph movl %esi, %ebx movl %esi, %r15d xorl %r12d, %r12d xorl %r13d, %r13d .LBB2_2: # %.lr.ph # =>This Loop Header: Depth=1 # Child Loop BB2_3 Depth 2 movl %r12d, %eax movq (%rsp), %rcx # 8-byte Reload leaq (%rcx,%rax,4), %rbp xorl %r14d, %r14d .LBB2_3: # Parent Loop BB2_2 Depth=1 # => This Inner Loop Header: Depth=2 xorps %xmm0, %xmm0 cvtss2sd (%rbp,%r14,4), %xmm0 movl $.L.str.1, %edi movb $1, %al callq printf incq %r14 cmpq %r14, %r15 jne .LBB2_3 # %bb.4: # %._crit_edge # in Loop: Header=BB2_2 Depth=1 movl $10, %edi callq putchar@PLT incq %r13 addl %ebx, %r12d cmpq %r15, %r13 jne .LBB2_2 .LBB2_5: # %._crit_edge14 movl $10, %edi addq $8, %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 jmp putchar@PLT # TAILCALL .Lfunc_end2: .size _Z11PrintMatrixPfi, .Lfunc_end2-_Z11PrintMatrixPfi .cfi_endproc # -- End function .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function main .LCPI3_0: .long 0x30000000 # float 4.65661287E-10 .section .rodata.cst16,"aM",@progbits,16 .p2align 4, 0x0 .LCPI3_1: .long 0x7fffffff # float NaN .long 0x7fffffff # float NaN .long 0x7fffffff # float NaN .long 0x7fffffff # float NaN .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 .LCPI3_2: .quad 0x3f50624dd2f1a9fc # double 0.001 .text .globl main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %rbx .cfi_def_cfa_offset 16 subq $32, %rsp .cfi_def_cfa_offset 48 .cfi_offset %rbx, -16 movl $.Lstr, %edi callq puts@PLT movl $.L.str.4, %edi movl $100, %esi movl $100, %edx xorl %eax, %eax callq printf movl $.Lstr.1, %edi callq puts@PLT movl $.Lstr.2, %edi callq puts@PLT leaq 16(%rsp), %rdi movl $40000, %esi # imm = 0x9C40 movl $1, %edx callq hipMallocManaged testl %eax, %eax jne .LBB3_18 # %bb.1: movl $.Lstr.7, %edi callq puts@PLT movl $.Lstr.4, %edi callq puts@PLT leaq 8(%rsp), %rdi movl $40000, %esi # imm = 0x9C40 movl $1, %edx callq hipMallocManaged testl %eax, %eax jne .LBB3_19 # %bb.2: movl $.Lstr.7, %edi callq puts@PLT movl $.Lstr.6, %edi callq puts@PLT leaq 24(%rsp), %rdi movl $40000, %esi # imm = 0x9C40 movl $1, %edx callq hipMallocManaged testl %eax, %eax jne .LBB3_20 # %bb.3: movl $.Lstr.7, %edi callq puts@PLT xorl %ebx, %ebx .LBB3_4: # =>This Inner Loop Header: Depth=1 callq rand xorps %xmm0, %xmm0 cvtsi2ss %eax, %xmm0 movss .LCPI3_0(%rip), %xmm1 # xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movq 16(%rsp), %rax movss %xmm0, (%rax,%rbx,4) callq rand xorps %xmm0, %xmm0 cvtsi2ss %eax, %xmm0 mulss .LCPI3_0(%rip), %xmm0 movq 8(%rsp), %rax movss %xmm0, (%rax,%rbx,4) incq %rbx cmpq $10000, %rbx # imm = 0x2710 jne .LBB3_4 # %bb.5: movl $.Lstr.8, %edi callq puts@PLT movq 16(%rsp), %rdi movq 8(%rsp), %rsi movq 24(%rsp), %rdx movl $100, %ecx callq _Z20matrixMultiplicationPfS_S_i callq hipGetLastError testl %eax, %eax jne .LBB3_23 # %bb.6: movl $.Lstr.9, %edi callq puts@PLT movq 16(%rsp), %rdi movl $100, %esi callq _Z11PrintMatrixPfi movq 8(%rsp), %rdi movl $100, %esi callq _Z11PrintMatrixPfi movq 24(%rsp), %rdi movl $100, %esi callq _Z11PrintMatrixPfi movq 16(%rsp), %rax movq 8(%rsp), %rsi xorl %edx, %edx movq 24(%rsp), %rdi movaps .LCPI3_1(%rip), %xmm0 # xmm0 = [NaN,NaN,NaN,NaN] movsd .LCPI3_2(%rip), %xmm1 # xmm1 = mem[0],zero .LBB3_7: # %.preheader79 # =>This Loop Header: Depth=1 # Child Loop BB3_8 Depth 2 # Child Loop BB3_9 Depth 3 imulq $400, %rdx, %r8 # imm = 0x190 addq %rdi, %r8 movq %rsi, %r9 xorl %ecx, %ecx .LBB3_8: # %.preheader # Parent Loop BB3_7 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB3_9 Depth 3 xorps %xmm2, %xmm2 movq %r9, %r10 xorl %r11d, %r11d .LBB3_9: # Parent Loop BB3_7 Depth=1 # Parent Loop BB3_8 Depth=2 # => This Inner Loop Header: Depth=3 movss (%rax,%r11,4), %xmm3 # xmm3 = mem[0],zero,zero,zero mulss (%r10), %xmm3 addss %xmm3, %xmm2 incq %r11 addq $400, %r10 # imm = 0x190 cmpq $100, %r11 jne .LBB3_9 # %bb.10: # in Loop: Header=BB3_8 Depth=2 movss (%r8,%rcx,4), %xmm3 # xmm3 = mem[0],zero,zero,zero movaps %xmm2, %xmm4 subss %xmm3, %xmm4 andps %xmm0, %xmm4 cvtss2sd %xmm4, %xmm4 ucomisd %xmm1, %xmm4 ja .LBB3_17 # %bb.11: # in Loop: Header=BB3_8 Depth=2 incq %rcx addq $4, %r9 cmpq $100, %rcx jne .LBB3_8 # %bb.12: # in Loop: Header=BB3_7 Depth=1 incq %rdx addq $400, %rax # imm = 0x190 cmpq $100, %rdx jne .LBB3_7 # %bb.13: movl $.Lstr.10, %edi callq puts@PLT movq 16(%rsp), %rdi callq hipFree testl %eax, %eax jne .LBB3_24 # %bb.14: movq 8(%rsp), %rdi callq hipFree testl %eax, %eax jne .LBB3_25 # %bb.15: movq 24(%rsp), %rdi callq hipFree testl %eax, %eax jne .LBB3_26 # %bb.16: movl $.Lstr.11, %edi callq puts@PLT xorl %eax, %eax addq $32, %rsp .cfi_def_cfa_offset 16 popq %rbx .cfi_def_cfa_offset 8 retq .LBB3_17: .cfi_def_cfa_offset 48 movq stderr(%rip), %rdi xorps %xmm0, %xmm0 cvtss2sd %xmm2, %xmm0 xorps %xmm1, %xmm1 cvtss2sd %xmm3, %xmm1 movl $.L.str.16, %esi # kill: def $edx killed $edx killed $rdx # kill: def $ecx killed $ecx killed $rcx movb $2, %al callq fprintf .LBB3_22: movl $1, %edi callq exit .LBB3_18: movq stderr(%rip), %rcx movl $.L.str.7, %edi jmp .LBB3_21 .LBB3_19: movq stderr(%rip), %rcx movl $.L.str.10, %edi jmp .LBB3_21 .LBB3_20: movq stderr(%rip), %rcx movl $.L.str.12, %edi .LBB3_21: movl $29, %esi movl $1, %edx callq fwrite@PLT jmp .LBB3_22 .LBB3_23: movq stderr(%rip), %rbx movl %eax, %edi callq hipGetErrorString movl $.L.str.14, %esi jmp .LBB3_27 .LBB3_24: movq stderr(%rip), %rbx movl %eax, %edi callq hipGetErrorString movl $.L.str.18, %esi jmp .LBB3_27 .LBB3_25: movq stderr(%rip), %rbx movl %eax, %edi callq hipGetErrorString movl $.L.str.19, %esi jmp .LBB3_27 .LBB3_26: movq stderr(%rip), %rbx movl %eax, %edi callq hipGetErrorString movl $.L.str.20, %esi .LBB3_27: movq %rbx, %rdi movq %rax, %rdx xorl %eax, %eax callq fprintf jmp .LBB3_22 .Lfunc_end3: .size main, .Lfunc_end3-main .cfi_endproc # -- End function .p2align 4, 0x90 # -- Begin function __hip_module_ctor .type __hip_module_ctor,@function __hip_module_ctor: # @__hip_module_ctor .cfi_startproc # %bb.0: subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB4_2 # %bb.1: movl $__hip_fatbin_wrapper, %edi callq __hipRegisterFatBinary movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB4_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movl $_Z26matrixMultiplicationKernelPfS_S_i, %esi movl $.L__unnamed_1, %edx movl $.L__unnamed_1, %ecx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction movl $__hip_module_dtor, %edi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit # TAILCALL .Lfunc_end4: .size __hip_module_ctor, .Lfunc_end4-__hip_module_ctor .cfi_endproc # -- End function .p2align 4, 0x90 # -- Begin function __hip_module_dtor .type __hip_module_dtor,@function __hip_module_dtor: # @__hip_module_dtor .cfi_startproc # %bb.0: movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB5_2 # %bb.1: pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary movq $0, __hip_gpubin_handle(%rip) addq $8, %rsp .cfi_def_cfa_offset 8 .LBB5_2: retq .Lfunc_end5: .size __hip_module_dtor, .Lfunc_end5-__hip_module_dtor .cfi_endproc # -- End function .type _Z26matrixMultiplicationKernelPfS_S_i,@object # @_Z26matrixMultiplicationKernelPfS_S_i .section .rodata,"a",@progbits .globl _Z26matrixMultiplicationKernelPfS_S_i .p2align 3, 0x0 _Z26matrixMultiplicationKernelPfS_S_i: .quad _Z41__device_stub__matrixMultiplicationKernelPfS_S_i .size _Z26matrixMultiplicationKernelPfS_S_i, 8 .type .L.str,@object # @.str .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "Kernel started: %d blocks, %d threads.\n" .size .L.str, 40 .type .L.str.1,@object # @.str.1 .L.str.1: .asciz "%f " .size .L.str.1, 5 .type .L.str.4,@object # @.str.4 .L.str.4: .asciz "matrix [%d x %d] multiplication.\n" .size .L.str.4, 34 .type .L.str.7,@object # @.str.7 .L.str.7: .asciz "Failed to allocate M matrix!\n" .size .L.str.7, 30 .type .L.str.10,@object # @.str.10 .L.str.10: .asciz "Failed to allocate N matrix!\n" .size .L.str.10, 30 .type .L.str.12,@object # @.str.12 .L.str.12: .asciz "Failed to allocate P matrix!\n" .size .L.str.12, 30 .type .L.str.14,@object # @.str.14 .L.str.14: .asciz "Failed to launch kernel. Error: %s.\n" .size .L.str.14, 37 .type .L.str.16,@object # @.str.16 .L.str.16: .asciz "Verification test failed.!\nElement at index (%d, %d) should be %f, but is %f. \n" .size .L.str.16, 80 .type .L.str.18,@object # @.str.18 .L.str.18: .asciz "Failed to free device matrix M (error code %s)!\n" .size .L.str.18, 49 .type .L.str.19,@object # @.str.19 .L.str.19: .asciz "Failed to free device matrix N (error code %s)!\n" .size .L.str.19, 49 .type .L.str.20,@object # @.str.20 .L.str.20: .asciz "Failed to free device matrix P (error code %s)!\n" .size .L.str.20, 49 .type .L__unnamed_1,@object # @0 .L__unnamed_1: .asciz "_Z26matrixMultiplicationKernelPfS_S_i" .size .L__unnamed_1, 38 .type __hip_fatbin_wrapper,@object # @__hip_fatbin_wrapper .section .hipFatBinSegment,"a",@progbits .p2align 3, 0x0 __hip_fatbin_wrapper: .long 1212764230 # 0x48495046 .long 1 # 0x1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .type __hip_gpubin_handle,@object # @__hip_gpubin_handle .local __hip_gpubin_handle .comm __hip_gpubin_handle,8,8 .section .init_array,"aw",@init_array .p2align 3, 0x0 .quad __hip_module_ctor .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .type .Lstr,@object # @str .section .rodata.str1.1,"aMS",@progbits,1 .Lstr: .asciz "Starting the program:" .size .Lstr, 22 .type .Lstr.1,@object # @str.1 .Lstr.1: .asciz "Started variables allocation for the device." .size .Lstr.1, 45 .type .Lstr.2,@object # @str.2 .Lstr.2: .asciz "First matrix." .size .Lstr.2, 14 .type .Lstr.4,@object # @str.4 .Lstr.4: .asciz "Second matrix." .size .Lstr.4, 15 .type .Lstr.6,@object # @str.6 .Lstr.6: .asciz "Third matrix." .size .Lstr.6, 14 .type .Lstr.7,@object # @str.7 .Lstr.7: .asciz "Allocation successful." .size .Lstr.7, 23 .type .Lstr.8,@object # @str.8 .Lstr.8: .asciz "Initialisation finished." .size .Lstr.8, 25 .type .Lstr.9,@object # @str.9 .Lstr.9: .asciz "Kerel operations successful." .size .Lstr.9, 29 .type .Lstr.10,@object # @str.10 .Lstr.10: .asciz "Test PASSED" .size .Lstr.10, 12 .type .Lstr.11,@object # @str.11 .Lstr.11: .asciz "Done" .size .Lstr.11, 5 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z41__device_stub__matrixMultiplicationKernelPfS_S_i .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z26matrixMultiplicationKernelPfS_S_i .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper .addrsig_sym __hip_cuid_
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z26matrixMultiplicationKernelPfS_S_i ; -- Begin function _Z26matrixMultiplicationKernelPfS_S_i .globl _Z26matrixMultiplicationKernelPfS_S_i .p2align 8 .type _Z26matrixMultiplicationKernelPfS_S_i,@function _Z26matrixMultiplicationKernelPfS_S_i: ; @_Z26matrixMultiplicationKernelPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s3, s[0:1], 0x2c s_load_b32 s2, s[0:1], 0x18 v_bfe_u32 v1, v0, 10, 10 v_and_b32_e32 v4, 0x3ff, v0 s_waitcnt lgkmcnt(0) s_lshr_b32 s4, s3, 16 s_and_b32 s3, s3, 0xffff v_mad_u64_u32 v[2:3], null, s15, s4, v[1:2] v_mad_u64_u32 v[0:1], null, s14, s3, v[4:5] s_mov_b32 s3, 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 s2, v1 s_cbranch_execz .LBB0_6 ; %bb.1: ; %.preheader s_clause 0x1 s_load_b128 s[4:7], s[0:1], 0x0 s_load_b64 s[0:1], s[0:1], 0x10 v_mul_lo_u32 v1, v2, s2 s_cmp_lt_i32 s2, 1 s_cbranch_scc1 .LBB0_4 ; %bb.2: ; %.lr.ph.preheader s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_3) v_ashrrev_i32_e32 v2, 31, v1 v_mov_b32_e32 v6, 0 v_mov_b32_e32 v4, v0 s_mov_b32 s3, s2 v_lshlrev_b64 v[2:3], 2, v[1:2] s_waitcnt lgkmcnt(0) s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2) v_add_co_u32 v2, vcc_lo, s4, v2 v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo .LBB0_3: ; %.lr.ph ; =>This Inner Loop Header: Depth=1 v_ashrrev_i32_e32 v5, 31, v4 s_add_i32 s3, s3, -1 s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1) s_cmp_eq_u32 s3, 0 v_lshlrev_b64 v[7:8], 2, v[4:5] v_add_nc_u32_e32 v4, s2, v4 s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3) v_add_co_u32 v7, vcc_lo, s6, v7 v_add_co_ci_u32_e32 v8, vcc_lo, s7, v8, vcc_lo global_load_b32 v5, v[2:3], off global_load_b32 v7, v[7:8], off v_add_co_u32 v2, vcc_lo, v2, 4 v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo s_waitcnt vmcnt(0) v_fmac_f32_e32 v6, v5, v7 s_cbranch_scc0 .LBB0_3 s_branch .LBB0_5 .LBB0_4: v_mov_b32_e32 v6, 0 .LBB0_5: ; %Flow46 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], v6, off .LBB0_6: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z26matrixMultiplicationKernelPfS_S_i .amdhsa_group_segment_fixed_size 0 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 288 .amdhsa_user_sgpr_count 14 .amdhsa_user_sgpr_dispatch_ptr 0 .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_uses_dynamic_stack 0 .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 9 .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 _Z26matrixMultiplicationKernelPfS_S_i, .Lfunc_end0-_Z26matrixMultiplicationKernelPfS_S_i ; -- End function .section .AMDGPU.csdata,"",@progbits ; Kernel info: ; codeLenInByte = 332 ; NumSgprs: 18 ; NumVgprs: 9 ; ScratchSize: 0 ; MemoryBound: 0 ; FloatMode: 240 ; IeeeMode: 1 ; LDSByteSize: 0 bytes/workgroup (compile time only) ; SGPRBlocks: 2 ; VGPRBlocks: 1 ; NumSGPRsForWavesPerEU: 18 ; NumVGPRsForWavesPerEU: 9 ; Occupancy: 16 ; WaveLimiterHint : 0 ; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0 ; COMPUTE_PGM_RSRC2:USER_SGPR: 14 ; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0 ; COMPUTE_PGM_RSRC2:TGID_X_EN: 1 ; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1 ; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0 ; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1 .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym __hip_cuid_ .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: 32 .size: 4 .value_kind: hidden_block_count_x - .offset: 36 .size: 4 .value_kind: hidden_block_count_y - .offset: 40 .size: 4 .value_kind: hidden_block_count_z - .offset: 44 .size: 2 .value_kind: hidden_group_size_x - .offset: 46 .size: 2 .value_kind: hidden_group_size_y - .offset: 48 .size: 2 .value_kind: hidden_group_size_z - .offset: 50 .size: 2 .value_kind: hidden_remainder_x - .offset: 52 .size: 2 .value_kind: hidden_remainder_y - .offset: 54 .size: 2 .value_kind: hidden_remainder_z - .offset: 72 .size: 8 .value_kind: hidden_global_offset_x - .offset: 80 .size: 8 .value_kind: hidden_global_offset_y - .offset: 88 .size: 8 .value_kind: hidden_global_offset_z - .offset: 96 .size: 2 .value_kind: hidden_grid_dims .group_segment_fixed_size: 0 .kernarg_segment_align: 8 .kernarg_segment_size: 288 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z26matrixMultiplicationKernelPfS_S_i .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z26matrixMultiplicationKernelPfS_S_i.kd .uniform_work_group_size: 1 .uses_dynamic_stack: false .vgpr_count: 9 .vgpr_spill_count: 0 .wavefront_size: 32 .workgroup_processor_mode: 1 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 2 ... .end_amdgpu_metadata
0fa3a2829c1545b0a70919d834f1d5a87c13ea9a
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #define X 153 #define Y 42 #define DELAY 90 #define ROW 10 #define COL 64 __global__ void ga (char *A, char *B) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; int neighbours = 0; if( ((i+1) >= X) || ((i-1) < 0) || ((j+1) >= Y) || ((j-1) < 0) ){ *(B + i + X*j) = '-'; }else{ if(*(A + (i+1) + X*j) == '*'){ neighbours++; } if(*(A + (i-1) + X*j) == '*'){ neighbours++; } if(*(A + i + X*(j+1)) == '*'){ neighbours++; } if(*(A + i + X*(j-1)) == '*'){ neighbours++; } if(*(A + (i+1) + X*(j+1)) == '*'){ neighbours++; } if(*(A + (i+1) + X*(j-1)) == '*'){ neighbours++; } if(*(A + (i-1) + X*(j+1)) == '*'){ neighbours++; } if(*(A + (i-1) + X*(j-1)) == '*'){ neighbours++; } if( *(A + i + X*j) == '*'){ if((neighbours == 2) || (neighbours == 3)){ *(B + i + X*j) = '*'; }else{ *(B + i + X*j) = '-'; } }else{ if((neighbours == 3)){ *(B + i + X*j) = '*'; }else{ *(B + i + X*j) = '-'; } } } return; } int main(void){ char *A, *B, *C; int i, j, x; cudaMallocManaged (&A, X * Y * sizeof(char)); cudaMallocManaged (&B, X * Y * sizeof(char)); cudaDeviceSynchronize (); dim3 blocksPerGrid (X, Y, 1); dim3 threadsPerBlock (1, 1, 1); for(j = 0; j < Y; j++){ for(i = 0; i < X; i++){ *(A + i + X*j) = '-'; } } printf("select a configuration\n1. exploder\n2. 10 cell row\n3. gosper glider gun\n"); x = getchar(); if(x == '1'){ for(j=20;j<25;j++){ //exploder *(A + 40 + X*j) = '*'; *(A + 44 + X*j) = '*'; } *(A + 42 + X*20) = '*'; *(A + 42 + X*24) = '*'; }else if (x == '2'){ for(j=15,i=35;i<45;i++){ //10 cell row *(A + i + X*j) = '*'; } }else if (x == '3'){ *(A + (COL) + X*(ROW)) = '*'; //gosper glider gun *(A + (COL) + X*(ROW+1)) = '*'; *(A + (COL-2) + X*(ROW+1)) = '*'; *(A + (COL) + X*(ROW+5)) = '*'; *(A + (COL) + X*(ROW+6)) = '*'; *(A + (COL-3) + X*(ROW+2)) = '*'; *(A + (COL-4) + X*(ROW+2)) = '*'; *(A + (COL-4) + X*(ROW+3)) = '*'; *(A + (COL-3) + X*(ROW+3)) = '*'; *(A + (COL-3) + X*(ROW+4)) = '*'; *(A + (COL-4) + X*(ROW+4)) = '*'; *(A + (COL-2) + X*(ROW+5)) = '*'; *(A + (COL+10) + X*(ROW+2)) = '*'; *(A + (COL+10) + X*(ROW+3)) = '*'; *(A + (COL+11) + X*(ROW+2)) = '*'; *(A + (COL+11) + X*(ROW+3)) = '*'; *(A + (COL-7) + X*(ROW+5)) = '*'; *(A + (COL-8) + X*(ROW+4)) = '*'; *(A + (COL-8) + X*(ROW+5)) = '*'; *(A + (COL-8) + X*(ROW+6)) = '*'; *(A + (COL-9) + X*(ROW+3)) = '*'; *(A + (COL-9) + X*(ROW+7)) = '*'; *(A + (COL-10) + X*(ROW+5)) = '*'; *(A + (COL-11) + X*(ROW+2)) = '*'; *(A + (COL-11) + X*(ROW+8)) = '*'; *(A + (COL-12) + X*(ROW+2)) = '*'; *(A + (COL-12) + X*(ROW+8)) = '*'; *(A + (COL-13) + X*(ROW+3)) = '*'; *(A + (COL-13) + X*(ROW+7)) = '*'; *(A + (COL-14) + X*(ROW+4)) = '*'; *(A + (COL-14) + X*(ROW+5)) = '*'; *(A + (COL-14) + X*(ROW+6)) = '*'; *(A + (COL-23) + X*(ROW+4)) = '*'; *(A + (COL-23) + X*(ROW+5)) = '*'; *(A + (COL-24) + X*(ROW+4)) = '*'; *(A + (COL-24) + X*(ROW+5)) = '*'; }else{ printf("invalid selection\n"); return 0; } while(1){ system("clear"); printf("\n"); for(j = 3 ; j < (Y-3) ; j++){ for(i = 3 ; i < (X-3); i++){ printf("%c", *(A + i + X*j)); } printf("\n"); } ga <<< blocksPerGrid, threadsPerBlock>>> (A, B); cudaDeviceSynchronize (); C = A; A = B; B = C; usleep(DELAY*1000); } return 0; }
.file "tmpxft_0039cd09_00000000-6_game.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2043: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2043: .size _ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv .globl _Z23__device_stub__Z2gaPcS_PcS_ .type _Z23__device_stub__Z2gaPcS_PcS_, @function _Z23__device_stub__Z2gaPcS_PcS_: .LFB2065: .cfi_startproc endbr64 subq $120, %rsp .cfi_def_cfa_offset 128 movq %rdi, 8(%rsp) leaq 32(%rsp), %rcx leaq 24(%rsp), %rdx movq %rsi, (%rsp) leaq 40(%rsp), %rdi leaq 52(%rsp), %rsi movq %fs:40, %rax movq %rax, 104(%rsp) xorl %eax, %eax leaq 8(%rsp), %rax movl $1, 48(%rsp) movq %rax, 88(%rsp) movq %rsp, %rax movq %rax, 96(%rsp) movabsq $4294967297, %rax movq %rax, 40(%rsp) movq %rax, 52(%rsp) movl $1, 60(%rsp) call __cudaPopCallConfiguration@PLT testl %eax, %eax jne .L2 pushq 32(%rsp) .cfi_def_cfa_offset 136 leaq _Z2gaPcS_(%rip), %rdi pushq 32(%rsp) .cfi_def_cfa_offset 144 movq 68(%rsp), %rcx movl 76(%rsp), %r8d movq 56(%rsp), %rsi movl 64(%rsp), %edx leaq 104(%rsp), %r9 call cudaLaunchKernel@PLT popq %rax .cfi_def_cfa_offset 136 popq %rdx .cfi_def_cfa_offset 128 .L2: movq 104(%rsp), %rax subq %fs:40, %rax je .L4 call __stack_chk_fail@PLT .L4: addq $120, %rsp .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE2065: .size _Z23__device_stub__Z2gaPcS_PcS_, .-_Z23__device_stub__Z2gaPcS_PcS_ .globl _Z2gaPcS_ .type _Z2gaPcS_, @function _Z2gaPcS_: .LFB2066: .cfi_startproc endbr64 jmp _Z23__device_stub__Z2gaPcS_PcS_ .cfi_endproc .LFE2066: .size _Z2gaPcS_, .-_Z2gaPcS_ .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "select a configuration\n1. exploder\n2. 10 cell row\n3. gosper glider gun\n" .LC1: .string "invalid selection\n" .LC2: .string "clear" .LC3: .string "\n" .LC4: .string "%c" .section .text.startup,"ax",@progbits .globl main .type main, @function main: .LFB2040: .cfi_startproc endbr64 pushq %r14 .cfi_def_cfa_offset 16 .cfi_offset 14, -16 movl $1, %edx movl $6426, %esi 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 pushq %rbx .cfi_def_cfa_offset 48 .cfi_offset 3, -48 subq $48, %rsp .cfi_def_cfa_offset 96 movq %fs:40, %rax movq %rax, 40(%rsp) xorl %eax, %eax movq %rsp, %rdi call cudaMallocManaged@PLT movl $1, %edx leaq 8(%rsp), %rdi movl $6426, %esi call cudaMallocManaged@PLT call cudaDeviceSynchronize@PLT movl $1, 24(%rsp) xorl %edx, %edx movabsq $180388626585, %rax movq %rax, 16(%rsp) movabsq $4294967297, %rax movq %rax, 28(%rsp) movl $1, 36(%rsp) .L9: xorl %eax, %eax .L10: movq (%rsp), %rcx addq %rax, %rcx incq %rax movb $45, (%rcx,%rdx) cmpq $153, %rax jne .L10 addq $153, %rdx cmpq $6426, %rdx jne .L9 leaq .LC0(%rip), %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT call getchar@PLT cmpl $49, %eax jne .L12 movl $3100, %eax .L13: movq (%rsp), %rdx movb $42, (%rdx,%rax) movq (%rsp), %rdx movb $42, 4(%rdx,%rax) addq $153, %rax cmpq $3865, %rax jne .L13 movq (%rsp), %rax movb $42, 3102(%rax) movb $42, 3714(%rax) jmp .L14 .L12: cmpl $50, %eax jne .L15 movl $2330, %eax .L16: movq (%rsp), %rdx movb $42, (%rdx,%rax) incq %rax cmpq $2340, %rax jne .L16 jmp .L14 .L15: cmpl $51, %eax jne .L17 movq (%rsp), %rax movb $42, 1594(%rax) movb $42, 1747(%rax) movb $42, 1745(%rax) movb $42, 2359(%rax) movb $42, 2512(%rax) movw $10794, 1896(%rax) movw $10794, 2049(%rax) movw $10794, 2202(%rax) movb $42, 2357(%rax) movw $10794, 1910(%rax) movw $10794, 2063(%rax) movb $42, 2198(%rax) movw $10794, 2351(%rax) movb $42, 2504(%rax) movb $42, 2044(%rax) movb $42, 2656(%rax) movb $42, 2349(%rax) movw $10794, 1888(%rax) movw $10794, 2806(%rax) movb $42, 2040(%rax) movb $42, 2652(%rax) movb $42, 2192(%rax) movb $42, 2345(%rax) movb $42, 2498(%rax) movw $10794, 2182(%rax) movw $10794, 2335(%rax) .L14: leaq .LC2(%rip), %r13 jmp .L18 .L17: xorl %eax, %eax leaq .LC1(%rip), %rsi movl $2, %edi call __printf_chk@PLT movq 40(%rsp), %rax subq %fs:40, %rax je .L23 call __stack_chk_fail@PLT .L19: xorl %ebx, %ebx .L20: movq (%rsp), %rax movq %r14, %rsi movl $2, %edi incq %rbx addq %rbp, %rax movsbl 2(%rbx,%rax), %edx xorl %eax, %eax call __printf_chk@PLT cmpq $147, %rbx jne .L20 movq %r12, %rsi movl $2, %edi xorl %eax, %eax addq $153, %rbp call __printf_chk@PLT cmpq $5967, %rbp jne .L19 movl 36(%rsp), %ecx movq 28(%rsp), %rdx xorl %r9d, %r9d xorl %r8d, %r8d movq 16(%rsp), %rdi movl 24(%rsp), %esi call __cudaPushCallConfiguration@PLT testl %eax, %eax jne .L22 movq 8(%rsp), %rsi movq (%rsp), %rdi call _Z23__device_stub__Z2gaPcS_PcS_ .L22: call cudaDeviceSynchronize@PLT movq (%rsp), %rax movq 8(%rsp), %rdx movl $90000, %edi movq %rdx, (%rsp) movq %rax, 8(%rsp) call usleep@PLT .L18: movq %r13, %rdi leaq .LC3(%rip), %r12 movl $459, %ebp call system@PLT movq %r12, %rsi movl $2, %edi xorl %eax, %eax call __printf_chk@PLT leaq .LC4(%rip), %r14 jmp .L19 .L23: addq $48, %rsp .cfi_def_cfa_offset 48 xorl %eax, %eax popq %rbx .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 .LFE2040: .size main, .-main .section .rodata.str1.1 .LC5: .string "_Z2gaPcS_" .section .text.startup .type _ZL24__sti____cudaRegisterAllv, @function _ZL24__sti____cudaRegisterAllv: .LFB2068: .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 _Z2gaPcS_(%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 .LFE2068: .size _ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv .section .init_array,"aw" .align 8 .quad _ZL24__sti____cudaRegisterAllv .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 .ident "GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.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:
code for sm_89 Function : _Z2gaPcS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ /* 0x000fe400078e00ff */ /*0010*/ S2R R4, SR_CTAID.X ; /* 0x0000000000047919 */ /* 0x000e220000002500 */ /*0020*/ ULDC.64 UR4, c[0x0][0x118] ; /* 0x0000460000047ab9 */ /* 0x000fc60000000a00 */ /*0030*/ S2R R3, SR_TID.X ; /* 0x0000000000037919 */ /* 0x000e280000002100 */ /*0040*/ S2R R0, SR_CTAID.Y ; /* 0x0000000000007919 */ /* 0x000e680000002600 */ /*0050*/ S2R R5, SR_TID.Y ; /* 0x0000000000057919 */ /* 0x000e620000002200 */ /*0060*/ IMAD R4, R4, c[0x0][0x0], R3 ; /* 0x0000000004047a24 */ /* 0x001fca00078e0203 */ /*0070*/ IADD3 R2, R4, -0x1, RZ ; /* 0xffffffff04027810 */ /* 0x000fe40007ffe0ff */ /*0080*/ SHF.R.S32.HI R6, RZ, 0x1f, R4 ; /* 0x0000001fff067819 */ /* 0x000fe20000011404 */ /*0090*/ IMAD R0, R0, c[0x0][0x4], R5 ; /* 0x0000010000007a24 */ /* 0x002fe200078e0205 */ /*00a0*/ ISETP.GT.U32.AND P0, PT, R2, 0x96, PT ; /* 0x000000960200780c */ /* 0x000fc60003f04070 */ /*00b0*/ IMAD R5, R0.reuse, 0x99, RZ ; /* 0x0000009900057824 */ /* 0x040fe200078e02ff */ /*00c0*/ IADD3 R0, R0, -0x1, RZ ; /* 0xffffffff00007810 */ /* 0x000fc80007ffe0ff */ /*00d0*/ ISETP.GT.U32.OR P0, PT, R0, 0x27, P0 ; /* 0x000000270000780c */ /* 0x000fe40000704470 */ /*00e0*/ SHF.R.S32.HI R7, RZ, 0x1f, R5 ; /* 0x0000001fff077819 */ /* 0x000fe40000011405 */ /*00f0*/ IADD3 R2, P1, P2, R5, c[0x0][0x168], R4 ; /* 0x00005a0005027a10 */ /* 0x000fc80007a3e004 */ /*0100*/ IADD3.X R3, R7, c[0x0][0x16c], R6, P1, P2 ; /* 0x00005b0007037a10 */ /* 0x000fca0000fe4406 */ /*0110*/ @P0 BRA 0x450 ; /* 0x0000033000000947 */ /* 0x000fea0003800000 */ /*0120*/ IADD3 R4, P0, P1, R4, c[0x0][0x160], R5 ; /* 0x0000580004047a10 */ /* 0x000fc8000791e005 */ /*0130*/ IADD3.X R5, R6, c[0x0][0x164], R7, P0, P1 ; /* 0x0000590006057a10 */ /* 0x000fca00007e2407 */ /*0140*/ LDG.E.U8 R13, [R4.64+-0x1] ; /* 0xffffff04040d7981 */ /* 0x000ea8000c1e1100 */ /*0150*/ LDG.E.U8 R0, [R4.64+0x1] ; /* 0x0000010404007981 */ /* 0x000ee8000c1e1100 */ /*0160*/ LDG.E.U8 R6, [R4.64+0x99] ; /* 0x0000990404067981 */ /* 0x000f28000c1e1100 */ /*0170*/ LDG.E.U8 R7, [R4.64+-0x99] ; /* 0xffff670404077981 */ /* 0x000f68000c1e1100 */ /*0180*/ LDG.E.U8 R8, [R4.64+0x9a] ; /* 0x00009a0404087981 */ /* 0x000f68000c1e1100 */ /*0190*/ LDG.E.U8 R9, [R4.64+-0x98] ; /* 0xffff680404097981 */ /* 0x000168000c1e1100 */ /*01a0*/ LDG.E.U8 R10, [R4.64+0x98] ; /* 0x00009804040a7981 */ /* 0x000168000c1e1100 */ /*01b0*/ LDG.E.U8 R12, [R4.64] ; /* 0x00000004040c7981 */ /* 0x000168000c1e1100 */ /*01c0*/ LDG.E.U8 R11, [R4.64+-0x9a] ; /* 0xffff6604040b7981 */ /* 0x000162000c1e1100 */ /*01d0*/ ISETP.NE.AND P2, PT, R13, 0x2a, PT ; /* 0x0000002a0d00780c */ /* 0x004fe20003f45270 */ /*01e0*/ IMAD.MOV.U32 R13, RZ, RZ, 0x1 ; /* 0x00000001ff0d7424 */ /* 0x000fe200078e00ff */ /*01f0*/ ISETP.NE.AND P1, PT, R0, 0x2a, PT ; /* 0x0000002a0000780c */ /* 0x008fc80003f25270 */ /*0200*/ SEL R0, RZ, 0x1, P1 ; /* 0x00000001ff007807 */ /* 0x000fe40000800000 */ /*0210*/ ISETP.NE.AND P0, PT, R6, 0x2a, PT ; /* 0x0000002a0600780c */ /* 0x010fca0003f05270 */ /*0220*/ @!P2 SEL R0, R13, 0x2, P1 ; /* 0x000000020d00a807 */ /* 0x000fe40000800000 */ /*0230*/ ISETP.NE.AND P1, PT, R7, 0x2a, PT ; /* 0x0000002a0700780c */ /* 0x020fe40003f25270 */ /*0240*/ SEL R7, RZ, 0x1, P0 ; /* 0x00000001ff077807 */ /* 0x000fe40000000000 */ /*0250*/ ISETP.NE.AND P0, PT, R8, 0x2a, PT ; /* 0x0000002a0800780c */ /* 0x000fc60003f05270 */ /*0260*/ IMAD.IADD R0, R0, 0x1, R7 ; /* 0x0000000100007824 */ /* 0x000fca00078e0207 */ /*0270*/ IADD3 R4, R0, 0x1, RZ ; /* 0x0000000100047810 */ /* 0x001fe20007ffe0ff */ /*0280*/ @P1 IMAD.MOV R4, RZ, RZ, R0 ; /* 0x000000ffff041224 */ /* 0x000fe200078e0200 */ /*0290*/ ISETP.NE.AND P1, PT, R9, 0x2a, PT ; /* 0x0000002a0900780c */ /* 0x000fc80003f25270 */ /*02a0*/ IADD3 R0, R4, 0x1, RZ ; /* 0x0000000104007810 */ /* 0x000fe20007ffe0ff */ /*02b0*/ @P0 IMAD.MOV R0, RZ, RZ, R4 ; /* 0x000000ffff000224 */ /* 0x000fe200078e0204 */ /*02c0*/ ISETP.NE.AND P0, PT, R10, 0x2a, PT ; /* 0x0000002a0a00780c */ /* 0x000fe40003f05270 */ /*02d0*/ ISETP.NE.AND P2, PT, R12, 0x2a, PT ; /* 0x0000002a0c00780c */ /* 0x000fe40003f45270 */ /*02e0*/ IADD3 R4, R0, 0x1, RZ ; /* 0x0000000100047810 */ /* 0x000fc60007ffe0ff */ /*02f0*/ @P1 IMAD.MOV R4, RZ, RZ, R0 ; /* 0x000000ffff041224 */ /* 0x000fe200078e0200 */ /*0300*/ ISETP.NE.AND P1, PT, R11, 0x2a, PT ; /* 0x0000002a0b00780c */ /* 0x000fc80003f25270 */ /*0310*/ IADD3 R5, R4, 0x1, RZ ; /* 0x0000000104057810 */ /* 0x000fe20007ffe0ff */ /*0320*/ @P0 IMAD.MOV R5, RZ, RZ, R4 ; /* 0x000000ffff050224 */ /* 0x000fca00078e0204 */ /*0330*/ IADD3 R0, R5, 0x1, RZ ; /* 0x0000000105007810 */ /* 0x000fc60007ffe0ff */ /*0340*/ @P1 IMAD.MOV R0, RZ, RZ, R5 ; /* 0x000000ffff001224 */ /* 0x000fe200078e0205 */ /*0350*/ @!P2 BRA 0x3d0 ; /* 0x000000700000a947 */ /* 0x000fea0003800000 */ /*0360*/ ISETP.NE.AND P0, PT, R0, 0x3, PT ; /* 0x000000030000780c */ /* 0x000fe20003f05270 */ /*0370*/ IMAD.MOV.U32 R0, RZ, RZ, 0x2d ; /* 0x0000002dff007424 */ /* 0x000fd800078e00ff */ /*0380*/ @P0 STG.E.U8 [R2.64], R0 ; /* 0x0000000002000986 */ /* 0x0001e2000c101104 */ /*0390*/ @P0 EXIT ; /* 0x000000000000094d */ /* 0x000fea0003800000 */ /*03a0*/ IMAD.MOV.U32 R0, RZ, RZ, 0x2a ; /* 0x0000002aff007424 */ /* 0x001fca00078e00ff */ /*03b0*/ STG.E.U8 [R2.64], R0 ; /* 0x0000000002007986 */ /* 0x000fe2000c101104 */ /*03c0*/ EXIT ; /* 0x000000000000794d */ /* 0x000fea0003800000 */ /*03d0*/ LOP3.LUT R0, R0, 0x1, RZ, 0xfc, !PT ; /* 0x0000000100007812 */ /* 0x000fc800078efcff */ /*03e0*/ ISETP.NE.AND P0, PT, R0, 0x3, PT ; /* 0x000000030000780c */ /* 0x000fe20003f05270 */ /*03f0*/ IMAD.MOV.U32 R0, RZ, RZ, 0x2d ; /* 0x0000002dff007424 */ /* 0x000fd800078e00ff */ /*0400*/ @P0 STG.E.U8 [R2.64], R0 ; /* 0x0000000002000986 */ /* 0x0001e2000c101104 */ /*0410*/ @P0 EXIT ; /* 0x000000000000094d */ /* 0x000fea0003800000 */ /*0420*/ IMAD.MOV.U32 R0, RZ, RZ, 0x2a ; /* 0x0000002aff007424 */ /* 0x001fca00078e00ff */ /*0430*/ STG.E.U8 [R2.64], R0 ; /* 0x0000000002007986 */ /* 0x000fe2000c101104 */ /*0440*/ EXIT ; /* 0x000000000000794d */ /* 0x000fea0003800000 */ /*0450*/ IMAD.MOV.U32 R0, RZ, RZ, 0x2d ; /* 0x0000002dff007424 */ /* 0x000fca00078e00ff */ /*0460*/ STG.E.U8 [R2.64], R0 ; /* 0x0000000002007986 */ /* 0x000fe2000c101104 */ /*0470*/ EXIT ; /* 0x000000000000794d */ /* 0x000fea0003800000 */ /*0480*/ BRA 0x480; /* 0xfffffff000007947 */ /* 0x000fc0000383ffff */ /*0490*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*04a0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*04b0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*04c0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*04d0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*04e0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*04f0*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0500*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0510*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0520*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0530*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0540*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0550*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0560*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ /*0570*/ NOP; /* 0x0000000000007918 */ /* 0x000fc00000000000 */ ..........
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #define X 153 #define Y 42 #define DELAY 90 #define ROW 10 #define COL 64 __global__ void ga (char *A, char *B) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; int neighbours = 0; if( ((i+1) >= X) || ((i-1) < 0) || ((j+1) >= Y) || ((j-1) < 0) ){ *(B + i + X*j) = '-'; }else{ if(*(A + (i+1) + X*j) == '*'){ neighbours++; } if(*(A + (i-1) + X*j) == '*'){ neighbours++; } if(*(A + i + X*(j+1)) == '*'){ neighbours++; } if(*(A + i + X*(j-1)) == '*'){ neighbours++; } if(*(A + (i+1) + X*(j+1)) == '*'){ neighbours++; } if(*(A + (i+1) + X*(j-1)) == '*'){ neighbours++; } if(*(A + (i-1) + X*(j+1)) == '*'){ neighbours++; } if(*(A + (i-1) + X*(j-1)) == '*'){ neighbours++; } if( *(A + i + X*j) == '*'){ if((neighbours == 2) || (neighbours == 3)){ *(B + i + X*j) = '*'; }else{ *(B + i + X*j) = '-'; } }else{ if((neighbours == 3)){ *(B + i + X*j) = '*'; }else{ *(B + i + X*j) = '-'; } } } return; } int main(void){ char *A, *B, *C; int i, j, x; hipMallocManaged (&A, X * Y * sizeof(char)); hipMallocManaged (&B, X * Y * sizeof(char)); hipDeviceSynchronize (); dim3 blocksPerGrid (X, Y, 1); dim3 threadsPerBlock (1, 1, 1); for(j = 0; j < Y; j++){ for(i = 0; i < X; i++){ *(A + i + X*j) = '-'; } } printf("select a configuration\n1. exploder\n2. 10 cell row\n3. gosper glider gun\n"); x = getchar(); if(x == '1'){ for(j=20;j<25;j++){ //exploder *(A + 40 + X*j) = '*'; *(A + 44 + X*j) = '*'; } *(A + 42 + X*20) = '*'; *(A + 42 + X*24) = '*'; }else if (x == '2'){ for(j=15,i=35;i<45;i++){ //10 cell row *(A + i + X*j) = '*'; } }else if (x == '3'){ *(A + (COL) + X*(ROW)) = '*'; //gosper glider gun *(A + (COL) + X*(ROW+1)) = '*'; *(A + (COL-2) + X*(ROW+1)) = '*'; *(A + (COL) + X*(ROW+5)) = '*'; *(A + (COL) + X*(ROW+6)) = '*'; *(A + (COL-3) + X*(ROW+2)) = '*'; *(A + (COL-4) + X*(ROW+2)) = '*'; *(A + (COL-4) + X*(ROW+3)) = '*'; *(A + (COL-3) + X*(ROW+3)) = '*'; *(A + (COL-3) + X*(ROW+4)) = '*'; *(A + (COL-4) + X*(ROW+4)) = '*'; *(A + (COL-2) + X*(ROW+5)) = '*'; *(A + (COL+10) + X*(ROW+2)) = '*'; *(A + (COL+10) + X*(ROW+3)) = '*'; *(A + (COL+11) + X*(ROW+2)) = '*'; *(A + (COL+11) + X*(ROW+3)) = '*'; *(A + (COL-7) + X*(ROW+5)) = '*'; *(A + (COL-8) + X*(ROW+4)) = '*'; *(A + (COL-8) + X*(ROW+5)) = '*'; *(A + (COL-8) + X*(ROW+6)) = '*'; *(A + (COL-9) + X*(ROW+3)) = '*'; *(A + (COL-9) + X*(ROW+7)) = '*'; *(A + (COL-10) + X*(ROW+5)) = '*'; *(A + (COL-11) + X*(ROW+2)) = '*'; *(A + (COL-11) + X*(ROW+8)) = '*'; *(A + (COL-12) + X*(ROW+2)) = '*'; *(A + (COL-12) + X*(ROW+8)) = '*'; *(A + (COL-13) + X*(ROW+3)) = '*'; *(A + (COL-13) + X*(ROW+7)) = '*'; *(A + (COL-14) + X*(ROW+4)) = '*'; *(A + (COL-14) + X*(ROW+5)) = '*'; *(A + (COL-14) + X*(ROW+6)) = '*'; *(A + (COL-23) + X*(ROW+4)) = '*'; *(A + (COL-23) + X*(ROW+5)) = '*'; *(A + (COL-24) + X*(ROW+4)) = '*'; *(A + (COL-24) + X*(ROW+5)) = '*'; }else{ printf("invalid selection\n"); return 0; } while(1){ system("clear"); printf("\n"); for(j = 3 ; j < (Y-3) ; j++){ for(i = 3 ; i < (X-3); i++){ printf("%c", *(A + i + X*j)); } printf("\n"); } ga <<< blocksPerGrid, threadsPerBlock>>> (A, B); hipDeviceSynchronize (); C = A; A = B; B = C; usleep(DELAY*1000); } return 0; }
.text .file "game.hip" .globl _Z17__device_stub__gaPcS_ # -- Begin function _Z17__device_stub__gaPcS_ .type _Z17__device_stub__gaPcS_,@function _Z17__device_stub__gaPcS_: # @_Z17__device_stub__gaPcS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r13 .cfi_def_cfa_offset 32 pushq %r12 .cfi_def_cfa_offset 40 pushq %rbx .cfi_def_cfa_offset 48 subq $80, %rsp .cfi_def_cfa_offset 128 .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r13, -32 .cfi_offset %r14, -24 .cfi_offset %r15, -16 leaq 24(%rsp), %rax movq %rdi, (%rax) leaq 16(%rsp), %rcx movq %rsi, (%rcx) leaq 64(%rsp), %rbx movq %rax, (%rbx) movq %rcx, 8(%rbx) leaq 48(%rsp), %r14 leaq 32(%rsp), %r15 leaq 8(%rsp), %r12 movq %rsp, %r13 movq %r14, %rdi movq %r15, %rsi movq %r12, %rdx movq %r13, %rcx callq __hipPopCallConfiguration movq (%r14), %rsi movl 8(%r14), %edx movq (%r15), %rcx movl 8(%r15), %r8d movl $_Z2gaPcS_, %edi movq %rbx, %r9 pushq (%r13) .cfi_adjust_cfa_offset 8 pushq (%r12) .cfi_adjust_cfa_offset 8 callq hipLaunchKernel addq $96, %rsp .cfi_adjust_cfa_offset -96 popq %rbx .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 retq .Lfunc_end0: .size _Z17__device_stub__gaPcS_, .Lfunc_end0-_Z17__device_stub__gaPcS_ .cfi_endproc # -- End function .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r13 .cfi_def_cfa_offset 32 pushq %r12 .cfi_def_cfa_offset 40 pushq %rbx .cfi_def_cfa_offset 48 subq $16, %rsp .cfi_def_cfa_offset 64 .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r13, -32 .cfi_offset %r14, -24 .cfi_offset %r15, -16 movq %rsp, %rdi movl $6426, %esi # imm = 0x191A movl $1, %edx callq hipMallocManaged leaq 8(%rsp), %rdi movl $6426, %esi # imm = 0x191A movl $1, %edx callq hipMallocManaged callq hipDeviceSynchronize xorl %eax, %eax xorl %ecx, %ecx .LBB1_1: # %.preheader40 # =>This Loop Header: Depth=1 # Child Loop BB1_2 Depth 2 xorl %edx, %edx .LBB1_2: # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 movq (%rsp), %rsi addq %rax, %rsi movb $45, (%rdx,%rsi) incq %rdx cmpq $153, %rdx jne .LBB1_2 # %bb.3: # in Loop: Header=BB1_1 Depth=1 incq %rcx addq $153, %rax cmpq $42, %rcx jne .LBB1_1 # %bb.4: movl $.Lstr, %edi callq puts@PLT callq getchar cmpl $49, %eax je .LBB1_9 # %bb.5: cmpl $51, %eax je .LBB1_13 # %bb.6: cmpl $50, %eax jne .LBB1_12 # %bb.7: # %.preheader39.preheader xorl %eax, %eax .LBB1_8: # %.preheader39 # =>This Inner Loop Header: Depth=1 movq (%rsp), %rcx movb $42, 2330(%rcx,%rax) incq %rax cmpq $10, %rax jne .LBB1_8 jmp .LBB1_15 .LBB1_9: # %.preheader38.preheader xorl %eax, %eax movb $42, %cl .LBB1_10: # %.preheader38 # =>This Inner Loop Header: Depth=1 movq (%rsp), %rdx movb %cl, 3100(%rdx,%rax) movq (%rsp), %rdx movb %cl, 3104(%rdx,%rax) addq $153, %rax cmpq $765, %rax # imm = 0x2FD jne .LBB1_10 # %bb.11: movq (%rsp), %rax movb $42, 3102(%rax) addq $3714, %rax # imm = 0xE82 jmp .LBB1_14 .LBB1_13: movq (%rsp), %rax movb $42, %cl movb %cl, 1594(%rax) movb %cl, 1747(%rax) movb %cl, 1745(%rax) movb %cl, 2359(%rax) movb %cl, 2512(%rax) movw $10794, %dx # imm = 0x2A2A movw %dx, 1896(%rax) movw %dx, 2049(%rax) movw %dx, 2202(%rax) movb %cl, 2357(%rax) movw %dx, 1910(%rax) movw %dx, 2063(%rax) movb %cl, 2198(%rax) movw %dx, 2351(%rax) movb %cl, 2504(%rax) movb %cl, 2044(%rax) movb %cl, 2656(%rax) movb %cl, 2349(%rax) movb %cl, 1889(%rax) movb %cl, 2807(%rax) movb %cl, 1888(%rax) movb %cl, 2806(%rax) movb %cl, 2040(%rax) movb %cl, 2652(%rax) movb %cl, 2192(%rax) movb %cl, 2345(%rax) movb %cl, 2498(%rax) movb %cl, 2336(%rax) movw %dx, 2182(%rax) addq $2335, %rax # imm = 0x91F .LBB1_14: # %.loopexit.sink.split movb $42, (%rax) .LBB1_15: # %.loopexit.preheader movabsq $180388626585, %rbx # imm = 0x2A00000099 movabsq $4294967297, %r14 # imm = 0x100000001 .LBB1_16: # %.loopexit # =>This Loop Header: Depth=1 # Child Loop BB1_17 Depth 2 # Child Loop BB1_18 Depth 3 movl $.L.str.2, %edi callq system movl $10, %edi callq putchar@PLT movl $3, %r15d movl $462, %r12d # imm = 0x1CE .LBB1_17: # %.preheader # Parent Loop BB1_16 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB1_18 Depth 3 xorl %r13d, %r13d .LBB1_18: # Parent Loop BB1_16 Depth=1 # Parent Loop BB1_17 Depth=2 # => This Inner Loop Header: Depth=3 movq (%rsp), %rax addq %r12, %rax movsbl (%r13,%rax), %edi callq putchar@PLT incq %r13 cmpq $147, %r13 jne .LBB1_18 # %bb.19: # in Loop: Header=BB1_17 Depth=2 movl $10, %edi callq putchar@PLT incq %r15 addq $153, %r12 cmpq $39, %r15 jne .LBB1_17 # %bb.20: # in Loop: Header=BB1_16 Depth=1 movq %rbx, %rdi movl $1, %esi movq %r14, %rdx movl $1, %ecx xorl %r8d, %r8d xorl %r9d, %r9d callq __hipPushCallConfiguration testl %eax, %eax jne .LBB1_22 # %bb.21: # in Loop: Header=BB1_16 Depth=1 movq (%rsp), %rdi movq 8(%rsp), %rsi callq _Z17__device_stub__gaPcS_ .LBB1_22: # in Loop: Header=BB1_16 Depth=1 callq hipDeviceSynchronize movq (%rsp), %rax movq 8(%rsp), %rcx movq %rcx, (%rsp) movq %rax, 8(%rsp) movl $90000, %edi # imm = 0x15F90 callq usleep jmp .LBB1_16 .LBB1_12: movl $.Lstr.1, %edi callq puts@PLT xorl %eax, %eax addq $16, %rsp .cfi_def_cfa_offset 48 popq %rbx .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 retq .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc # -- End function .p2align 4, 0x90 # -- Begin function __hip_module_ctor .type __hip_module_ctor,@function __hip_module_ctor: # @__hip_module_ctor .cfi_startproc # %bb.0: subq $40, %rsp .cfi_def_cfa_offset 48 movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi jne .LBB2_2 # %bb.1: movl $__hip_fatbin_wrapper, %edi callq __hipRegisterFatBinary movq %rax, %rdi movq %rax, __hip_gpubin_handle(%rip) .LBB2_2: xorps %xmm0, %xmm0 movups %xmm0, 16(%rsp) movups %xmm0, (%rsp) movl $_Z2gaPcS_, %esi movl $.L__unnamed_1, %edx movl $.L__unnamed_1, %ecx movl $-1, %r8d xorl %r9d, %r9d callq __hipRegisterFunction movl $__hip_module_dtor, %edi addq $40, %rsp .cfi_def_cfa_offset 8 jmp atexit # TAILCALL .Lfunc_end2: .size __hip_module_ctor, .Lfunc_end2-__hip_module_ctor .cfi_endproc # -- End function .p2align 4, 0x90 # -- Begin function __hip_module_dtor .type __hip_module_dtor,@function __hip_module_dtor: # @__hip_module_dtor .cfi_startproc # %bb.0: movq __hip_gpubin_handle(%rip), %rdi testq %rdi, %rdi je .LBB3_2 # %bb.1: pushq %rax .cfi_def_cfa_offset 16 callq __hipUnregisterFatBinary 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 # -- End function .type _Z2gaPcS_,@object # @_Z2gaPcS_ .section .rodata,"a",@progbits .globl _Z2gaPcS_ .p2align 3, 0x0 _Z2gaPcS_: .quad _Z17__device_stub__gaPcS_ .size _Z2gaPcS_, 8 .type .L.str.2,@object # @.str.2 .section .rodata.str1.1,"aMS",@progbits,1 .L.str.2: .asciz "clear" .size .L.str.2, 6 .type .L__unnamed_1,@object # @0 .L__unnamed_1: .asciz "_Z2gaPcS_" .size .L__unnamed_1, 10 .type __hip_fatbin_wrapper,@object # @__hip_fatbin_wrapper .section .hipFatBinSegment,"a",@progbits .p2align 3, 0x0 __hip_fatbin_wrapper: .long 1212764230 # 0x48495046 .long 1 # 0x1 .quad __hip_fatbin .quad 0 .size __hip_fatbin_wrapper, 24 .type __hip_gpubin_handle,@object # @__hip_gpubin_handle .local __hip_gpubin_handle .comm __hip_gpubin_handle,8,8 .section .init_array,"aw",@init_array .p2align 3, 0x0 .quad __hip_module_ctor .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .type .Lstr,@object # @str .section .rodata.str1.1,"aMS",@progbits,1 .Lstr: .asciz "select a configuration\n1. exploder\n2. 10 cell row\n3. gosper glider gun" .size .Lstr, 71 .type .Lstr.1,@object # @str.1 .Lstr.1: .asciz "invalid selection" .size .Lstr.1, 18 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym _Z17__device_stub__gaPcS_ .addrsig_sym __hip_module_ctor .addrsig_sym __hip_module_dtor .addrsig_sym _Z2gaPcS_ .addrsig_sym __hip_fatbin .addrsig_sym __hip_fatbin_wrapper .addrsig_sym __hip_cuid_
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z2gaPcS_ ; -- Begin function _Z2gaPcS_ .globl _Z2gaPcS_ .p2align 8 .type _Z2gaPcS_,@function _Z2gaPcS_: ; @_Z2gaPcS_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x1c s_load_b128 s[4:7], s[0:1], 0x0 v_and_b32_e32 v2, 0x3ff, v0 v_bfe_u32 v3, v0, 10, 10 s_waitcnt lgkmcnt(0) s_and_b32 s1, s2, 0xffff s_lshr_b32 s0, s2, 16 s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2) v_mad_u64_u32 v[0:1], null, s14, s1, v[2:3] v_mad_u64_u32 v[1:2], null, s15, s0, v[3:4] v_add_nc_u32_e32 v2, 0xffffff68, v0 s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3) v_subrev_nc_u32_e32 v3, 41, v1 v_mul_lo_u32 v1, 0x99, v1 v_cmp_lt_u32_e32 vcc_lo, 0xffffff68, v2 s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1) v_cmp_lt_u32_e64 s0, 0xffffffd7, v3 s_and_b32 s0, vcc_lo, s0 s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1) s_and_saveexec_b32 s1, s0 s_xor_b32 s1, exec_lo, s1 s_cbranch_execz .LBB0_14 ; %bb.1: s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1) v_add_nc_u32_e32 v2, 0xffffff67, v1 v_add_co_u32 v4, s0, s4, v0 v_add_co_ci_u32_e64 v5, null, s5, 0, s0 s_mov_b32 s0, exec_lo s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2) v_add_co_u32 v2, vcc_lo, v4, v2 v_add_co_ci_u32_e32 v3, vcc_lo, 0, v5, vcc_lo v_add_co_u32 v4, vcc_lo, v4, v1 v_add_co_ci_u32_e32 v5, vcc_lo, 0, v5, vcc_lo s_clause 0x5 global_load_u16 v6, v[2:3], off offset:-1 global_load_u16 v7, v[4:5], off offset:152 global_load_u16 v8, v[4:5], off offset:-1 global_load_u8 v9, v[4:5], off offset:1 global_load_u8 v4, v[4:5], off offset:154 global_load_u8 v2, v[2:3], off offset:1 s_waitcnt vmcnt(5) v_lshrrev_b32_e32 v10, 8, v6 v_and_b32_e32 v6, 0xff, v6 s_waitcnt vmcnt(3) v_and_b32_e32 v3, 0xff, v8 v_lshrrev_b32_e32 v5, 8, v8 s_waitcnt vmcnt(2) v_cmp_eq_u16_e32 vcc_lo, 42, v9 v_lshrrev_b32_e32 v8, 8, v7 v_and_b32_e32 v10, 0xff, v10 v_and_b32_e32 v7, 0xff, v7 v_cndmask_b32_e64 v9, 0, 1, vcc_lo v_cndmask_b32_e64 v11, 1, 2, vcc_lo v_and_b32_e32 v8, 0xff, v8 v_cmp_eq_u16_e32 vcc_lo, 42, v3 s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3) v_cndmask_b32_e32 v3, v9, v11, vcc_lo v_cmp_eq_u16_e32 vcc_lo, 42, v8 v_cndmask_b32_e64 v8, 0, 1, vcc_lo s_waitcnt vmcnt(1) v_cmp_eq_u16_e32 vcc_lo, 42, v4 v_cndmask_b32_e64 v4, 0, 1, vcc_lo v_cmp_eq_u16_e32 vcc_lo, 42, v10 v_add_co_ci_u32_e32 v3, vcc_lo, v3, v8, vcc_lo v_cmp_eq_u16_e32 vcc_lo, 42, v7 v_cndmask_b32_e64 v7, 0, 1, vcc_lo s_waitcnt vmcnt(0) v_cmp_eq_u16_e32 vcc_lo, 42, v2 v_add_co_ci_u32_e32 v2, vcc_lo, v3, v4, vcc_lo v_cmp_eq_u16_e32 vcc_lo, 42, v6 v_and_b32_e32 v4, 0xff, v5 s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2) v_add_co_ci_u32_e32 v3, vcc_lo, v2, v7, vcc_lo v_cmpx_ne_u16_e32 42, v4 s_xor_b32 s2, exec_lo, s0 s_cbranch_execz .LBB0_7 ; %bb.2: v_add_co_u32 v0, s0, s6, v0 s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2) v_add_co_ci_u32_e64 v2, null, s7, 0, s0 v_add_co_u32 v0, s0, v0, v1 s_delay_alu instid0(VALU_DEP_1) v_add_co_ci_u32_e64 v1, s0, 0, v2, s0 s_mov_b32 s0, exec_lo v_cmpx_ne_u32_e32 3, v3 s_xor_b32 s0, exec_lo, s0 s_cbranch_execz .LBB0_4 ; %bb.3: v_mov_b32_e32 v2, 45 global_store_b8 v[0:1], v2, off ; implicit-def: $vgpr0_vgpr1 .LBB0_4: ; %Flow s_and_not1_saveexec_b32 s0, s0 s_cbranch_execz .LBB0_6 ; %bb.5: v_mov_b32_e32 v2, 42 global_store_b8 v[0:1], v2, off .LBB0_6: ; %Flow114 s_or_b32 exec_lo, exec_lo, s0 ; implicit-def: $vgpr0_vgpr1 ; implicit-def: $vgpr3 ; implicit-def: $vgpr1_vgpr2 .LBB0_7: ; %Flow117 s_and_not1_saveexec_b32 s2, s2 s_cbranch_execz .LBB0_13 ; %bb.8: v_add_co_u32 v0, s0, s6, v0 v_and_b32_e32 v2, 30, v3 v_add_co_ci_u32_e64 v3, null, s7, 0, s0 s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1) v_add_co_u32 v0, s0, v0, v1 v_add_co_ci_u32_e64 v1, s0, 0, v3, s0 s_mov_b32 s0, exec_lo v_cmpx_ne_u32_e32 2, v2 s_xor_b32 s0, exec_lo, s0 s_cbranch_execz .LBB0_10 ; %bb.9: v_mov_b32_e32 v2, 45 global_store_b8 v[0:1], v2, off ; implicit-def: $vgpr0_vgpr1 .LBB0_10: ; %Flow115 s_and_not1_saveexec_b32 s0, s0 s_cbranch_execz .LBB0_12 ; %bb.11: v_mov_b32_e32 v2, 42 global_store_b8 v[0:1], v2, off .LBB0_12: ; %Flow116 s_or_b32 exec_lo, exec_lo, s0 .LBB0_13: ; %Flow118 s_delay_alu instid0(SALU_CYCLE_1) s_or_b32 exec_lo, exec_lo, s2 ; implicit-def: $vgpr0_vgpr1 ; implicit-def: $vgpr1 .LBB0_14: ; %Flow119 s_and_not1_saveexec_b32 s0, s1 s_cbranch_execz .LBB0_16 ; %bb.15: v_ashrrev_i32_e32 v2, 31, v0 v_add_co_u32 v0, vcc_lo, s6, v0 v_ashrrev_i32_e32 v3, 31, v1 s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3) v_add_co_ci_u32_e32 v2, vcc_lo, s7, v2, vcc_lo v_add_co_u32 v0, vcc_lo, v0, v1 s_delay_alu instid0(VALU_DEP_2) v_add_co_ci_u32_e32 v1, vcc_lo, v2, v3, vcc_lo v_mov_b32_e32 v2, 45 global_store_b8 v[0:1], v2, off .LBB0_16: s_nop 0 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS) s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z2gaPcS_ .amdhsa_group_segment_fixed_size 0 .amdhsa_private_segment_fixed_size 0 .amdhsa_kernarg_size 272 .amdhsa_user_sgpr_count 14 .amdhsa_user_sgpr_dispatch_ptr 0 .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_uses_dynamic_stack 0 .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 12 .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 _Z2gaPcS_, .Lfunc_end0-_Z2gaPcS_ ; -- End function .section .AMDGPU.csdata,"",@progbits ; Kernel info: ; codeLenInByte = 716 ; NumSgprs: 18 ; NumVgprs: 12 ; ScratchSize: 0 ; MemoryBound: 0 ; FloatMode: 240 ; IeeeMode: 1 ; LDSByteSize: 0 bytes/workgroup (compile time only) ; SGPRBlocks: 2 ; VGPRBlocks: 1 ; NumSGPRsForWavesPerEU: 18 ; NumVGPRsForWavesPerEU: 12 ; Occupancy: 16 ; WaveLimiterHint : 0 ; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0 ; COMPUTE_PGM_RSRC2:USER_SGPR: 14 ; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0 ; COMPUTE_PGM_RSRC2:TGID_X_EN: 1 ; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1 ; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0 ; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1 .text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)" .section ".note.GNU-stack","",@progbits .addrsig .addrsig_sym __hip_cuid_ .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: hidden_block_count_x - .offset: 20 .size: 4 .value_kind: hidden_block_count_y - .offset: 24 .size: 4 .value_kind: hidden_block_count_z - .offset: 28 .size: 2 .value_kind: hidden_group_size_x - .offset: 30 .size: 2 .value_kind: hidden_group_size_y - .offset: 32 .size: 2 .value_kind: hidden_group_size_z - .offset: 34 .size: 2 .value_kind: hidden_remainder_x - .offset: 36 .size: 2 .value_kind: hidden_remainder_y - .offset: 38 .size: 2 .value_kind: hidden_remainder_z - .offset: 56 .size: 8 .value_kind: hidden_global_offset_x - .offset: 64 .size: 8 .value_kind: hidden_global_offset_y - .offset: 72 .size: 8 .value_kind: hidden_global_offset_z - .offset: 80 .size: 2 .value_kind: hidden_grid_dims .group_segment_fixed_size: 0 .kernarg_segment_align: 8 .kernarg_segment_size: 272 .language: OpenCL C .language_version: - 2 - 0 .max_flat_workgroup_size: 1024 .name: _Z2gaPcS_ .private_segment_fixed_size: 0 .sgpr_count: 18 .sgpr_spill_count: 0 .symbol: _Z2gaPcS_.kd .uniform_work_group_size: 1 .uses_dynamic_stack: false .vgpr_count: 12 .vgpr_spill_count: 0 .wavefront_size: 32 .workgroup_processor_mode: 1 amdhsa.target: amdgcn-amd-amdhsa--gfx1100 amdhsa.version: - 1 - 2 ... .end_amdgpu_metadata
3fcada7c51f85d9930e0db10fbfe8b2ce98d21d4
"#include <thrust/device_vector.h>\n\ntemplate <typename PairType>\n__device__ void load_pair_array((...TRUNCATED)
"\t.file\t\"tmpxft_00215712_00000000-6_vectorLoad.cudafe1.cpp\"\n\t.text\n#APP\n\t.globl _ZSt21ios_b(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12(...TRUNCATED)
"\n#include <hip/hip_runtime.h>\n#include <thrust/device_vector.h>\n\ntemplate <typename PairType>\n(...TRUNCATED)
"\t.text\n\t.file\t\"vectorLoad.hip\"\n # Start of file scope(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.section\t.text._ZN6thrust11hip_rocprim(...TRUNCATED)
8032f5b6ea26ecdd9badfbe388d77fa6175b2747
"#include \"includes.h\"\n__global__ void update(float* original, float* newTE, float* current, int (...TRUNCATED)
"\t.file\t\"tmpxft_002c57ae_00000000-6_update.cudafe1.cpp\"\n\t.text\n#APP\n\n#NO_APP\n\t.type\t_ZL2(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _Z6updatePfS_S_i\n\t.headerflags\t@\"EF_CUDA_TEXMODE_UNIFIED EF_(...TRUNCATED)
"\n#include <hip/hip_runtime.h>\n#include \"includes.h\"\n__global__ void update(float* original, fl(...TRUNCATED)
"\t.text\n\t.file\t\"update.hip\"\n\t.globl\t_Z21__device_stub__updatePfS_S_i # -- Begin function _Z(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z6updatePfS_S_i ; -(...TRUNCATED)
8d69ab58edb6d98f89dc571062949c1be730b418
"#include <cuda.h>\n#include <cuda_runtime.h>\n#include <device_launch_parameters.h>\n\n#include <cs(...TRUNCATED)
"\t.file\t\"tmpxft_002ab15a_00000000-6_scratchpad-04.cudafe1.cpp\"\n\t.text\n#APP\n\n#NO_APP\n\t.typ(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _Z14test_kernel_3d14cudaPitchedPtr\n\t.headerflags\t@\"EF_CUDA_T(...TRUNCATED)
"#include <hip/hip_runtime.h>\n\n\n\n#include <cstdio>\n\nconstexpr size_t BLOCKSIZE_x = 16;\nconste(...TRUNCATED)
"\t.text\n\t.file\t\"scratchpad-04.hip\"\n\t.globl\t_Z8i_div_upii # -- Begin funct(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z14test_kernel_3d13hipPitc(...TRUNCATED)
82e49b6453335585c3980bc5e14c1cd9b731c6a7
"#include <cstdio>\n#include <string>\n#include <cassert>\n#include <iostream>\n#include <cstddef>\n(...TRUNCATED)
"\t.file\t\"tmpxft_002b7e94_00000000-6_lab.cudafe1.cpp\"\n\t.text\n#APP\n\t.globl _ZSt21ios_base_lib(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv\n\t.headerflags\t@(...TRUNCATED)
"\n#include <hip/hip_runtime.h>\n#include <cstdio>\n#include <string>\n#include <cassert>\n#include (...TRUNCATED)
"\t.text\n\t.file\t\"lab.hip\"\n # Start of file scope inline(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z11k_blocksortPxi ; -(...TRUNCATED)
277929e95b46b743491f69c9c7275f2da25851b8
"#include \"includes.h\"\n__global__ void invert(float *output, int* input, const int size)\n{\nint (...TRUNCATED)
"\t.file\t\"tmpxft_0035a58b_00000000-6_invert.cudafe1.cpp\"\n\t.text\n#APP\n\n#NO_APP\n\t.type\t_ZL2(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _Z6invertPfPii\n\t.headerflags\t@\"EF_CUDA_TEXMODE_UNIFIED EF_CU(...TRUNCATED)
"\n#include <hip/hip_runtime.h>\n#include \"includes.h\"\n__global__ void invert(float *output, int*(...TRUNCATED)
"\t.text\n\t.file\t\"invert.hip\"\n\t.globl\t_Z21__device_stub__invertPfPii # -- Begin function _Z2(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z6invertPfPii ; -(...TRUNCATED)
2041699c3f8f7a1da4964f588f20023e76f558a6
"\n#include \"cuda_runtime.h\"\n#include \"device_launch_parameters.h\"\n#include <stdlib.h>\n#inclu(...TRUNCATED)
"\t.file\t\"tmpxft_00241594_00000000-6_CPU.cudafe1.cpp\"\n\t.text\n#APP\n\t.globl _ZSt21ios_base_lib(...TRUNCATED)
code for sm_89
"\n#include \"hip/hip_runtime.h\"\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n#in(...TRUNCATED)
"\t.text\n\t.file\t\"CPU.hip\"\n # Start of file scope inline(...TRUNCATED)
"\t.text\n\t.p2alignl 7, 3214868480\n\t.fill 96, 4, 3214868480\n\t.type\t__hip_cuid_,@object (...TRUNCATED)
f416884aaf01e9564f5335989f92451aaeffdf2f
"#include \"includes.h\"\n__global__ void shared1R8C1W8C1G(float *A, float *B, float *C, const int N(...TRUNCATED)
"\t.file\t\"tmpxft_0027444b_00000000-6_shared1R8C1W8C1G.cudafe1.cpp\"\n\t.text\n#APP\n\n#NO_APP\n\t.(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _Z16shared1R8C1W8C1GPfS_S_i\n\t.headerflags\t@\"EF_CUDA_TEXMODE_(...TRUNCATED)
"\n#include <hip/hip_runtime.h>\n#include \"includes.h\"\n__global__ void shared1R8C1W8C1G(float *A,(...TRUNCATED)
"\t.text\n\t.file\t\"shared1R8C1W8C1G.hip\"\n\t.globl\t_Z31__device_stub__shared1R8C1W8C1GPfS_S_i # (...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z16shared1R8C1W8C1GPfS_S_i(...TRUNCATED)
503c5c28a1a379566725c5854712eb5580dabb1f
"/*\n\tkernel.cu\n\tHolds the kernel for the main program\n*/\n\n#include <iostream>\n\n#define BLOC(...TRUNCATED)
"\t.file\t\"tmpxft_0024761a_00000000-6_kernel.cudafe1.cpp\"\n\t.text\n#APP\n\t.globl _ZSt21ios_base_(...TRUNCATED)
"\n\tcode for sm_89\n\t\tFunction : _Z12rgba_to_greyP6uchar4Phmm\n\t.headerflags\t@\"EF_CUDA_TEXMODE(...TRUNCATED)
"/*\n\tkernel.cu\n\tHolds the kernel for the main program\n*/\n\n\n#include <hip/hip_runtime.h>\n#in(...TRUNCATED)
"\t.text\n\t.file\t\"kernel.hip\"\n # Start of file scope inl(...TRUNCATED)
"\t.text\n\t.amdgcn_target \"amdgcn-amd-amdhsa--gfx1100\"\n\t.protected\t_Z12rgba_to_greyP15HIP_vect(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
1