#include "cuda_runtime.h"
#include <stdio.h>
#include <time.h>
#include <chrono>

const int a_row = 512;
const int a_col = 3136;
const int b_row = 3136;
const int b_col = 1;

//2维网格2维线程块  最常用
__global__ void VectorMultiply(float** a, float** b, float** c) {
    int thread_x_id = blockIdx.x * blockDim.x + threadIdx.x;   //x是线程块的x做行 线程的x做列
    int thread_y_id = blockIdx.y * blockDim.y + threadIdx.y;  //y是线程块的y做行 线程的y做列
    
    for (int k = 0; k < a_col; k++) {
        c[thread_y_id][thread_x_id] += (a[thread_y_id][k] + b[k][thread_x_id]); 
    }
}

int main() {
    std::chrono::system_clock::time_point begin = std::chrono::system_clock::now();
    //二维指针 指向一维指针（数据指针）
    float* a[a_row] = { NULL };
    float* b[b_row] = { NULL };
    float* c[a_row] = { NULL };
    float data_a[a_row * a_col] = { 0.0 };
    float data_b[b_row * b_col] = { 0.0 };
    float data_c[a_row * b_col] = { 0.0 };

    //二维指针 指向一维指针（数据指针）
    float** device_a = NULL;
    float** device_b = NULL;
    float** device_c = NULL;
    float* device_data_a = NULL;
    float* device_data_b = NULL;
    float* device_data_c = NULL;

    //分配显存
    cudaMalloc((void**)&device_a, sizeof(float*) * a_row);
    cudaMalloc((void**)&device_b, sizeof(float*) * b_row);
    cudaMalloc((void**)&device_c, sizeof(float*) * a_row);
    cudaMalloc((void**)&device_data_a, sizeof(float) * a_row * a_col);
    cudaMalloc((void**)&device_data_b, sizeof(float) * b_row * b_col);
    cudaMalloc((void**)&device_data_c, sizeof(float) * a_row * b_col);

    for (int i = 0; i < a_row * a_col; i++) {
        data_a[i] = 1;
    }
    for (int i = 0; i < b_row * b_col; i++) {
        data_b[i] = 1;
    }
    
    //主机二级指针存放着设备一级指针（数据指针）的地址
    //再通过cudacopy 传给设备二级指针 让设备二级指针和设备一级指针关联（数据指针）
    //而设备一级指针已经通过主机一级指针cudacopy了
    for (int i = 0; i < a_row; i++) {
        a[i] = device_data_a + i * a_col;
        c[i] = device_data_c + i * b_col;
    }
    for (int i = 0; i < b_row; i++) {
        b[i] = device_data_b + i * b_col;
    }

    //将内存中a和b数组的值复制到GPU中显存中
    cudaMemcpy(device_a, a, sizeof(float*) * a_row, cudaMemcpyHostToDevice);
    cudaMemcpy(device_b, b, sizeof(float*) * b_row, cudaMemcpyHostToDevice);
    cudaMemcpy(device_c, c, sizeof(float*) * a_row, cudaMemcpyHostToDevice);
    cudaMemcpy(device_data_a, data_a, sizeof(float) * a_row * a_col, cudaMemcpyHostToDevice);
    cudaMemcpy(device_data_b, data_b, sizeof(float) * b_row * b_col, cudaMemcpyHostToDevice);

    //一个kernel函数由一个gpu的一个grid执行  
    //调用核函数 cpu调用 gpu运行 
    dim3 dim_block(32, 16);      //一个线程块block包含 512个线程threads(最多不超过512个)
    dim3 dim_grid((b_col + dim_block.x - 1) / dim_block.x, (a_row + dim_block.y - 1) / dim_block.y); //一个grid网格包含n / 512个线程块blocks(为了充分利用sm blocks尽可能多)
    VectorMultiply<<<dim_grid, dim_block>>>(device_a, device_b, device_c);

    //1级指针设备 给1级指针主机 赋值
    cudaMemcpy(data_c, device_data_c, sizeof(float) * a_row * b_col, cudaMemcpyDeviceToHost);
    
        for (int i = 0; i < a_row * a_col; i++) 
            printf("a[%d]=%.0f, ", i, data_a[i]);
        for (int i = 0; i < b_row * b_col; i++) 
            printf("b[%d]=%.0f, ", i, data_b[i]);
        for (int i = 0; i < a_row * b_col; i++) 
            printf("c[%d]=%.0f\n", i, data_c[i]);
    std::chrono::system_clock::time_point end = std::chrono::system_clock::now();
    //设置单位为秒
    std::chrono::duration<int, std::milli> milli = std::chrono::duration_cast<
                                                   std::chrono::milliseconds>(end - begin);
    printf("\n程序耗时：%dms\n", milli.count());
   

    //释放gpu显存
    cudaFree(device_a);
    cudaFree(device_b);
    cudaFree(device_c);
    cudaFree(device_data_a);
    cudaFree(device_data_b);
    cudaFree(device_data_c);

    return 0;
}

	.file	"tmpxft_0022ffbe_00000000-6_vector_multiply.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2133:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2133:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_
	.type	_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_, @function
_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_:
.LFB2155:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z14VectorMultiplyPPfS0_S0_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L2:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2155:
	.size	_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_, .-_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_
	.globl	_Z14VectorMultiplyPPfS0_S0_
	.type	_Z14VectorMultiplyPPfS0_S0_, @function
_Z14VectorMultiplyPPfS0_S0_:
.LFB2156:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_
	.cfi_endproc
.LFE2156:
	.size	_Z14VectorMultiplyPPfS0_S0_, .-_Z14VectorMultiplyPPfS0_S0_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"a[%d]=%.0f, "
.LC2:
	.string	"b[%d]=%.0f, "
.LC3:
	.string	"c[%d]=%.0f\n"
.LC4:
	.string	"\n\347\250\213\345\272\217\350\200\227\346\227\266\357\274\232%dms\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2126:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-6467584(%rsp), %r11
	.cfi_def_cfa 11, 6467640
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2904, %rsp
	.cfi_def_cfa_offset 6470544
	movq	%fs:40, %rax
	movq	%rax, 6470472(%rsp)
	xorl	%eax, %eax
	leaq	22856(%rsp), %rbx
	leaq	6216(%rsp), %r15
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1024, %ecx
	leaq	2120(%rsp), %rdi
	movl	$4096, %esi
	movq	%rax, %rbp
	xorl	%eax, %eax
	leaq	72(%rsp), %r12
	rep stosl
	leaq	22856(%rsp), %rdi
	movl	$6272, %ecx
	leaq	47944(%rsp), %r14
	rep stosl
	leaq	6216(%rsp), %rdi
	movl	$1024, %ecx
	leaq	10312(%rsp), %r13
	rep stosl
	leaq	47944(%rsp), %rdi
	movl	$1605632, %ecx
	rep stosl
	leaq	10312(%rsp), %rdi
	movl	$3136, %ecx
	rep stosl
	leaq	72(%rsp), %rdi
	movl	$512, %ecx
	rep stosl
	xorl	%eax, %eax
	movq	%rsp, %rdi
	movq	%rax, (%rsp)
	movq	%rax, 8(%rsp)
	movq	%rax, 16(%rsp)
	movq	%rax, 24(%rsp)
	movq	%rax, 32(%rsp)
	movq	%rax, 40(%rsp)
	call	cudaMalloc@PLT
	leaq	8(%rsp), %rdi
	movl	$25088, %esi
	call	cudaMalloc@PLT
	leaq	16(%rsp), %rdi
	movl	$4096, %esi
	call	cudaMalloc@PLT
	leaq	24(%rsp), %rdi
	movl	$6422528, %esi
	call	cudaMalloc@PLT
	leaq	32(%rsp), %rdi
	movl	$12544, %esi
	call	cudaMalloc@PLT
	movl	$2048, %esi
	leaq	40(%rsp), %rdi
	call	cudaMalloc@PLT
	movss	.LC0(%rip), %xmm0
	xorl	%eax, %eax
	leaq	2120(%rsp), %rsi
.L9:
	movss	%xmm0, (%r14,%rax,4)
	incq	%rax
	cmpq	$1605632, %rax
	jne	.L9
	xorl	%eax, %eax
.L10:
	movss	%xmm0, 0(%r13,%rax,4)
	incq	%rax
	cmpq	$3136, %rax
	jne	.L10
	movq	24(%rsp), %rdi
	movq	40(%rsp), %rcx
	xorl	%eax, %eax
.L11:
	imulq	$12544, %rax, %rdx
	addq	%rdi, %rdx
	movq	%rdx, (%rsi,%rax,8)
	leaq	(%rcx,%rax,4), %rdx
	movq	%rdx, (%r15,%rax,8)
	incq	%rax
	cmpq	$512, %rax
	jne	.L11
	movq	32(%rsp), %rax
	movq	%rbx, %rdx
	leaq	12544(%rax), %rcx
.L12:
	movq	%rax, (%rdx)
	addq	$4, %rax
	addq	$8, %rdx
	cmpq	%rcx, %rax
	jne	.L12
	movq	(%rsp), %rdi
	movl	$1, %ecx
	movl	$4096, %edx
	call	cudaMemcpy@PLT
	movq	8(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbx, %rsi
	movl	$25088, %edx
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdi
	movl	$1, %ecx
	movq	%r15, %rsi
	movl	$4096, %edx
	call	cudaMemcpy@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	movl	$6422528, %edx
	call	cudaMemcpy@PLT
	movq	32(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	movl	$12544, %edx
	call	cudaMemcpy@PLT
	movl	$2147483649, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	salq	$5, %rdx
	movl	$1, %ecx
	movabsq	$137438953473, %rdi
	movl	$1, %esi
	movq	%rdi, 60(%rsp)
	movl	$1, 68(%rsp)
	movq	%rdx, 48(%rsp)
	movl	$1, 56(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L13
	movq	16(%rsp), %rdx
	movq	8(%rsp), %rsi
	movq	(%rsp), %rdi
	call	_Z41__device_stub__Z14VectorMultiplyPPfS0_S0_PPfS0_S0_
.L13:
	movq	40(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	xorl	%ebx, %ebx
	movl	$2048, %edx
	leaq	.LC1(%rip), %r15
	call	cudaMemcpy@PLT
.L14:
	movl	%ebx, %edx
	cvtss2sd	(%r14,%rbx,4), %xmm0
	movq	%r15, %rsi
	movb	$1, %al
	movl	$2, %edi
	incq	%rbx
	call	__printf_chk@PLT
	cmpq	$1605632, %rbx
	jne	.L14
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r14
.L15:
	movl	%ebx, %edx
	movq	%r14, %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	0(%r13,%rbx,4), %xmm0
	call	__printf_chk@PLT
	incq	%rbx
	cmpq	$3136, %rbx
	jne	.L15
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r13
.L16:
	movl	%ebx, %edx
	cvtss2sd	(%r12,%rbx,4), %xmm0
	movq	%r13, %rsi
	movb	$1, %al
	movl	$2, %edi
	incq	%rbx
	call	__printf_chk@PLT
	cmpq	$512, %rbx
	jne	.L16
	call	_ZNSt6chrono3_V212system_clock3nowEv@PLT
	movl	$1000000, %ecx
	movl	$2, %edi
	leaq	.LC4(%rip), %rsi
	subq	%rbp, %rax
	cqto
	idivq	%rcx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	(%rsp), %rdi
	call	cudaFree@PLT
	movq	8(%rsp), %rdi
	call	cudaFree@PLT
	movq	16(%rsp), %rdi
	call	cudaFree@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	32(%rsp), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rdi
	call	cudaFree@PLT
	movq	6470472(%rsp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	addq	$6470488, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2126:
	.size	main, .-main
	.section	.rodata.str1.1
.LC5:
	.string	"_Z14VectorMultiplyPPfS0_S0_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2158:
	.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	_Z14VectorMultiplyPPfS0_S0_(%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
.LFE2158:
	.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
.LC0:
	.long	1065353216
	.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:

#include "hip/hip_runtime.h"
#include <stdio.h>
#include <time.h>
#include <chrono>

const int a_row = 512;
const int a_col = 3136;
const int b_row = 3136;
const int b_col = 1;

//2维网格2维线程块  最常用
__global__ void VectorMultiply(float** a, float** b, float** c) {
    int thread_x_id = blockIdx.x * blockDim.x + threadIdx.x;   //x是线程块的x做行 线程的x做列
    int thread_y_id = blockIdx.y * blockDim.y + threadIdx.y;  //y是线程块的y做行 线程的y做列
    
    for (int k = 0; k < a_col; k++) {
        c[thread_y_id][thread_x_id] += (a[thread_y_id][k] + b[k][thread_x_id]); 
    }
}

int main() {
    std::chrono::system_clock::time_point begin = std::chrono::system_clock::now();
    //二维指针 指向一维指针（数据指针）
    float* a[a_row] = { NULL };
    float* b[b_row] = { NULL };
    float* c[a_row] = { NULL };
    float data_a[a_row * a_col] = { 0.0 };
    float data_b[b_row * b_col] = { 0.0 };
    float data_c[a_row * b_col] = { 0.0 };

    //二维指针 指向一维指针（数据指针）
    float** device_a = NULL;
    float** device_b = NULL;
    float** device_c = NULL;
    float* device_data_a = NULL;
    float* device_data_b = NULL;
    float* device_data_c = NULL;

    //分配显存
    hipMalloc((void**)&device_a, sizeof(float*) * a_row);
    hipMalloc((void**)&device_b, sizeof(float*) * b_row);
    hipMalloc((void**)&device_c, sizeof(float*) * a_row);
    hipMalloc((void**)&device_data_a, sizeof(float) * a_row * a_col);
    hipMalloc((void**)&device_data_b, sizeof(float) * b_row * b_col);
    hipMalloc((void**)&device_data_c, sizeof(float) * a_row * b_col);

    for (int i = 0; i < a_row * a_col; i++) {
        data_a[i] = 1;
    }
    for (int i = 0; i < b_row * b_col; i++) {
        data_b[i] = 1;
    }
    
    //主机二级指针存放着设备一级指针（数据指针）的地址
    //再通过cudacopy 传给设备二级指针 让设备二级指针和设备一级指针关联（数据指针）
    //而设备一级指针已经通过主机一级指针cudacopy了
    for (int i = 0; i < a_row; i++) {
        a[i] = device_data_a + i * a_col;
        c[i] = device_data_c + i * b_col;
    }
    for (int i = 0; i < b_row; i++) {
        b[i] = device_data_b + i * b_col;
    }

    //将内存中a和b数组的值复制到GPU中显存中
    hipMemcpy(device_a, a, sizeof(float*) * a_row, hipMemcpyHostToDevice);
    hipMemcpy(device_b, b, sizeof(float*) * b_row, hipMemcpyHostToDevice);
    hipMemcpy(device_c, c, sizeof(float*) * a_row, hipMemcpyHostToDevice);
    hipMemcpy(device_data_a, data_a, sizeof(float) * a_row * a_col, hipMemcpyHostToDevice);
    hipMemcpy(device_data_b, data_b, sizeof(float) * b_row * b_col, hipMemcpyHostToDevice);

    //一个kernel函数由一个gpu的一个grid执行  
    //调用核函数 cpu调用 gpu运行 
    dim3 dim_block(32, 16);      //一个线程块block包含 512个线程threads(最多不超过512个)
    dim3 dim_grid((b_col + dim_block.x - 1) / dim_block.x, (a_row + dim_block.y - 1) / dim_block.y); //一个grid网格包含n / 512个线程块blocks(为了充分利用sm blocks尽可能多)
    VectorMultiply<<<dim_grid, dim_block>>>(device_a, device_b, device_c);

    //1级指针设备 给1级指针主机 赋值
    hipMemcpy(data_c, device_data_c, sizeof(float) * a_row * b_col, hipMemcpyDeviceToHost);
    
        for (int i = 0; i < a_row * a_col; i++) 
            printf("a[%d]=%.0f, ", i, data_a[i]);
        for (int i = 0; i < b_row * b_col; i++) 
            printf("b[%d]=%.0f, ", i, data_b[i]);
        for (int i = 0; i < a_row * b_col; i++) 
            printf("c[%d]=%.0f\n", i, data_c[i]);
    std::chrono::system_clock::time_point end = std::chrono::system_clock::now();
    //设置单位为秒
    std::chrono::duration<int, std::milli> milli = std::chrono::duration_cast<
                                                   std::chrono::milliseconds>(end - begin);
    printf("\n程序耗时：%dms\n", milli.count());
   

    //释放gpu显存
    hipFree(device_a);
    hipFree(device_b);
    hipFree(device_c);
    hipFree(device_data_a);
    hipFree(device_data_b);
    hipFree(device_data_c);

    return 0;
}

	.text
	.file	"vector_multiply.hip"
	.globl	_Z29__device_stub__VectorMultiplyPPfS0_S0_ # -- Begin function _Z29__device_stub__VectorMultiplyPPfS0_S0_
	.type	_Z29__device_stub__VectorMultiplyPPfS0_S0_,@function
_Z29__device_stub__VectorMultiplyPPfS0_S0_: # @_Z29__device_stub__VectorMultiplyPPfS0_S0_
	.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), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z14VectorMultiplyPPfS0_S0_, %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	_Z29__device_stub__VectorMultiplyPPfS0_S0_, .Lfunc_end0-_Z29__device_stub__VectorMultiplyPPfS0_S0_
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.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
	subq	$6470472, %rsp                  # imm = 0x62BB48
	.cfi_def_cfa_offset 6470528
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	leaq	6208(%rsp), %rdi
	xorl	%ebx, %ebx
	movl	$4096, %edx                     # imm = 0x1000
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	22848(%rsp), %rdi
	movl	$25088, %edx                    # imm = 0x6200
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	2112(%rsp), %rdi
	movl	$4096, %edx                     # imm = 0x1000
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	47936(%rsp), %rdi
	movl	$6422528, %edx                  # imm = 0x620000
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	10304(%rsp), %rdi
	movl	$12544, %edx                    # imm = 0x3100
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	64(%rsp), %rdi
	movl	$2048, %edx                     # imm = 0x800
	xorl	%esi, %esi
	callq	memset@PLT
	leaq	48(%rsp), %rdi
	movq	%rbx, (%rdi)
	leaq	40(%rsp), %r12
	movq	%rbx, (%r12)
	leaq	32(%rsp), %r13
	movq	%rbx, (%r13)
	leaq	24(%rsp), %rbp
	movq	%rbx, (%rbp)
	leaq	16(%rsp), %r15
	movq	%rbx, (%r15)
	leaq	8(%rsp), %r14
	movq	%rbx, (%r14)
	movl	$4096, %esi                     # imm = 0x1000
	callq	hipMalloc
	movl	$25088, %esi                    # imm = 0x6200
	movq	%r12, %rdi
	callq	hipMalloc
	movl	$4096, %esi                     # imm = 0x1000
	movq	%r13, %rdi
	callq	hipMalloc
	movl	$6422528, %esi                  # imm = 0x620000
	movq	%rbp, %rdi
	callq	hipMalloc
	movl	$12544, %esi                    # imm = 0x3100
	movq	%r15, %rdi
	callq	hipMalloc
	movl	$2048, %esi                     # imm = 0x800
	movq	%r14, %rdi
	callq	hipMalloc
.LBB1_1:                                # =>This Inner Loop Header: Depth=1
	movl	$1065353216, 47936(%rsp,%rbx,4) # imm = 0x3F800000
	incq	%rbx
	cmpq	$1605632, %rbx                  # imm = 0x188000
	jne	.LBB1_1
# %bb.2:                                # %.preheader49.preheader
	xorl	%eax, %eax
.LBB1_3:                                # %.preheader49
                                        # =>This Inner Loop Header: Depth=1
	movl	$1065353216, 10304(%rsp,%rax,4) # imm = 0x3F800000
	incq	%rax
	cmpq	$3136, %rax                     # imm = 0xC40
	jne	.LBB1_3
# %bb.4:                                # %.preheader48
	movq	24(%rsp), %rax
	movq	8(%rsp), %rcx
	xorl	%edx, %edx
.LBB1_5:                                # =>This Inner Loop Header: Depth=1
	movq	%rax, 6208(%rsp,%rdx,2)
	leaq	(%rcx,%rdx), %rsi
	movq	%rsi, 2112(%rsp,%rdx,2)
	addq	$12544, %rax                    # imm = 0x3100
	addq	$4, %rdx
	cmpq	$2048, %rdx                     # imm = 0x800
	jne	.LBB1_5
# %bb.6:                                # %.preheader47
	movq	16(%rsp), %rax
	xorl	%ecx, %ecx
.LBB1_7:                                # =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, 22848(%rsp,%rcx,2)
	addq	$4, %rcx
	cmpq	$12544, %rcx                    # imm = 0x3100
	jne	.LBB1_7
# %bb.8:
	movq	48(%rsp), %rdi
	leaq	6208(%rsp), %rsi
	movl	$4096, %edx                     # imm = 0x1000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	40(%rsp), %rdi
	leaq	22848(%rsp), %rsi
	movl	$25088, %edx                    # imm = 0x6200
	movl	$1, %ecx
	callq	hipMemcpy
	movq	32(%rsp), %rdi
	leaq	2112(%rsp), %rsi
	movl	$4096, %edx                     # imm = 0x1000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi
	leaq	47936(%rsp), %rsi
	movl	$6422528, %edx                  # imm = 0x620000
	movl	$1, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rdi
	leaq	10304(%rsp), %rsi
	movl	$12544, %edx                    # imm = 0x3100
	movl	$1, %ecx
	callq	hipMemcpy
	movabsq	$137438953473, %rdi             # imm = 0x2000000001
	movabsq	$68719476768, %rdx              # imm = 0x1000000020
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_10
# %bb.9:
	movq	48(%rsp), %rdi
	movq	40(%rsp), %rsi
	movq	32(%rsp), %rdx
	callq	_Z29__device_stub__VectorMultiplyPPfS0_S0_
.LBB1_10:
	movq	8(%rsp), %rsi
	leaq	64(%rsp), %rdi
	movl	$2048, %edx                     # imm = 0x800
	movl	$2, %ecx
	callq	hipMemcpy
	xorl	%r14d, %r14d
.LBB1_11:                               # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	47936(%rsp,%r14,4), %xmm0
	movl	$.L.str, %edi
	movl	%r14d, %esi
	movb	$1, %al
	callq	printf
	incq	%r14
	cmpq	$1605632, %r14                  # imm = 0x188000
	jne	.LBB1_11
# %bb.12:                               # %.preheader46.preheader
	xorl	%r14d, %r14d
.LBB1_13:                               # %.preheader46
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	10304(%rsp,%r14,4), %xmm0
	movl	$.L.str.1, %edi
	movl	%r14d, %esi
	movb	$1, %al
	callq	printf
	incq	%r14
	cmpq	$3136, %r14                     # imm = 0xC40
	jne	.LBB1_13
# %bb.14:                               # %.preheader.preheader
	xorl	%r14d, %r14d
.LBB1_15:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	64(%rsp,%r14,4), %xmm0
	movl	$.L.str.2, %edi
	movl	%r14d, %esi
	movb	$1, %al
	callq	printf
	incq	%r14
	cmpq	$512, %r14                      # imm = 0x200
	jne	.LBB1_15
# %bb.16:
	callq	_ZNSt6chrono3_V212system_clock3nowEv
	subq	56(%rsp), %rax                  # 8-byte Folded Reload
	movabsq	$4835703278458516699, %rcx      # imm = 0x431BDE82D7B634DB
	imulq	%rcx
	movq	%rdx, %rsi
	shrq	$63, %rsi
	shrq	$18, %rdx
	addl	%edx, %esi
	movl	$.L.str.3, %edi
                                        # kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	printf
	movq	48(%rsp), %rdi
	callq	hipFree
	movq	40(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	8(%rsp), %rdi
	callq	hipFree
	xorl	%eax, %eax
	addq	$6470472, %rsp                  # imm = 0x62BB48
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.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	$_Z14VectorMultiplyPPfS0_S0_, %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	_Z14VectorMultiplyPPfS0_S0_,@object # @_Z14VectorMultiplyPPfS0_S0_
	.section	.rodata,"a",@progbits
	.globl	_Z14VectorMultiplyPPfS0_S0_
	.p2align	3, 0x0
_Z14VectorMultiplyPPfS0_S0_:
	.quad	_Z29__device_stub__VectorMultiplyPPfS0_S0_
	.size	_Z14VectorMultiplyPPfS0_S0_, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"a[%d]=%.0f, "
	.size	.L.str, 13

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"b[%d]=%.0f, "
	.size	.L.str.1, 13

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"c[%d]=%.0f\n"
	.size	.L.str.2, 12

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"\n\347\250\213\345\272\217\350\200\227\346\227\266\357\274\232%dms\n"
	.size	.L.str.3, 22

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z14VectorMultiplyPPfS0_S0_"
	.size	.L__unnamed_1, 28

	.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

	.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 _Z29__device_stub__VectorMultiplyPPfS0_S0_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z14VectorMultiplyPPfS0_S0_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z14VectorMultiplyPPfS0_S0_ ; -- Begin function _Z14VectorMultiplyPPfS0_S0_
	.globl	_Z14VectorMultiplyPPfS0_S0_
	.p2align	8
	.type	_Z14VectorMultiplyPPfS0_S0_,@function
_Z14VectorMultiplyPPfS0_S0_:            ; @_Z14VectorMultiplyPPfS0_S0_
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x24
	s_load_b64 s[2:3], s[0:1], 0x10
	v_bfe_u32 v1, v0, 10, 10
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s5, s4, 16
	s_and_b32 s4, s4, 0xffff
	v_mad_u64_u32 v[2:3], null, s15, s5, v[1:2]
	v_mad_u64_u32 v[6:7], null, s14, s4, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_lshlrev_b64 v[0:1], 2, v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v5, vcc_lo, s3, v3, vcc_lo
	s_load_b128 s[0:3], s[0:1], 0x0
	global_load_b64 v[4:5], v[4:5], off
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v6, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v7, vcc_lo, s1, v3, vcc_lo
	s_mov_b64 s[0:1], 0
	s_waitcnt vmcnt(0)
	v_add_co_u32 v2, vcc_lo, v4, v0
	v_add_co_ci_u32_e32 v3, vcc_lo, v5, v1, vcc_lo
	global_load_b64 v[4:5], v[6:7], off
	global_load_b32 v6, v[2:3], off
.LBB0_1:                                ; =>This Inner Loop Header: Depth=1
	s_load_b64 s[4:5], s[2:3], 0x0
	s_waitcnt vmcnt(1)
	v_add_co_u32 v7, vcc_lo, v4, s0
	v_add_co_ci_u32_e32 v8, vcc_lo, s1, v5, vcc_lo
	s_add_u32 s0, s0, 4
	s_addc_u32 s1, s1, 0
	s_add_u32 s2, s2, 8
	s_addc_u32 s3, s3, 0
	s_cmpk_eq_i32 s0, 0x3100
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v9, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v10, vcc_lo, s5, v1, vcc_lo
	global_load_b32 v7, v[7:8], off
	global_load_b32 v8, v[9:10], off
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v7, v7, v8
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f32_e32 v6, v7, v6
	global_store_b32 v[2:3], v6, off
	s_cbranch_scc0 .LBB0_1
; %bb.2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14VectorMultiplyPPfS0_S0_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 11
		.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	_Z14VectorMultiplyPPfS0_S0_, .Lfunc_end0-_Z14VectorMultiplyPPfS0_S0_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 300
; NumSgprs: 18
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 11
; Occupancy: 16
; WaveLimiterHint : 1
; 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:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z14VectorMultiplyPPfS0_S0_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z14VectorMultiplyPPfS0_S0_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     11
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
