#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "cuda.h"

using namespace std;

#define BILLION 1E9;

__global__ void vecAddKernel(float *A, float *B, float *C, int n){
	int i = threadIdx.x+blockDim.x*blockIdx.x;
	if(i<n) C[i] = A[i]+B[i];
}

void vecAddK(float *A, float *B, float *C, int n){
	for(int i=0; i<n; i++)
		C[i] = A[i]+B[i];
}

void vecAdd(float *hA, float *hB, float *hC, int n){
	struct timespec requestStart, requestEnd, requestS, requestE;
    int size = n*sizeof(float);
    float dA[size], dB[size], dC[size];

    clock_gettime(CLOCK_REALTIME, &requestStart);
    vecAddK(hA,hB,dC,n);
    cout << dC[0] <<" " << dC[n-1] << endl;
    clock_gettime(CLOCK_REALTIME, &requestEnd);

    cudaMalloc((void **) &dA, size);
    cudaMemcpy(dA, hA, size, cudaMemcpyHostToDevice);
    cudaMalloc((void **) &dB, size);
    cudaMemcpy(dB, hB, size, cudaMemcpyHostToDevice);
    cudaMalloc((void **) &dC, size);

	dim3 DimGrid(((n-1)/256)+1,1,1);
    dim3 DimBlock(256,1,1);
    clock_gettime(CLOCK_REALTIME, &requestS);
    vecAddKernel<<<DimGrid,DimBlock>>>(dA,dB,dC,n);
    cudaMemcpy(hC, dC, size, cudaMemcpyDeviceToHost);
    cout << dC[0] <<" " << dC[n-1] << endl;
    clock_gettime(CLOCK_REALTIME, &requestE);

    double accum = (double) (requestEnd.tv_sec - requestStart.tv_sec) + (requestEnd.tv_nsec - requestStart.tv_nsec)/BILLION;
    printf( "CPU %lf\n", accum );
    double accumu = (double) (requestE.tv_sec - requestS.tv_sec) + (requestE.tv_nsec - requestS.tv_nsec) / BILLION;
	printf( "GPU %lf\n", accumu );

    cudaFree(dA); cudaFree(dB); cudaFree(dC);
    cudaError_t err = cudaMalloc((void **) &dA, size);

	if(err != cudaSuccess){
		printf("%s en %s en línea %d\n", cudaGetErrorString(err),__FILE__,__LINE__);
		exit(EXIT_FAILURE);
	}
}

int main(){
	int n, i=0;
	string line;
	ifstream fA("data/0/input0.raw");
	ifstream fB("data/0/input1.raw");
	ifstream fC("data/0/output.raw");

	if(fA){
		getline(fA,line);
		n = stoi(line,NULL,0);
	}

	float hA[n];
	float hB[n];
	float hC[n];


	if(fA){
		while(getline(fA,line)){
			float f = stof(line,NULL);
			hA[i] = f;
			i++;
		}

		fA.close();
	}

	i=0;
	if(fB){
		getline(fB,line);
		n = stoi(line,NULL,0);
		while(getline(fB,line)){
			float f = stof(line,NULL);
			hB[i] = f;
			i++;
		}

		fB.close();
	}
	vecAdd(hA, hB, hC, n);
}

	.file	"tmpxft_002cdfe8_00000000-6_sumaVec.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4135:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4135:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z7vecAddKPfS_S_i
	.type	_Z7vecAddKPfS_S_i, @function
_Z7vecAddKPfS_S_i:
.LFB4129:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
.L3:
	cmpl	%eax, %ecx
	jle	.L6
	movss	(%rdi,%rax,4), %xmm0
	addss	(%rsi,%rax,4), %xmm0
	movss	%xmm0, (%rdx,%rax,4)
	incq	%rax
	jmp	.L3
.L6:
	ret
	.cfi_endproc
.LFE4129:
	.size	_Z7vecAddKPfS_S_i, .-_Z7vecAddKPfS_S_i
	.globl	_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i
	.type	_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i, @function
_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i:
.LFB4157:
	.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	.L7
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z12vecAddKernelPfS_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
.L7:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4157:
	.size	_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i, .-_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i
	.globl	_Z12vecAddKernelPfS_S_i
	.type	_Z12vecAddKernelPfS_S_i, @function
_Z12vecAddKernelPfS_S_i:
.LFB4158:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i
	.cfi_endproc
.LFE4158:
	.size	_Z12vecAddKernelPfS_S_i, .-_Z12vecAddKernelPfS_S_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
.LC2:
	.string	"CPU %lf\n"
.LC3:
	.string	"GPU %lf\n"
.LC4:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/cristgl/HighPerformanceArchitecturesAndComputing/master/P4-5/sumaVec.cu"
.LC5:
	.string	"%s en %s en l\303\255nea %d\n"
	.text
	.globl	_Z6vecAddPfS_S_i
	.type	_Z6vecAddPfS_S_i, @function
_Z6vecAddPfS_S_i:
.LFB4130:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	movl	%ecx, %r12d
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset 3, -56
	movq	%rsi, -184(%rbp)
	movq	%rdx, -192(%rbp)
	movq	%rdi, -176(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leal	0(,%rcx,4), %eax
	movq	%rsp, %rcx
	movslq	%eax, %r13
	leaq	15(,%r13,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L13:
	cmpq	%rcx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L15
	orq	$0, -8(%rsp,%rdx)
.L15:
	movq	%rax, %rsi
	movq	%rsp, -152(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L16:
	cmpq	%rcx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L18
	orq	$0, -8(%rsp,%rdx)
.L18:
	movq	%rsp, -160(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L19:
	cmpq	%rcx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L21
	orq	$0, -8(%rsp,%rax)
.L21:
	xorl	%edi, %edi
	leaq	3(%rsp), %rbx
	leaq	-120(%rbp), %rsi
	call	clock_gettime@PLT
	movq	%rbx, %r15
	andq	$-4, %rbx
	movl	%r12d, %ecx
	movq	-184(%rbp), %rsi
	movq	-176(%rbp), %rdi
	movq	%rbx, %rdx
	shrq	$2, %r15
	call	_Z7vecAddKPfS_S_i
	leaq	_ZSt4cout(%rip), %rdi
	cvtss2sd	0(,%r15,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	leal	-1(%r12), %eax
	movslq	%eax, %r14
	movl	%eax, -164(%rbp)
	cvtss2sd	(%rbx,%r14,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	xorl	%edi, %edi
	leaq	-104(%rbp), %rsi
	call	clock_gettime@PLT
	movq	-152(%rbp), %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movq	-176(%rbp), %rsi
	movl	$1, %ecx
	movq	%r13, %rdx
	movq	-152(%rbp), %rdi
	call	cudaMemcpy@PLT
	movq	-160(%rbp), %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movq	-184(%rbp), %rsi
	movl	$1, %ecx
	movq	%r13, %rdx
	movq	-160(%rbp), %rdi
	call	cudaMemcpy@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	cudaMalloc@PLT
	movl	$256, %ecx
	xorl	%edi, %edi
	leaq	-88(%rbp), %rsi
	movl	-164(%rbp), %eax
	movl	$1, -124(%rbp)
	cltd
	idivl	%ecx
	incl	%eax
	movl	%eax, -144(%rbp)
	movabsq	$4294967297, %rax
	movq	%rax, -140(%rbp)
	addq	$255, %rax
	movq	%rax, -132(%rbp)
	call	clock_gettime@PLT
	movl	-124(%rbp), %ecx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	-132(%rbp), %rdx
	movq	-144(%rbp), %rdi
	movl	-136(%rbp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L22
	movq	-160(%rbp), %rsi
	movq	-152(%rbp), %rdi
	movl	%r12d, %ecx
	movq	%rbx, %rdx
	call	_Z37__device_stub__Z12vecAddKernelPfS_S_iPfS_S_i
.L22:
	movq	-192(%rbp), %rdi
	movl	$2, %ecx
	movq	%r13, %rdx
	movq	%rbx, %rsi
	call	cudaMemcpy@PLT
	leaq	_ZSt4cout(%rip), %rdi
	cvtss2sd	0(,%r15,4), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtss2sd	(%rbx,%r14,4), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	leaq	-72(%rbp), %rsi
	xorl	%edi, %edi
	call	clock_gettime@PLT
	movq	-96(%rbp), %rax
	subq	-112(%rbp), %rax
	leaq	.LC2(%rip), %rsi
	cvtsi2sdq	%rax, %xmm0
	movq	-104(%rbp), %rax
	subq	-120(%rbp), %rax
	divsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rax, %xmm1
	movl	$2, %edi
	movb	$1, %al
	addsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	movq	-64(%rbp), %rax
	subq	-80(%rbp), %rax
	leaq	.LC3(%rip), %rsi
	cvtsi2sdq	%rax, %xmm0
	movq	-72(%rbp), %rax
	subq	-88(%rbp), %rax
	divsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rax, %xmm1
	movl	$2, %edi
	movb	$1, %al
	addsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	movq	-152(%rbp), %rdi
	call	cudaFree@PLT
	movq	-160(%rbp), %rdi
	call	cudaFree@PLT
	movq	%rbx, %rdi
	call	cudaFree@PLT
	movq	-152(%rbp), %rdi
	movq	%r13, %rsi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L12
	call	cudaGetErrorString@PLT
	movl	$2, %edi
	movl	$56, %r8d
	leaq	.LC4(%rip), %rcx
	movq	%rax, %rdx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L12:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4130:
	.size	_Z6vecAddPfS_S_i, .-_Z6vecAddPfS_S_i
	.section	.rodata.str1.1
.LC6:
	.string	"_Z12vecAddKernelPfS_S_i"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4160:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC6(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z12vecAddKernelPfS_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
.LFE4160:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4239:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L37
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L37:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4239:
	.size	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.text._ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,"axG",@progbits,_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,comdat
	.weak	_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	.type	_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_, @function
_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_:
.LFB4234:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4234
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%r8d, 12(%rsp)
	leaq	28(%rsp), %r13
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__errno_location@PLT
	movl	12(%rsp), %edx
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
.LEHB0:
	call	*%r15
	movq	32(%rsp), %rdx
	cmpq	%rbx, %rdx
	jne	.L41
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	movq	%r14, %rdi
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L41:
	cmpl	$34, 0(%rbp)
	je	.L43
	movl	$2147483648, %ecx
	movl	$4294967295, %esi
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jnb	.L44
.L43:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	movq	%r14, %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE0:
.L44:
	testq	%r12, %r12
	je	.L46
	subq	%rbx, %rdx
	movq	%rdx, (%r12)
.L46:
	movq	%r13, %rdi
	movl	%eax, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movl	12(%rsp), %eax
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L49
	jmp	.L54
.L50:
	endbr64
	movq	%rax, %rbx
.L47:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L54:
	call	__stack_chk_fail@PLT
.L49:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4234:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table._ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,"aG",@progbits,_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,comdat
.LLSDA4234:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4234-.LLSDACSB4234
.LLSDACSB4234:
	.uleb128 .LEHB0-.LFB4234
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L50-.LFB4234
	.uleb128 0
	.uleb128 .LEHB1-.LFB4234
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE4234:
	.section	.text._ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,"axG",@progbits,_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,comdat
	.size	_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_, .-_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	.section	.text._ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev,"axG",@progbits,_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD5Ev,comdat
	.align 2
	.weak	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.type	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, @function
_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev:
.LFB4284:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__errno_location@PLT
	cmpl	$0, (%rax)
	jne	.L57
	movl	(%rbx), %edx
	movl	%edx, (%rax)
.L57:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4284:
	.size	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev, .-_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.weak	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	.set	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev,_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD2Ev
	.section	.text._ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,"axG",@progbits,_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,comdat
	.weak	_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	.type	_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_, @function
_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_:
.LFB4279:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4279
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rsi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rcx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	call	__errno_location@PLT
	leaq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbp
	movl	(%rax), %eax
	movl	%eax, 28(%rsp)
	xorl	%eax, %eax
	movl	%eax, 0(%rbp)
.LEHB2:
	call	*%r15
	movq	32(%rsp), %rax
	cmpq	%rbx, %rax
	jne	.L61
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	movq	%r14, %rdi
	call	_ZSt24__throw_invalid_argumentPKc@PLT
.L61:
	cmpl	$34, 0(%rbp)
	jne	.L63
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	movq	%r14, %rdi
	call	_ZSt20__throw_out_of_rangePKc@PLT
.LEHE2:
.L63:
	testq	%r12, %r12
	je	.L65
	subq	%rbx, %rax
	movq	%rax, (%r12)
.L65:
	movq	%r13, %rdi
	movss	%xmm0, 12(%rsp)
	call	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movss	12(%rsp), %xmm0
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L68
	jmp	.L73
.L69:
	endbr64
	movq	%rax, %rbx
.L66:
	movq	%r13, %rdi
	call	_ZZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_EN11_Save_errnoD1Ev
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	movq	%rbx, %rdi
.LEHB3:
	call	_Unwind_Resume@PLT
.LEHE3:
.L73:
	call	__stack_chk_fail@PLT
.L68:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4279:
	.section	.gcc_except_table._ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,"aG",@progbits,_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,comdat
.LLSDA4279:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4279-.LLSDACSB4279
.LLSDACSB4279:
	.uleb128 .LEHB2-.LFB4279
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L69-.LFB4279
	.uleb128 0
	.uleb128 .LEHB3-.LFB4279
	.uleb128 .LEHE3-.LEHB3
	.uleb128 0
	.uleb128 0
.LLSDACSE4279:
	.section	.text._ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,"axG",@progbits,_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_,comdat
	.size	_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_, .-_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	.section	.rodata.str1.1
.LC7:
	.string	"data/0/input0.raw"
.LC8:
	.string	"data/0/input1.raw"
.LC9:
	.string	"data/0/output.raw"
.LC10:
	.string	"stoi"
.LC11:
	.string	"stof"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4131:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4131
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$8, %edx
	leaq	.LC7(%rip), %rsi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1656, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-1632(%rbp), %rax
	movb	$0, -1632(%rbp)
	movq	%rax, -1648(%rbp)
	xorl	%eax, %eax
	movq	%rax, -1640(%rbp)
	leaq	-1616(%rbp), %rax
	movq	%rax, %rdi
	movq	%rax, -1656(%rbp)
.LEHB4:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE4:
	leaq	-1096(%rbp), %rax
	movl	$8, %edx
	leaq	.LC8(%rip), %rsi
	movq	%rax, %rdi
	movq	%rax, -1664(%rbp)
.LEHB5:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE5:
	leaq	-576(%rbp), %r13
	movl	$8, %edx
	leaq	.LC9(%rip), %rsi
	movq	%r13, %rdi
.LEHB6:
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE6:
	testb	$5, -1328(%rbp)
	jne	.L77
	movq	-1656(%rbp), %rdi
	leaq	-1648(%rbp), %rsi
.LEHB7:
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	-1648(%rbp), %rdx
	movq	__isoc23_strtol@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	leaq	.LC10(%rip), %rsi
	call	_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	movl	%eax, %ebx
.L77:
	movslq	%ebx, %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L78:
	cmpq	%rcx, %rsp
	je	.L79
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L78
.L79:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L80
	orq	$0, -8(%rsp,%rdx)
.L80:
	movq	%rax, %rsi
	movq	%rsp, -1672(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L81:
	cmpq	%rcx, %rsp
	je	.L82
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L81
.L82:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L83
	orq	$0, -8(%rsp,%rdx)
.L83:
	movq	%rsp, -1680(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L84:
	cmpq	%rcx, %rsp
	je	.L85
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L84
.L85:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L86
	orq	$0, -8(%rsp,%rax)
.L86:
	testb	$5, -1328(%rbp)
	movq	%rsp, -1688(%rbp)
	leaq	-1648(%rbp), %r12
	jne	.L87
	movq	-1672(%rbp), %r14
	leaq	.LC11(%rip), %r15
	jmp	.L88
.L91:
	movq	-1648(%rbp), %rdx
	movq	strtof@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movq	%r15, %rsi
	call	_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	movss	%xmm0, (%r14)
	addq	$4, %r14
.L88:
	movq	-1656(%rbp), %rdi
	movq	%r12, %rsi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	je	.L91
	movq	-1656(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
.L87:
	testb	$5, -808(%rbp)
	jne	.L90
	movq	-1664(%rbp), %rdi
	movq	%r12, %rsi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	-1648(%rbp), %rdx
	movq	__isoc23_strtol@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	leaq	.LC10(%rip), %rsi
	call	_ZN9__gnu_cxx6__stoaIlicJiEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	movq	-1680(%rbp), %r14
	movl	%eax, %ebx
	leaq	.LC11(%rip), %r15
.L92:
	movq	-1664(%rbp), %rdi
	movq	%r12, %rsi
	call	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	(%rax), %rdx
	movq	-24(%rdx), %rdx
	testb	$5, 32(%rax,%rdx)
	jne	.L115
	movq	-1648(%rbp), %rdx
	movq	strtof@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movq	%r15, %rsi
	call	_ZN9__gnu_cxx6__stoaIffcJEEET0_PFT_PKT1_PPS3_DpT2_EPKcS5_PmS9_
	movss	%xmm0, (%r14)
	addq	$4, %r14
	jmp	.L92
.L115:
	movq	-1664(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv@PLT
.L90:
	movq	-1688(%rbp), %rdx
	movq	-1680(%rbp), %rsi
	movl	%ebx, %ecx
	movq	-1672(%rbp), %rdi
	call	_Z6vecAddPfS_S_i
.LEHE7:
	movq	%r13, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-1664(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	-1656(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	%r12, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	je	.L99
	jmp	.L113
.L103:
	endbr64
	movq	%rax, %rbx
.L94:
	movq	%r13, %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L95
.L102:
	endbr64
	movq	%rax, %rbx
.L95:
	movq	-1664(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L96
.L101:
	endbr64
	movq	%rax, %rbx
.L96:
	movq	-1656(%rbp), %rdi
	call	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L97
.L100:
	endbr64
	movq	%rax, %rbx
.L97:
	leaq	-1648(%rbp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L113
	movq	%rbx, %rdi
.LEHB8:
	call	_Unwind_Resume@PLT
.LEHE8:
.L113:
	call	__stack_chk_fail@PLT
.L99:
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4131:
	.section	.gcc_except_table,"a",@progbits
.LLSDA4131:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4131-.LLSDACSB4131
.LLSDACSB4131:
	.uleb128 .LEHB4-.LFB4131
	.uleb128 .LEHE4-.LEHB4
	.uleb128 .L100-.LFB4131
	.uleb128 0
	.uleb128 .LEHB5-.LFB4131
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L101-.LFB4131
	.uleb128 0
	.uleb128 .LEHB6-.LFB4131
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L102-.LFB4131
	.uleb128 0
	.uleb128 .LEHB7-.LFB4131
	.uleb128 .LEHE7-.LEHB7
	.uleb128 .L103-.LFB4131
	.uleb128 0
	.uleb128 .LEHB8-.LFB4131
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
.LLSDACSE4131:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1104006501
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.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 <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "hip/hip_runtime.h"

using namespace std;

#define BILLION 1E9;

__global__ void vecAddKernel(float *A, float *B, float *C, int n){
	int i = threadIdx.x+blockDim.x*blockIdx.x;
	if(i<n) C[i] = A[i]+B[i];
}

void vecAddK(float *A, float *B, float *C, int n){
	for(int i=0; i<n; i++)
		C[i] = A[i]+B[i];
}

void vecAdd(float *hA, float *hB, float *hC, int n){
	struct timespec requestStart, requestEnd, requestS, requestE;
    int size = n*sizeof(float);
    float dA[size], dB[size], dC[size];

    clock_gettime(CLOCK_REALTIME, &requestStart);
    vecAddK(hA,hB,dC,n);
    cout << dC[0] <<" " << dC[n-1] << endl;
    clock_gettime(CLOCK_REALTIME, &requestEnd);

    hipMalloc((void **) &dA, size);
    hipMemcpy(dA, hA, size, hipMemcpyHostToDevice);
    hipMalloc((void **) &dB, size);
    hipMemcpy(dB, hB, size, hipMemcpyHostToDevice);
    hipMalloc((void **) &dC, size);

	dim3 DimGrid(((n-1)/256)+1,1,1);
    dim3 DimBlock(256,1,1);
    clock_gettime(CLOCK_REALTIME, &requestS);
    vecAddKernel<<<DimGrid,DimBlock>>>(dA,dB,dC,n);
    hipMemcpy(hC, dC, size, hipMemcpyDeviceToHost);
    cout << dC[0] <<" " << dC[n-1] << endl;
    clock_gettime(CLOCK_REALTIME, &requestE);

    double accum = (double) (requestEnd.tv_sec - requestStart.tv_sec) + (requestEnd.tv_nsec - requestStart.tv_nsec)/BILLION;
    printf( "CPU %lf\n", accum );
    double accumu = (double) (requestE.tv_sec - requestS.tv_sec) + (requestE.tv_nsec - requestS.tv_nsec) / BILLION;
	printf( "GPU %lf\n", accumu );

    hipFree(dA); hipFree(dB); hipFree(dC);
    hipError_t err = hipMalloc((void **) &dA, size);

	if(err != hipSuccess){
		printf("%s en %s en línea %d\n", hipGetErrorString(err),__FILE__,__LINE__);
		exit(EXIT_FAILURE);
	}
}

int main(){
	int n, i=0;
	string line;
	ifstream fA("data/0/input0.raw");
	ifstream fB("data/0/input1.raw");
	ifstream fC("data/0/output.raw");

	if(fA){
		getline(fA,line);
		n = stoi(line,NULL,0);
	}

	float hA[n];
	float hB[n];
	float hC[n];


	if(fA){
		while(getline(fA,line)){
			float f = stof(line,NULL);
			hA[i] = f;
			i++;
		}

		fA.close();
	}

	i=0;
	if(fB){
		getline(fB,line);
		n = stoi(line,NULL,0);
		while(getline(fB,line)){
			float f = stof(line,NULL);
			hB[i] = f;
			i++;
		}

		fB.close();
	}
	vecAdd(hA, hB, hC, n);
}

	.text
	.file	"sumaVec.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z27__device_stub__vecAddKernelPfS_S_i # -- Begin function _Z27__device_stub__vecAddKernelPfS_S_i
	.type	_Z27__device_stub__vecAddKernelPfS_S_i,@function
_Z27__device_stub__vecAddKernelPfS_S_i: # @_Z27__device_stub__vecAddKernelPfS_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	$_Z12vecAddKernelPfS_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	_Z27__device_stub__vecAddKernelPfS_S_i, .Lfunc_end0-_Z27__device_stub__vecAddKernelPfS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z7vecAddKPfS_S_i               # -- Begin function _Z7vecAddKPfS_S_i
	.type	_Z7vecAddKPfS_S_i,@function
_Z7vecAddKPfS_S_i:                      # @_Z7vecAddKPfS_S_i
	.cfi_startproc
# %bb.0:
	testl	%ecx, %ecx
	jle	.LBB1_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ecx, %eax
	xorl	%ecx, %ecx
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movss	(%rdi,%rcx,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	addss	(%rsi,%rcx,4), %xmm0
	movss	%xmm0, (%rdx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB1_2
.LBB1_3:                                # %._crit_edge
	retq
.Lfunc_end1:
	.size	_Z7vecAddKPfS_S_i, .Lfunc_end1-_Z7vecAddKPfS_S_i
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z6vecAddPfS_S_i
.LCPI2_0:
	.quad	0x41cdcd6500000000              # double 1.0E+9
	.text
	.globl	_Z6vecAddPfS_S_i
	.type	_Z6vecAddPfS_S_i,@function
_Z6vecAddPfS_S_i:                       # @_Z6vecAddPfS_S_i
	.cfi_startproc
# %bb.0:                                # %.lr.ph.preheader.i
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -104(%rbp)                # 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsp, -72(%rbp)                 # 8-byte Spill
	leal	(,%r13,4), %eax
	movq	%rsp, %rcx
	movq	%rax, -80(%rbp)                 # 8-byte Spill
	leaq	(,%rax,4), %rax
	subq	%rax, %rcx
	movq	%rcx, -96(%rbp)                 # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %r15
	subq	%rax, %r15
	movq	%r15, %rsp
	xorl	%r12d, %r12d
	leaq	-152(%rbp), %rsi
	xorl	%edi, %edi
	callq	clock_gettime
	movq	%r13, -64(%rbp)                 # 8-byte Spill
	movl	%r13d, %eax
.LBB2_1:                                # %.lr.ph.i
                                        # =>This Inner Loop Header: Depth=1
	movss	(%rbx,%r12,4), %xmm0            # xmm0 = mem[0],zero,zero,zero
	addss	(%r14,%r12,4), %xmm0
	movss	%xmm0, (%r15,%r12,4)
	incq	%r12
	cmpq	%r12, %rax
	jne	.LBB2_1
# %bb.2:                                # %_Z7vecAddKPfS_S_i.exit.loopexit
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r15), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	-64(%rbp), %rcx                 # 8-byte Reload
	movslq	%ecx, %rax
	leal	-1(%rcx), %edx
	movl	%edx, -52(%rbp)                 # 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtss2sd	-4(%r15,%rax,4), %xmm0
	decq	%rax
	movq	%rax, -88(%rbp)                 # 8-byte Spill
	movq	%r12, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r12, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	-136(%rbp), %rsi
	xorl	%edi, %edi
	callq	clock_gettime
	movslq	-80(%rbp), %r12                 # 4-byte Folded Reload
	movq	-96(%rbp), %r13                 # 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	-48(%rbp), %rbx                 # 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %r14
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movq	-64(%rbp), %rax                 # 8-byte Reload
	movq	%rax, %r13
	leal	254(%rax), %ebx
	movl	-52(%rbp), %eax                 # 4-byte Reload
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$8, %ebx
	incl	%ebx
	btsq	$32, %rbx
	leaq	-120(%rbp), %rsi
	xorl	%edi, %edi
	callq	clock_gettime
	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	.LBB2_4
# %bb.3:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 # 8-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %ecx
	callq	_Z27__device_stub__vecAddKernelPfS_S_i
.LBB2_4:
	movq	-104(%rbp), %rdi                # 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	cvtss2sd	(%r15), %xmm0
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movl	$.L.str, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	-88(%rbp), %rax                 # 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r15,%rax,4), %xmm0
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	leaq	-168(%rbp), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	clock_gettime
	movq	-136(%rbp), %rax
	movq	-128(%rbp), %rcx
	subq	-152(%rbp), %rax
	cvtsi2sd	%rax, %xmm1
	subq	-144(%rbp), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	divsd	.LCPI2_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movl	$.L.str.1, %edi
	movb	$1, %al
	callq	printf
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	subq	-120(%rbp), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	subq	-112(%rbp), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	divsd	.LCPI2_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movl	$.L.str.2, %edi
	movb	$1, %al
	callq	printf
	movq	%r14, %rdi
	callq	hipFree
	movq	-48(%rbp), %rdi                 # 8-byte Reload
	callq	hipFree
	movq	%r15, %rdi
	callq	hipFree
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB2_6
# %bb.5:
	movq	-72(%rbp), %rsp                 # 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.LBB2_6:
	.cfi_def_cfa %rbp, 16
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %edx
	movq	%rax, %rsi
	movl	$56, %ecx
	xorl	%eax, %eax
	callq	printf
	movl	$1, %edi
	callq	exit
.Lfunc_end2:
	.size	_Z6vecAddPfS_S_i, .Lfunc_end2-_Z6vecAddPfS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1640, %rsp                     # imm = 0x668
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-64(%rbp), %r13
	movq	%r13, -16(%r13)
	movq	$0, -8(%r13)
	movb	$0, (%r13)
.Ltmp0:
	leaq	-640(%rbp), %rdi
	movl	$.L.str.5, %esi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:
.Ltmp3:
	leaq	-1160(%rbp), %rdi
	movl	$.L.str.6, %esi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp4:
# %bb.2:
.Ltmp6:
	leaq	-1680(%rbp), %rdi
	movl	$.L.str.7, %esi
	movl	$8, %edx
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp7:
# %bb.3:
	movq	-640(%rbp), %rax
	movq	-24(%rax), %rcx
	testb	$5, -608(%rbp,%rcx)
                                        # implicit-def: $eax
	jne	.LBB3_17
# %bb.4:
.Ltmp9:
	leaq	(%rcx,%rbp), %rdi
	addq	$-640, %rdi                     # imm = 0xFD80
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp10:
# %bb.5:                                # %.noexc
.Ltmp11:
	movsbl	%al, %edx
	leaq	-640(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp12:
# %bb.6:                                # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
	movq	-80(%rbp), %rbx
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %r12d
	movl	$0, (%rax)
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	__isoc23_strtol
	cmpq	%rbx, (%r15)
	je	.LBB3_7
# %bb.11:
	movslq	%eax, %rcx
	cmpq	%rax, %rcx
	jne	.LBB3_13
# %bb.12:
	movl	(%r14), %ecx
	cmpl	$34, %ecx
	je	.LBB3_13
# %bb.15:
	testl	%ecx, %ecx
	jne	.LBB3_17
# %bb.16:
	movl	%r12d, (%r14)
.LBB3_17:
	movq	%rsp, -112(%rbp)                # 8-byte Spill
	movq	%rax, -96(%rbp)                 # 8-byte Spill
	movl	%eax, %eax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rax
	andq	$-16, %rax
	subq	%rax, %rcx
	movq	%rcx, -104(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -88(%rbp)                 # 8-byte Spill
	movq	%rcx, %rsp
	movq	%rsp, %rcx
	subq	%rax, %rcx
	movq	%rcx, -120(%rbp)                # 8-byte Spill
	movq	%rcx, %rsp
	movq	-640(%rbp), %rax
	movq	-24(%rax), %rax
	testb	$5, -608(%rbp,%rax)
	jne	.LBB3_39
# %bb.18:                               # %.preheader.preheader
	leaq	-80(%rbp), %r13
	movq	-104(%rbp), %r12                # 8-byte Reload
.LBB3_19:                               # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rbp), %rdi
	addq	$-640, %rdi                     # imm = 0xFD80
.Ltmp13:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp14:
# %bb.20:                               # %.noexc27
                                        #   in Loop: Header=BB3_19 Depth=1
.Ltmp15:
	movsbl	%al, %edx
	leaq	-640(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp16:
# %bb.21:                               #   in Loop: Header=BB3_19 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB3_38
# %bb.22:                               #   in Loop: Header=BB3_19 Depth=1
	movq	-80(%rbp), %r15
	callq	__errno_location
	movq	%rax, %r14
	movl	(%rax), %ebx
	movl	$0, (%rax)
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	strtof
	cmpq	%r15, -48(%rbp)
	je	.LBB3_23
# %bb.32:                               #   in Loop: Header=BB3_19 Depth=1
	movl	(%r14), %eax
	testl	%eax, %eax
	je	.LBB3_36
# %bb.33:                               #   in Loop: Header=BB3_19 Depth=1
	cmpl	$34, %eax
	jne	.LBB3_37
	jmp	.LBB3_34
.LBB3_36:                               #   in Loop: Header=BB3_19 Depth=1
	movl	%ebx, (%r14)
.LBB3_37:                               #   in Loop: Header=BB3_19 Depth=1
	movss	%xmm0, (%r12)
	movq	-640(%rbp), %rax
	movq	-24(%rax), %rax
	addq	$4, %r12
	jmp	.LBB3_19
.LBB3_38:
.Ltmp18:
	leaq	-640(%rbp), %rdi
	leaq	-64(%rbp), %r13
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp19:
.LBB3_39:
	movq	-1160(%rbp), %rax
	movq	-24(%rax), %rax
	testb	$5, -1128(%rbp,%rax)
	jne	.LBB3_69
# %bb.40:
.Ltmp20:
	leaq	(%rax,%rbp), %rdi
	addq	$-1160, %rdi                    # imm = 0xFB78
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp21:
# %bb.41:                               # %.noexc35
.Ltmp22:
	movsbl	%al, %edx
	leaq	-1160(%rbp), %rbx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp23:
# %bb.42:                               # %_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit37
	movq	-80(%rbp), %r14
	callq	__errno_location
	movq	%rax, %r13
	movl	(%rax), %r12d
	movl	$0, (%rax)
	leaq	-48(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	__isoc23_strtol
	cmpq	%r14, (%r15)
	je	.LBB3_43
# %bb.48:
	movslq	%eax, %rcx
	cmpq	%rax, %rcx
	jne	.LBB3_50
# %bb.49:
	movl	(%r13), %ecx
	cmpl	$34, %ecx
	je	.LBB3_50
# %bb.52:
	testl	%ecx, %ecx
	jne	.LBB3_54
# %bb.53:
	movl	%r12d, (%r13)
.LBB3_54:                               # %_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi.exit43
	movq	%rax, -96(%rbp)                 # 8-byte Spill
	movq	-88(%rbp), %r14                 # 8-byte Reload
.LBB3_55:                               # =>This Inner Loop Header: Depth=1
	movq	-1160(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp24:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp25:
# %bb.56:                               # %.noexc44
                                        #   in Loop: Header=BB3_55 Depth=1
.Ltmp26:
	movsbl	%al, %edx
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	callq	_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_
.Ltmp27:
# %bb.57:                               #   in Loop: Header=BB3_55 Depth=1
	movq	(%rax), %rcx
	movq	-24(%rcx), %rcx
	testb	$5, 32(%rax,%rcx)
	jne	.LBB3_68
# %bb.58:                               #   in Loop: Header=BB3_55 Depth=1
	movq	-80(%rbp), %r15
	movl	(%r13), %r12d
	movl	$0, (%r13)
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	strtof
	cmpq	%r15, -48(%rbp)
	je	.LBB3_59
# %bb.62:                               #   in Loop: Header=BB3_55 Depth=1
	movl	(%r13), %eax
	testl	%eax, %eax
	je	.LBB3_66
# %bb.63:                               #   in Loop: Header=BB3_55 Depth=1
	cmpl	$34, %eax
	jne	.LBB3_67
	jmp	.LBB3_64
.LBB3_66:                               #   in Loop: Header=BB3_55 Depth=1
	movl	%r12d, (%r13)
.LBB3_67:                               #   in Loop: Header=BB3_55 Depth=1
	movss	%xmm0, (%r14)
	addq	$4, %r14
	jmp	.LBB3_55
.LBB3_68:
.Ltmp29:
	leaq	-1160(%rbp), %rdi
	leaq	-64(%rbp), %r13
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv
.Ltmp30:
.LBB3_69:
.Ltmp31:
	movq	-104(%rbp), %rdi                # 8-byte Reload
	movq	-88(%rbp), %rsi                 # 8-byte Reload
	movq	-120(%rbp), %rdx                # 8-byte Reload
	movq	-96(%rbp), %rcx                 # 8-byte Reload
                                        # kill: def $ecx killed $ecx killed $rcx
	callq	_Z6vecAddPfS_S_i
.Ltmp32:
# %bb.70:
	movq	-112(%rbp), %rsp                # 8-byte Reload
	leaq	-1680(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	leaq	-1160(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	leaq	-640(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
	movq	-80(%rbp), %rdi
	cmpq	%r13, %rdi
	je	.LBB3_72
# %bb.71:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB3_72:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa %rsp, 8
	retq
.LBB3_23:
	.cfi_def_cfa %rbp, 16
.Ltmp46:
	movl	$.L.str.9, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp47:
# %bb.29:
.LBB3_59:
.Ltmp36:
	movl	$.L.str.9, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp37:
# %bb.60:
.LBB3_34:                               # %.critedge.i.i31
.Ltmp44:
	movl	$.L.str.9, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp45:
# %bb.35:
.LBB3_64:                               # %.critedge.i.i48
.Ltmp34:
	movl	$.L.str.9, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp35:
# %bb.65:
.LBB3_7:
.Ltmp51:
	movl	$.L.str.8, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp52:
# %bb.8:
.LBB3_13:                               # %.critedge.i.i
.Ltmp49:
	movl	$.L.str.8, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp50:
# %bb.14:
.LBB3_43:
.Ltmp41:
	movl	$.L.str.8, %edi
	callq	_ZSt24__throw_invalid_argumentPKc
.Ltmp42:
# %bb.44:
.LBB3_50:                               # %.critedge.i.i39
.Ltmp39:
	movl	$.L.str.8, %edi
	callq	_ZSt20__throw_out_of_rangePKc
.Ltmp40:
# %bb.51:
.LBB3_45:
.Ltmp43:
	jmp	.LBB3_46
.LBB3_9:
.Ltmp53:
	movq	%rax, %r15
	cmpl	$0, (%r14)
	jne	.LBB3_75
# %bb.10:
	movl	%r12d, (%r14)
	jmp	.LBB3_75
.LBB3_26:
.Ltmp8:
	movq	%rax, %r15
	jmp	.LBB3_76
.LBB3_25:
.Ltmp5:
	movq	%rax, %r15
	jmp	.LBB3_77
.LBB3_24:
.Ltmp2:
	movq	%rax, %r15
	jmp	.LBB3_78
.LBB3_28:                               # %.loopexit.split-lp.loopexit.split-lp
.Ltmp33:
	jmp	.LBB3_74
.LBB3_61:
.Ltmp38:
.LBB3_46:
	movq	%rax, %r15
	cmpl	$0, (%r13)
	jne	.LBB3_75
# %bb.47:
	movl	%r12d, (%r13)
	jmp	.LBB3_75
.LBB3_30:
.Ltmp48:
	movq	%rax, %r15
	cmpl	$0, (%r14)
	jne	.LBB3_75
# %bb.31:
	movl	%ebx, (%r14)
	jmp	.LBB3_75
.LBB3_73:                               # %.loopexit
.Ltmp28:
	jmp	.LBB3_74
.LBB3_27:                               # %.loopexit.split-lp.loopexit
.Ltmp17:
.LBB3_74:                               # %.body
	movq	%rax, %r15
.LBB3_75:                               # %.body
	leaq	-1680(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB3_76:
	leaq	-1160(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB3_77:
	leaq	-640(%rbp), %rdi
	callq	_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev
.LBB3_78:
	movq	-80(%rbp), %rdi
	leaq	-64(%rbp), %rax
	cmpq	%rax, %rdi
	je	.LBB3_80
# %bb.79:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i53
	callq	_ZdlPv
.LBB3_80:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit55
	movq	%r15, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end3:
	.size	main, .Lfunc_end3-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table3:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp4-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp4
	.uleb128 .Ltmp5-.Lfunc_begin0           #     jumps to .Ltmp5
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp6-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp7-.Ltmp6                  #   Call between .Ltmp6 and .Ltmp7
	.uleb128 .Ltmp8-.Lfunc_begin0           #     jumps to .Ltmp8
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp9-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp12-.Ltmp9                 #   Call between .Ltmp9 and .Ltmp12
	.uleb128 .Ltmp33-.Lfunc_begin0          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp16-.Ltmp13                #   Call between .Ltmp13 and .Ltmp16
	.uleb128 .Ltmp17-.Lfunc_begin0          #     jumps to .Ltmp17
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp23-.Ltmp18                #   Call between .Ltmp18 and .Ltmp23
	.uleb128 .Ltmp33-.Lfunc_begin0          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp27-.Ltmp24                #   Call between .Ltmp24 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp29-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp32-.Ltmp29                #   Call between .Ltmp29 and .Ltmp32
	.uleb128 .Ltmp33-.Lfunc_begin0          #     jumps to .Ltmp33
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp46-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp47-.Ltmp46                #   Call between .Ltmp46 and .Ltmp47
	.uleb128 .Ltmp48-.Lfunc_begin0          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp38-.Lfunc_begin0          #     jumps to .Ltmp38
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp44-.Lfunc_begin0          # >> Call Site 11 <<
	.uleb128 .Ltmp45-.Ltmp44                #   Call between .Ltmp44 and .Ltmp45
	.uleb128 .Ltmp48-.Lfunc_begin0          #     jumps to .Ltmp48
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp34-.Lfunc_begin0          # >> Call Site 12 <<
	.uleb128 .Ltmp35-.Ltmp34                #   Call between .Ltmp34 and .Ltmp35
	.uleb128 .Ltmp38-.Lfunc_begin0          #     jumps to .Ltmp38
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp51-.Lfunc_begin0          # >> Call Site 13 <<
	.uleb128 .Ltmp50-.Ltmp51                #   Call between .Ltmp51 and .Ltmp50
	.uleb128 .Ltmp53-.Lfunc_begin0          #     jumps to .Ltmp53
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp41-.Lfunc_begin0          # >> Call Site 14 <<
	.uleb128 .Ltmp40-.Ltmp41                #   Call between .Ltmp41 and .Ltmp40
	.uleb128 .Ltmp43-.Lfunc_begin0          #     jumps to .Ltmp43
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin0          # >> Call Site 15 <<
	.uleb128 .Lfunc_end3-.Ltmp40            #   Call between .Ltmp40 and .Lfunc_end3
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.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	$_Z12vecAddKernelPfS_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	_Z12vecAddKernelPfS_S_i,@object # @_Z12vecAddKernelPfS_S_i
	.section	.rodata,"a",@progbits
	.globl	_Z12vecAddKernelPfS_S_i
	.p2align	3, 0x0
_Z12vecAddKernelPfS_S_i:
	.quad	_Z27__device_stub__vecAddKernelPfS_S_i
	.size	_Z12vecAddKernelPfS_S_i, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	" "
	.size	.L.str, 2

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"CPU %lf\n"
	.size	.L.str.1, 9

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"GPU %lf\n"
	.size	.L.str.2, 9

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"%s en %s en l\303\255nea %d\n"
	.size	.L.str.3, 23

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/cristgl/HighPerformanceArchitecturesAndComputing/master/P4-5/sumaVec.hip"
	.size	.L.str.4, 135

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"data/0/input0.raw"
	.size	.L.str.5, 18

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"data/0/input1.raw"
	.size	.L.str.6, 18

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"data/0/output.raw"
	.size	.L.str.7, 18

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"stoi"
	.size	.L.str.8, 5

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"stof"
	.size	.L.str.9, 5

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z12vecAddKernelPfS_S_i"
	.size	.L__unnamed_1, 24

	.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 _Z27__device_stub__vecAddKernelPfS_S_i
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z12vecAddKernelPfS_S_i
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z12vecAddKernelPfS_S_i ; -- Begin function _Z12vecAddKernelPfS_S_i
	.globl	_Z12vecAddKernelPfS_S_i
	.p2align	8
	.type	_Z12vecAddKernelPfS_S_i,@function
_Z12vecAddKernelPfS_S_i:                ; @_Z12vecAddKernelPfS_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 _Z12vecAddKernelPfS_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	_Z12vecAddKernelPfS_S_i, .Lfunc_end0-_Z12vecAddKernelPfS_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:           _Z12vecAddKernelPfS_S_i
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z12vecAddKernelPfS_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
