#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda_runtime.h>

// Host input vectors.
float *uva_a;
float *uva_b;
// Host output vector.
float *uva_c;

// Size of arrays.
int n = 0;

/* CUDA kernel. Each thread takes care of one element of c. */
__global__ void vecAdd(float *a, float *b, float *c, int n) {
	// Get our global thread ID
	int id = blockIdx.x * blockDim.x + threadIdx.x;
	// Make sure we do not go out of bounds
	if (id < n)
		c[id] = a[id] + b[id];
}

void init_array() {
	fprintf(stdout, "Inicializando os arrays.\n");
	int i;
	// Initialize vectors on host.
        for (i = 0; i < n; i++) {
		uva_a[i] = sinf(i) * sinf(i);
		uva_b[i] = cosf(i) * cosf(i);
        }
}

void print_array() {
	int i;
	printf("Imprimindo o Resultado.\n");
	for (i = 0; i < n; i++) {
		fprintf(stdout, "uva_c[%07d]: %f\n", i, uva_c[i]);
  	}
}

void check_result(){
	// Soma dos elementos do array C e divide por N, o valor deve ser igual a 1.
	int i;
	float sum = 0;
	fprintf(stdout, "Verificando o Resultado.\n");  
	for (i = 0; i < n; i++) {
		sum += uva_c[i];
	}
	
	fprintf(stdout, "Resultado Final: (%f, %f)\n", sum, (float)(sum / (float)n));
}

/* Main code */
int main(int argc, char *argv[]) {
	// Size of vectors
	n = atoi(argv[1]);

	printf("Número de Elementos: %d\n", n);

	// Size, in bytes, of each vector
	size_t bytes = n * sizeof(float);
	printf("Memória que será alocada para os 3 arrays: %d\n", 3 * bytes);

	printf("Allocate memory for each vector on host\n");
	// Allocate memory for each vector on host
	cudaMallocManaged(&uva_a, bytes);
	cudaMallocManaged(&uva_b, bytes);
	cudaMallocManaged(&uva_c, bytes);

	printf("Initialize vectors on host\n");
	init_array();

	// Number of threads in each thread block.
	int threadsPerBlock = 256;
	// Number of thread blocks in grid.
	int blocksPerGrid = (n + threadsPerBlock - 1) / threadsPerBlock;

	printf("Execute the kernel\n");
	cudaEvent_t start_event, stop_event;
	float time_kernel_execution;
	int eventflags = cudaEventBlockingSync;
	cudaEventCreateWithFlags(&start_event, eventflags);
	cudaEventCreateWithFlags(&stop_event, eventflags);

	/* Recording the time to kernel execution */
	cudaEventRecord(start_event, 0);

	/* Execute the kernel. */
	vecAdd <<< blocksPerGrid, threadsPerBlock >>> (uva_a, uva_b, uva_c, n);

	/* Synchronize */
	cudaDeviceSynchronize();

	cudaEventRecord(stop_event, 0);
	cudaEventSynchronize(stop_event);
	cudaEventElapsedTime(&time_kernel_execution, start_event, stop_event);
	printf("Time Kernel Execution: %f s\n", (time_kernel_execution / 1000.0f));

	print_array();

	check_result();

	printf("Time Kernel Execution: %f ms\n", (time_kernel_execution));

	// Release device memory
	cudaFree(uva_a);
	cudaFree(uva_b);
	cudaFree(uva_c);

	return 0;
}

	.file	"tmpxft_00222eeb_00000000-6_vectoradd.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2033:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2033:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Inicializando os arrays.\n"
	.text
	.globl	_Z10init_arrayv
	.type	_Z10init_arrayv, @function
_Z10init_arrayv:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdx
	movl	$2, %esi
	xorl	%eax, %eax
	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
	xorl	%ebx, %ebx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	stdout(%rip), %rdi
	leaq	12(%rsp), %r13
	call	__fprintf_chk@PLT
	movl	n(%rip), %ebp
	movq	uva_a(%rip), %r12
	movq	uva_b(%rip), %r14
.L3:
	cmpl	%ebx, %ebp
	jle	.L7
	cvtsi2ssl	%ebx, %xmm0
	leaq	8(%rsp), %rsi
	movq	%r13, %rdi
	call	sincosf@PLT
	movss	8(%rsp), %xmm0
	movss	12(%rsp), %xmm1
	mulss	%xmm0, %xmm0
	mulss	%xmm1, %xmm1
	movss	%xmm1, (%r12,%rbx,4)
	movss	%xmm0, (%r14,%rbx,4)
	incq	%rbx
	jmp	.L3
.L7:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	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
.LFE2027:
	.size	_Z10init_arrayv, .-_Z10init_arrayv
	.section	.rodata.str1.1
.LC1:
	.string	"Imprimindo o Resultado.\n"
.LC2:
	.string	"uva_c[%07d]: %f\n"
	.text
	.globl	_Z11print_arrayv
	.type	_Z11print_arrayv, @function
_Z11print_arrayv:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC2(%rip), %rbp
	xorl	%ebx, %ebx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	call	__printf_chk@PLT
.L9:
	cmpl	%ebx, n(%rip)
	movl	%ebx, %ecx
	jle	.L12
	movq	uva_c(%rip), %rax
	movq	stdout(%rip), %rdi
	movq	%rbp, %rdx
	movl	$2, %esi
	cvtss2sd	(%rax,%rbx,4), %xmm0
	movb	$1, %al
	incq	%rbx
	call	__fprintf_chk@PLT
	jmp	.L9
.L12:
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z11print_arrayv, .-_Z11print_arrayv
	.section	.rodata.str1.1
.LC4:
	.string	"Verificando o Resultado.\n"
.LC5:
	.string	"Resultado Final: (%f, %f)\n"
	.text
	.globl	_Z12check_resultv
	.type	_Z12check_resultv, @function
_Z12check_resultv:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%rsi
	.cfi_def_cfa_offset 16
	movq	stdout(%rip), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdx
	call	__fprintf_chk@PLT
	movl	n(%rip), %edx
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	movq	uva_c(%rip), %rcx
.L14:
	cmpl	%eax, %edx
	jle	.L17
	addss	(%rcx,%rax,4), %xmm0
	incq	%rax
	jmp	.L14
.L17:
	cvtsi2ssl	%edx, %xmm2
	movaps	%xmm0, %xmm1
	movq	stdout(%rip), %rdi
	movb	$2, %al
	leaq	.LC5(%rip), %rdx
	movl	$2, %esi
	popq	%rcx
	.cfi_def_cfa_offset 8
	cvtss2sd	%xmm0, %xmm0
	divss	%xmm2, %xmm1
	cvtss2sd	%xmm1, %xmm1
	jmp	__fprintf_chk@PLT
	.cfi_endproc
.LFE2029:
	.size	_Z12check_resultv, .-_Z12check_resultv
	.globl	_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i
	.type	_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i, @function
_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i:
.LFB2055:
	.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	.L18
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z6vecAddPfS_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
.L18:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i, .-_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i
	.globl	_Z6vecAddPfS_S_i
	.type	_Z6vecAddPfS_S_i, @function
_Z6vecAddPfS_S_i:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i
	.cfi_endproc
.LFE2056:
	.size	_Z6vecAddPfS_S_i, .-_Z6vecAddPfS_S_i
	.section	.rodata.str1.1
.LC6:
	.string	"N\303\272mero de Elementos: %d\n"
.LC7:
	.string	"Mem\303\263ria que ser\303\241 alocada para os 3 arrays: %d\n"
.LC8:
	.string	"Allocate memory for each vector on host\n"
.LC9:
	.string	"Initialize vectors on host\n"
.LC10:
	.string	"Execute the kernel\n"
.LC12:
	.string	"Time Kernel Execution: %f s\n"
.LC13:
	.string	"Time Kernel Execution: %f ms\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2030:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	8(%rsi), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	atoi@PLT
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	movl	%eax, n(%rip)
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	n(%rip), %rdx
	leaq	.LC7(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	leaq	0(,%rdx,4), %rbx
	imulq	$12, %rdx, %rdx
	call	__printf_chk@PLT
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbx, %rsi
	movl	$1, %edx
	leaq	uva_a(%rip), %rdi
	call	cudaMallocManaged@PLT
	movq	%rbx, %rsi
	movl	$1, %edx
	leaq	uva_b(%rip), %rdi
	call	cudaMallocManaged@PLT
	movl	$1, %edx
	movq	%rbx, %rsi
	leaq	uva_c(%rip), %rdi
	call	cudaMallocManaged@PLT
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	_Z10init_arrayv
	movl	n(%rip), %eax
	movl	$256, %ecx
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	addl	$255, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rsp, %rdi
	movl	$1, %esi
	call	cudaEventCreateWithFlags@PLT
	leaq	8(%rsp), %rdi
	movl	$1, %esi
	call	cudaEventCreateWithFlags@PLT
	movq	(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%ebx, 16(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	$16777217, %edx
	movl	$1, %ecx
	movl	$1, 36(%rsp)
	movq	%rax, 20(%rsp)
	movq	16(%rsp), %rdi
	salq	$8, %rdx
	movl	24(%rsp), %esi
	movq	%rdx, 28(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L24
	movl	n(%rip), %ecx
	movq	uva_c(%rip), %rdx
	movq	uva_b(%rip), %rsi
	movq	uva_a(%rip), %rdi
	call	_Z30__device_stub__Z6vecAddPfS_S_iPfS_S_i
.L24:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	8(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	28(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	movss	28(%rsp), %xmm0
	divss	.LC11(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	call	_Z11print_arrayv
	call	_Z12check_resultv
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	28(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	uva_a(%rip), %rdi
	call	cudaFree@PLT
	movq	uva_b(%rip), %rdi
	call	cudaFree@PLT
	movq	uva_c(%rip), %rdi
	call	cudaFree@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2030:
	.size	main, .-main
	.section	.rodata.str1.1
.LC14:
	.string	"_Z6vecAddPfS_S_i"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2058:
	.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	.LC14(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z6vecAddPfS_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
.LFE2058:
	.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
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	uva_c
	.align 8
	.type	uva_c, @object
	.size	uva_c, 8
uva_c:
	.zero	8
	.globl	uva_b
	.align 8
	.type	uva_b, @object
	.size	uva_b, 8
uva_b:
	.zero	8
	.globl	uva_a
	.align 8
	.type	uva_a, @object
	.size	uva_a, 8
uva_a:
	.zero	8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC11:
	.long	1148846080
	.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 <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <hip/hip_runtime.h>

// Host input vectors.
float *uva_a;
float *uva_b;
// Host output vector.
float *uva_c;

// Size of arrays.
int n = 0;

/* CUDA kernel. Each thread takes care of one element of c. */
__global__ void vecAdd(float *a, float *b, float *c, int n) {
	// Get our global thread ID
	int id = blockIdx.x * blockDim.x + threadIdx.x;
	// Make sure we do not go out of bounds
	if (id < n)
		c[id] = a[id] + b[id];
}

void init_array() {
	fprintf(stdout, "Inicializando os arrays.\n");
	int i;
	// Initialize vectors on host.
        for (i = 0; i < n; i++) {
		uva_a[i] = sinf(i) * sinf(i);
		uva_b[i] = cosf(i) * cosf(i);
        }
}

void print_array() {
	int i;
	printf("Imprimindo o Resultado.\n");
	for (i = 0; i < n; i++) {
		fprintf(stdout, "uva_c[%07d]: %f\n", i, uva_c[i]);
  	}
}

void check_result(){
	// Soma dos elementos do array C e divide por N, o valor deve ser igual a 1.
	int i;
	float sum = 0;
	fprintf(stdout, "Verificando o Resultado.\n");  
	for (i = 0; i < n; i++) {
		sum += uva_c[i];
	}
	
	fprintf(stdout, "Resultado Final: (%f, %f)\n", sum, (float)(sum / (float)n));
}

/* Main code */
int main(int argc, char *argv[]) {
	// Size of vectors
	n = atoi(argv[1]);

	printf("Número de Elementos: %d\n", n);

	// Size, in bytes, of each vector
	size_t bytes = n * sizeof(float);
	printf("Memória que será alocada para os 3 arrays: %d\n", 3 * bytes);

	printf("Allocate memory for each vector on host\n");
	// Allocate memory for each vector on host
	hipMallocManaged(&uva_a, bytes);
	hipMallocManaged(&uva_b, bytes);
	hipMallocManaged(&uva_c, bytes);

	printf("Initialize vectors on host\n");
	init_array();

	// Number of threads in each thread block.
	int threadsPerBlock = 256;
	// Number of thread blocks in grid.
	int blocksPerGrid = (n + threadsPerBlock - 1) / threadsPerBlock;

	printf("Execute the kernel\n");
	hipEvent_t start_event, stop_event;
	float time_kernel_execution;
	int eventflags = hipEventBlockingSync;
	hipEventCreateWithFlags(&start_event, eventflags);
	hipEventCreateWithFlags(&stop_event, eventflags);

	/* Recording the time to kernel execution */
	hipEventRecord(start_event, 0);

	/* Execute the kernel. */
	vecAdd <<< blocksPerGrid, threadsPerBlock >>> (uva_a, uva_b, uva_c, n);

	/* Synchronize */
	hipDeviceSynchronize();

	hipEventRecord(stop_event, 0);
	hipEventSynchronize(stop_event);
	hipEventElapsedTime(&time_kernel_execution, start_event, stop_event);
	printf("Time Kernel Execution: %f s\n", (time_kernel_execution / 1000.0f));

	print_array();

	check_result();

	printf("Time Kernel Execution: %f ms\n", (time_kernel_execution));

	// Release device memory
	hipFree(uva_a);
	hipFree(uva_b);
	hipFree(uva_c);

	return 0;
}

	.text
	.file	"vectoradd.hip"
	.globl	_Z21__device_stub__vecAddPfS_S_i # -- Begin function _Z21__device_stub__vecAddPfS_S_i
	.type	_Z21__device_stub__vecAddPfS_S_i,@function
_Z21__device_stub__vecAddPfS_S_i:       # @_Z21__device_stub__vecAddPfS_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	$_Z6vecAddPfS_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	_Z21__device_stub__vecAddPfS_S_i, .Lfunc_end0-_Z21__device_stub__vecAddPfS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z10init_arrayv                 # -- Begin function _Z10init_arrayv
	.type	_Z10init_arrayv,@function
_Z10init_arrayv:                        # @_Z10init_arrayv
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movq	stdout(%rip), %rcx
	movl	$.L.str, %edi
	movl	$25, %esi
	movl	$1, %edx
	callq	fwrite@PLT
	cmpl	$0, n(%rip)
	jle	.LBB1_3
# %bb.1:                                # %.lr.ph.preheader
	xorl	%ebx, %ebx
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movss	%xmm0, 12(%rsp)                 # 4-byte Spill
	callq	sinf
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	sinf
	mulss	8(%rsp), %xmm0                  # 4-byte Folded Reload
	movq	uva_a(%rip), %rax
	movss	%xmm0, (%rax,%rbx,4)
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	cosf
	movss	%xmm0, 8(%rsp)                  # 4-byte Spill
	movss	12(%rsp), %xmm0                 # 4-byte Reload
                                        # xmm0 = mem[0],zero,zero,zero
	callq	cosf
	mulss	8(%rsp), %xmm0                  # 4-byte Folded Reload
	movq	uva_b(%rip), %rax
	movss	%xmm0, (%rax,%rbx,4)
	incq	%rbx
	movslq	n(%rip), %rax
	cmpq	%rax, %rbx
	jl	.LBB1_2
.LBB1_3:                                # %._crit_edge
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z10init_arrayv, .Lfunc_end1-_Z10init_arrayv
	.cfi_endproc
                                        # -- End function
	.globl	_Z11print_arrayv                # -- Begin function _Z11print_arrayv
	.type	_Z11print_arrayv,@function
_Z11print_arrayv:                       # @_Z11print_arrayv
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	$.Lstr, %edi
	callq	puts@PLT
	cmpl	$0, n(%rip)
	jle	.LBB2_3
# %bb.1:                                # %.lr.ph.preheader
	xorl	%ebx, %ebx
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	stdout(%rip), %rdi
	movq	uva_c(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rax,%rbx,4), %xmm0
	movl	$.L.str.2, %esi
	movl	%ebx, %edx
	movb	$1, %al
	callq	fprintf
	incq	%rbx
	movslq	n(%rip), %rax
	cmpq	%rax, %rbx
	jl	.LBB2_2
.LBB2_3:                                # %._crit_edge
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z11print_arrayv, .Lfunc_end2-_Z11print_arrayv
	.cfi_endproc
                                        # -- End function
	.globl	_Z12check_resultv               # -- Begin function _Z12check_resultv
	.type	_Z12check_resultv,@function
_Z12check_resultv:                      # @_Z12check_resultv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	stdout(%rip), %rcx
	movl	$.L.str.3, %edi
	movl	$25, %esi
	movl	$1, %edx
	callq	fwrite@PLT
	movl	n(%rip), %eax
	xorps	%xmm1, %xmm1
	testl	%eax, %eax
	jle	.LBB3_3
# %bb.1:                                # %.lr.ph
	movq	uva_c(%rip), %rcx
	xorl	%edx, %edx
.LBB3_2:                                # =>This Inner Loop Header: Depth=1
	addss	(%rcx,%rdx,4), %xmm1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	.LBB3_2
.LBB3_3:                                # %._crit_edge
	movq	stdout(%rip), %rdi
	cvtsi2ss	%eax, %xmm2
	cvtss2sd	%xmm1, %xmm0
	divss	%xmm2, %xmm1
	cvtss2sd	%xmm1, %xmm1
	movl	$.L.str.4, %esi
	movb	$2, %al
	popq	%rcx
	.cfi_def_cfa_offset 8
	jmp	fprintf                         # TAILCALL
.Lfunc_end3:
	.size	_Z12check_resultv, .Lfunc_end3-_Z12check_resultv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI4_0:
	.long	0x447a0000                      # float 1000
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, n(%rip)
	movl	$.L.str.5, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	printf
	movslq	n(%rip), %rbx
	shlq	$2, %rbx
	leaq	(%rbx,%rbx,2), %rsi
	movl	$.L.str.6, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	$uva_a, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	movl	$uva_b, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	movl	$uva_c, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	hipMallocManaged
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	callq	_Z10init_arrayv
	movl	n(%rip), %ebx
	leal	255(%rbx), %eax
	addl	$510, %ebx                      # imm = 0x1FE
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$8, %ebx
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	leaq	8(%rsp), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	hipEventCreateWithFlags
	movq	%rsp, %rdi
	movl	$1, %esi
	callq	hipEventCreateWithFlags
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	btsq	$32, %rbx
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$256, %rdx                      # imm = 0x100
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB4_2
# %bb.1:
	movq	uva_a(%rip), %rdi
	movq	uva_b(%rip), %rsi
	movq	uva_c(%rip), %rdx
	movl	n(%rip), %ecx
	callq	_Z21__device_stub__vecAddPfS_S_i
.LBB4_2:
	callq	hipDeviceSynchronize
	movq	(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	(%rsp), %rdi
	callq	hipEventSynchronize
	movq	8(%rsp), %rsi
	movq	(%rsp), %rdx
	leaq	20(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipEventElapsedTime
	movss	(%rbx), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	divss	.LCPI4_0(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movl	$.L.str.10, %edi
	movb	$1, %al
	callq	printf
	callq	_Z11print_arrayv
	callq	_Z12check_resultv
	xorps	%xmm0, %xmm0
	cvtss2sd	(%rbx), %xmm0
	movl	$.L.str.11, %edi
	movb	$1, %al
	callq	printf
	movq	uva_a(%rip), %rdi
	callq	hipFree
	movq	uva_b(%rip), %rdi
	callq	hipFree
	movq	uva_c(%rip), %rdi
	callq	hipFree
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	main, .Lfunc_end4-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	.LBB5_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB5_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6vecAddPfS_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_end5:
	.size	__hip_module_ctor, .Lfunc_end5-__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	.LBB6_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
.LBB6_2:
	retq
.Lfunc_end6:
	.size	__hip_module_dtor, .Lfunc_end6-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	uva_a,@object                   # @uva_a
	.bss
	.globl	uva_a
	.p2align	3, 0x0
uva_a:
	.quad	0
	.size	uva_a, 8

	.type	uva_b,@object                   # @uva_b
	.globl	uva_b
	.p2align	3, 0x0
uva_b:
	.quad	0
	.size	uva_b, 8

	.type	uva_c,@object                   # @uva_c
	.globl	uva_c
	.p2align	3, 0x0
uva_c:
	.quad	0
	.size	uva_c, 8

	.type	n,@object                       # @n
	.globl	n
	.p2align	2, 0x0
n:
	.long	0                               # 0x0
	.size	n, 4

	.type	_Z6vecAddPfS_S_i,@object        # @_Z6vecAddPfS_S_i
	.section	.rodata,"a",@progbits
	.globl	_Z6vecAddPfS_S_i
	.p2align	3, 0x0
_Z6vecAddPfS_S_i:
	.quad	_Z21__device_stub__vecAddPfS_S_i
	.size	_Z6vecAddPfS_S_i, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Inicializando os arrays.\n"
	.size	.L.str, 26

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"uva_c[%07d]: %f\n"
	.size	.L.str.2, 17

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Verificando o Resultado.\n"
	.size	.L.str.3, 26

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Resultado Final: (%f, %f)\n"
	.size	.L.str.4, 27

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"N\303\272mero de Elementos: %d\n"
	.size	.L.str.5, 26

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Mem\303\263ria que ser\303\241 alocada para os 3 arrays: %d\n"
	.size	.L.str.6, 49

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Time Kernel Execution: %f s\n"
	.size	.L.str.10, 29

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Time Kernel Execution: %f ms\n"
	.size	.L.str.11, 30

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z6vecAddPfS_S_i"
	.size	.L__unnamed_1, 17

	.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	"Imprimindo o Resultado."
	.size	.Lstr, 24

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Allocate memory for each vector on host"
	.size	.Lstr.1, 40

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"Initialize vectors on host"
	.size	.Lstr.2, 27

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"Execute the kernel"
	.size	.Lstr.3, 19

	.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 _Z21__device_stub__vecAddPfS_S_i
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym uva_a
	.addrsig_sym uva_b
	.addrsig_sym uva_c
	.addrsig_sym _Z6vecAddPfS_S_i
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z6vecAddPfS_S_i        ; -- Begin function _Z6vecAddPfS_S_i
	.globl	_Z6vecAddPfS_S_i
	.p2align	8
	.type	_Z6vecAddPfS_S_i,@function
_Z6vecAddPfS_S_i:                       ; @_Z6vecAddPfS_S_i
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s3, s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_i32_e64 s3, v1
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v2, 31, v1
	s_load_b64 s[0:1], s[0:1], 0x10
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v4, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s7, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b32 v2, v[2:3], off
	global_load_b32 v3, v[4:5], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_waitcnt vmcnt(0)
	v_add_f32_e32 v2, v2, v3
	global_store_b32 v[0:1], v2, off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6vecAddPfS_S_i
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 15
		.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 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 6
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z6vecAddPfS_S_i, .Lfunc_end0-_Z6vecAddPfS_S_i
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 180
; NumSgprs: 18
; NumVgprs: 6
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 6
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.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:           _Z6vecAddPfS_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z6vecAddPfS_S_i.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     6
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
