#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <math.h>

//134217728

double dwalltime(){
	double sec;
	struct timeval tv;

	gettimeofday(&tv,NULL);
	sec = tv.tv_sec + tv.tv_usec/1000000.0;
	return sec;
}

__global__ void ecuacion_kernel_outplace_p1(double *d_matA,double *d_matAT,double *d_matB,double *d_matBT, unsigned int n){   
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    
    //transpuesta out-place A y B
    if( (distA<n*n) && (distB<n*n) ){
        d_matAT [distB*n + distA] = d_matA[distA*n + distB];
        d_matBT [distB*n + distA] = d_matB[distA*n + distB];
    }

    
}

__global__ void ecuacion_kernel_outplace_p2(double *d_matA,double *d_matB,double *d_matC,double *d_matAT,double *d_matBT, unsigned int n){    
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    int k;
    if (distA*n+distB <= (n*n - 1)){
        //multiplicacion 
        for(k = 0; k < n ;k++){
            d_matC[distA*n+distB] += d_matA[distA*n+k] * d_matBT[distB+k*n];
        }
        //suma
        d_matC[distA*n+distB] += d_matB[distA*n+distB] + d_matAT[distA*n+distB];
    }
}

__global__ void ecuacion_kernel_inplace_suma (double *d_matA,double *d_matB,double *d_matC, unsigned int n){
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    int k;
    //multiplicacion 
    if (distA*n+distB < (n*n - 1)){
        d_matC[distA*n+distB] += d_matB[distA*n+distB] + d_matA[distA+distB*n]; 
        for(k = 0; k < n ;k++){
            d_matC[distA*n+distB] += d_matA[distA*n+k] * d_matB[distB*n+k]; 
        }
    }

}

__global__ void kernel_sum_Matriz (double *d_matA,double *d_matB,double *d_matC, unsigned int n){
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    //suma 
    if (distA*n+distB < (n*n)){
        d_matC[distA*n+distB] += d_matA[distA*n+distB] + d_matB[distA+distB*n]; 
    }

}

__global__ void kernel_transpuesta(double *m, int N){
	int tid = blockIdx.x*blockDim.x + threadIdx.x;
	int i = int((1 + sqrtf(1 + 8*tid)) / 2);
	int j = tid - (i*(i-1)/2); int aux;
	if ( (i<N) && (j<N) ){
		aux = m[i*N + j] ;
		m[i*N + j] = m[j*N + i];
		m[j*N + i] = aux;
	}
}


__global__ void kernel_mult_sum_matriz (double *d_matA,double *d_matB,double *d_matC, unsigned int n){
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    int k;
    //multiplicacion 
    if (distA*n+distB < (n*n)){
        for(k = 0; k < n ;k++){
            d_matC[distA*n+distB] += d_matA[distA*n+k] * d_matB[distB*n+k]; 
        }
    }

}

int main(int argc, char *argv[]){

        if (argc != 3){
            printf("Falta argumento: N, CUDABLK\n");
            return 0;
        }
	//declaracion de variables
    cudaError_t error;
    unsigned int N = atoi (argv[1]);
    unsigned long CUDA_BLK = atoi (argv[2]), gridBlock;
    unsigned long numBytes = sizeof(double)*N*N;
    double *matA,*matB,*matC,*d_matA,*d_matB,*d_matC,*d_matAT,*d_matBT,timetick;
    unsigned int i,j,k;

	//inicializa variables para cpu
    matA = (double *)malloc(numBytes);
    matB = (double *)malloc(numBytes);
    matC = (double *)malloc(numBytes);
    for (i = 0; i < N*N; i++){
        matA[i] = i;
        matB[i] = i;
        matC[i] = 0;
    }

  //inicializa variables para gpu
  cudaMalloc((void **) &d_matA, numBytes);
  cudaMalloc((void **) &d_matAT, numBytes);
  cudaMalloc((void **) &d_matB, numBytes);
  cudaMalloc((void **) &d_matBT, numBytes);
  cudaMalloc((void **) &d_matC, numBytes);

  gridBlock = (unsigned int)sqrt(N*N/CUDA_BLK/CUDA_BLK);
  dim3 dimBlock(CUDA_BLK,CUDA_BLK); // Bloque bidimencional de hilos (*cb* hilos)
  dim3 dimGrid(gridBlock,gridBlock); // Grid bidimencional (*ceil(n/cb)* bloques)

    //--------------------------------cpu comienza ------------------------------------

    //secuencial
	timetick = dwalltime();

    //multiplicacion
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            for(k = 0; k < N ;k++){
                matC[i*N+j] += matA[i*N+k] * matB[j*N+k]; //multiplica a matB por fila, eso simula la matB transpuesta
            }
        }
    }
    //suma
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            matC[i*N+j] += matB[i*N+j] + matA[i+j*N];
        }
    }

	printf("Tiempo para la ecuacion CPU: %f\n\n",dwalltime() - timetick);
/*
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            printf("%f|",matC[i*N+j]);
        }
        printf("\n");
    }
	printf("\n");
*/
    //--------------------------------cpu termina ------------------------------------



    for (i = 0; i < N*N; i++){
        matA[i] = i;
        matB[i] = i;
        matC[i] = 0;
    }

    cudaMemcpy(d_matA, matA, numBytes, cudaMemcpyHostToDevice); // CPU -> GPU
    cudaMemcpy(d_matB, matB, numBytes, cudaMemcpyHostToDevice); // CPU -> GPU
    cudaMemcpy(d_matC, matC, numBytes, cudaMemcpyHostToDevice); // CPU -> GPU

    //--------------------------------gpu out-place comienza ------------------------------------

	timetick = dwalltime();
    ecuacion_kernel_outplace_p1<<<dimGrid, dimBlock>>>(d_matA, d_matAT,d_matB,d_matBT, N);
    cudaThreadSynchronize();
    ecuacion_kernel_outplace_p2<<<dimGrid, dimBlock>>>(d_matA, d_matB,d_matC,d_matAT,d_matBT, N);
    cudaThreadSynchronize();


    printf("Tiempo para la ecuacion out-place GPU: %f\n",dwalltime() - timetick);
    error = cudaGetLastError();
    printf("error: %d\n\n",error);  

    cudaMemcpy(matC, d_matC, numBytes, cudaMemcpyDeviceToHost); // GPU -> CPU  
    
/*
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            printf("%f|",matC[i*N+j]);
        }
        printf("\n");
    }
	printf("\n");
*/
    //--------------------------------gpu out-place termina ------------------------------------    

    cudaFree(d_matA);
    cudaFree(d_matB);
    cudaFree(d_matC);
    cudaFree(d_matAT);
    cudaFree(d_matBT);


    for (i = 0; i < N*N; i++){
        matA[i] = i;
        matB[i] = i;
        matC[i] = 0;
    }

    cudaMalloc((void **) &d_matA, numBytes);
    cudaMalloc((void **) &d_matB, numBytes);
    cudaMalloc((void **) &d_matC, numBytes);
    cudaMemcpy(d_matA, matA, numBytes, cudaMemcpyHostToDevice); // CPU -> GPU
    cudaMemcpy(d_matB, matB, numBytes, cudaMemcpyHostToDevice); // CPU -> GPU
    cudaMemcpy(d_matC, matC, numBytes, cudaMemcpyHostToDevice); // CPU -> GPU


    //--------------------------------gpu in-place comienza ------------------------------------

  

    timetick = dwalltime();
    kernel_transpuesta<<<dimGrid, dimBlock>>>(d_matA, N);
    cudaThreadSynchronize();
    kernel_sum_Matriz<<<dimGrid, dimBlock>>>(d_matA, d_matB,d_matC, N);
    cudaThreadSynchronize();
    kernel_transpuesta<<<dimGrid, dimBlock>>>(d_matA, N);
    cudaThreadSynchronize();
    kernel_mult_sum_matriz<<<dimGrid, dimBlock>>>(d_matA, d_matB,d_matC, N);
    cudaThreadSynchronize();

	printf("Tiempo para la ecuacion in-place GPU: %f\n",dwalltime() - timetick);
    error = cudaGetLastError();
    printf("error: %d\n\n",error); 
    cudaMemcpy(matC, d_matC, numBytes, cudaMemcpyDeviceToHost); // GPU -> CPU


    //--------------------------------gpu in-place termina ------------------------------------

  
    cudaFree(d_matA);
    cudaFree(d_matB);
    cudaFree(d_matC);
/*
  //imprime la matriz matC
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            printf("%f|",matC[i*N+j]);
        }
        printf("\n");
    }
	printf("\n");

*/
    free(matA);
    free(matB);
    free(matC);
    return 0;
}

	.file	"tmpxft_002d0b00_00000000-6_ejercicio1_sin_tiempo_copia.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2031:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z9dwalltimev
	.type	_Z9dwalltimev, @function
_Z9dwalltimev:
.LFB2027:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	call	gettimeofday@PLT
	cvtsi2sdq	8(%rsp), %xmm1
	cvtsi2sdq	16(%rsp), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z9dwalltimev, .-_Z9dwalltimev
	.globl	_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j
	.type	_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j, @function
_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j:
.LFB2053:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L6
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L6:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2053:
	.size	_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j, .-_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j
	.globl	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.type	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j, @function
_Z27ecuacion_kernel_outplace_p1PdS_S_S_j:
.LFB2054:
	.cfi_startproc
	endbr64
	jmp	_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j
	.cfi_endproc
.LFE2054:
	.size	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j, .-_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.globl	_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j
	.type	_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j, @function
_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j:
.LFB2055:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	64(%rsp), %rcx
	movq	%r8, 8(%rsp)
	movl	%r9d, 4(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L11
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L11:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j, .-_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j
	.globl	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.type	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j, @function
_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j
	.cfi_endproc
.LFE2056:
	.size	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j, .-_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.globl	_Z53__device_stub__Z28ecuacion_kernel_inplace_sumaPdS_S_jPdS_S_j
	.type	_Z53__device_stub__Z28ecuacion_kernel_inplace_sumaPdS_S_jPdS_S_j, @function
_Z53__device_stub__Z28ecuacion_kernel_inplace_sumaPdS_S_jPdS_S_j:
.LFB2057:
	.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	.L16
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z28ecuacion_kernel_inplace_sumaPdS_S_j(%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
.L16:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2057:
	.size	_Z53__device_stub__Z28ecuacion_kernel_inplace_sumaPdS_S_jPdS_S_j, .-_Z53__device_stub__Z28ecuacion_kernel_inplace_sumaPdS_S_jPdS_S_j
	.globl	_Z28ecuacion_kernel_inplace_sumaPdS_S_j
	.type	_Z28ecuacion_kernel_inplace_sumaPdS_S_j, @function
_Z28ecuacion_kernel_inplace_sumaPdS_S_j:
.LFB2058:
	.cfi_startproc
	endbr64
	jmp	_Z53__device_stub__Z28ecuacion_kernel_inplace_sumaPdS_S_jPdS_S_j
	.cfi_endproc
.LFE2058:
	.size	_Z28ecuacion_kernel_inplace_sumaPdS_S_j, .-_Z28ecuacion_kernel_inplace_sumaPdS_S_j
	.globl	_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j
	.type	_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j, @function
_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j:
.LFB2059:
	.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	.L21
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z17kernel_sum_MatrizPdS_S_j(%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
.L21:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2059:
	.size	_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j, .-_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j
	.globl	_Z17kernel_sum_MatrizPdS_S_j
	.type	_Z17kernel_sum_MatrizPdS_S_j, @function
_Z17kernel_sum_MatrizPdS_S_j:
.LFB2060:
	.cfi_startproc
	endbr64
	jmp	_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j
	.cfi_endproc
.LFE2060:
	.size	_Z17kernel_sum_MatrizPdS_S_j, .-_Z17kernel_sum_MatrizPdS_S_j
	.globl	_Z39__device_stub__Z18kernel_transpuestaPdiPdi
	.type	_Z39__device_stub__Z18kernel_transpuestaPdiPdi, @function
_Z39__device_stub__Z18kernel_transpuestaPdiPdi:
.LFB2061:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	32(%rsp), %rcx
	leaq	24(%rsp), %rdx
	movl	%esi, 4(%rsp)
	leaq	40(%rsp), %rdi
	leaq	52(%rsp), %rsi
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 48(%rsp)
	movq	%rax, 88(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L26
	pushq	32(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18kernel_transpuestaPdi(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	104(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L26:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2061:
	.size	_Z39__device_stub__Z18kernel_transpuestaPdiPdi, .-_Z39__device_stub__Z18kernel_transpuestaPdiPdi
	.globl	_Z18kernel_transpuestaPdi
	.type	_Z18kernel_transpuestaPdi, @function
_Z18kernel_transpuestaPdi:
.LFB2062:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z18kernel_transpuestaPdiPdi
	.cfi_endproc
.LFE2062:
	.size	_Z18kernel_transpuestaPdi, .-_Z18kernel_transpuestaPdi
	.globl	_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j
	.type	_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j, @function
_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j:
.LFB2063:
	.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	.L31
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z22kernel_mult_sum_matrizPdS_S_j(%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
.L31:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2063:
	.size	_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j, .-_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j
	.globl	_Z22kernel_mult_sum_matrizPdS_S_j
	.type	_Z22kernel_mult_sum_matrizPdS_S_j, @function
_Z22kernel_mult_sum_matrizPdS_S_j:
.LFB2064:
	.cfi_startproc
	endbr64
	jmp	_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j
	.cfi_endproc
.LFE2064:
	.size	_Z22kernel_mult_sum_matrizPdS_S_j, .-_Z22kernel_mult_sum_matrizPdS_S_j
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Falta argumento: N, CUDABLK\n"
.LC3:
	.string	"Tiempo para la ecuacion CPU: %f\n\n"
.LC4:
	.string	"Tiempo para la ecuacion out-place GPU: %f\n"
.LC5:
	.string	"error: %d\n\n"
.LC6:
	.string	"Tiempo para la ecuacion in-place GPU: %f\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	cmpl	$3, %edi
	je	.L37
	leaq	.LC1(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L38
.L37:
	movq	8(%rsi), %rdi
	movq	%rsi, %rbp
	call	atoi@PLT
	movq	16(%rbp), %rdi
	movl	%eax, %ebx
	call	atoi@PLT
	movl	%ebx, %ebp
	movl	%ebx, %r14d
	imulq	%rbp, %rbp
	movl	%eax, 8(%rsp)
	cltq
	movq	%rax, 16(%rsp)
	imull	%ebx, %r14d
	leaq	0(,%rbp,8), %rax
	movq	%rax, %rdi
	movq	%rax, (%rsp)
	call	malloc@PLT
	leaq	0(,%rbp,8), %rdi
	movq	%rax, %r13
	call	malloc@PLT
	leaq	0(,%rbp,8), %rdi
	movq	%rax, %r12
	call	malloc@PLT
	movq	%rax, %r15
	xorl	%eax, %eax
.L39:
	cmpl	%r14d, %eax
	jnb	.L69
	movl	%eax, %edx
	movq	$0x000000000, (%r15,%rax,8)
	cvtsi2sdq	%rdx, %xmm0
	movsd	%xmm0, 0(%r13,%rax,8)
	movsd	%xmm0, (%r12,%rax,8)
	incq	%rax
	jmp	.L39
.L69:
	leaq	56(%rsp), %rax
	movq	(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rax, 24(%rsp)
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	80(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	64(%rsp), %rax
	movq	(%rsp), %rsi
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	88(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	leaq	72(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 40(%rsp)
	call	cudaMalloc@PLT
	movl	%ebp, %eax
	xorl	%edx, %edx
	divq	16(%rsp)
	xorl	%edx, %edx
	divq	16(%rsp)
	cvtsi2sdq	%rax, %xmm0
	call	sqrt@PLT
	movl	8(%rsp), %edx
	movl	$1, 104(%rsp)
	cvttsd2siq	%xmm0, %rax
	movl	$1, 116(%rsp)
	movl	%edx, 96(%rsp)
	movl	%edx, 100(%rsp)
	movl	%eax, 108(%rsp)
	movl	%eax, 112(%rsp)
	call	_Z9dwalltimev
	xorl	%edx, %edx
	xorl	%esi, %esi
	movsd	%xmm0, 8(%rsp)
.L43:
	cmpl	%ebx, %esi
	je	.L70
	xorl	%edi, %edi
	xorl	%ecx, %ecx
.L46:
	leal	(%rcx,%rdx), %eax
	leaq	(%r15,%rax,8), %r8
	xorl	%eax, %eax
	movsd	(%r8), %xmm0
.L44:
	leal	(%rax,%rdi), %r9d
	leal	(%rax,%rdx), %r10d
	movsd	0(%r13,%r10,8), %xmm1
	mulsd	(%r12,%r9,8), %xmm1
	movl	%eax, %r9d
	incl	%eax
	addsd	%xmm1, %xmm0
	cmpl	%eax, %ebx
	jne	.L44
	movsd	%xmm0, (%r8)
	leal	1(%rcx), %eax
	addl	%ebx, %edi
	cmpl	%ecx, %r9d
	je	.L45
	movl	%eax, %ecx
	jmp	.L46
.L45:
	incl	%esi
	addl	%ebx, %edx
	jmp	.L43
.L70:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
.L47:
	cmpl	%ebx, %eax
	je	.L71
	movl	%eax, %esi
	xorl	%edx, %edx
.L48:
	leal	(%rdx,%rcx), %r8d
	movl	%esi, %r9d
	incl	%edx
	addl	%ebx, %esi
	leaq	(%r15,%r8,8), %rdi
	movsd	0(%r13,%r9,8), %xmm0
	addsd	(%r12,%r8,8), %xmm0
	addsd	(%rdi), %xmm0
	movsd	%xmm0, (%rdi)
	cmpl	%edx, %ebx
	jne	.L48
	incl	%eax
	addl	%ebx, %ecx
	jmp	.L47
.L71:
	call	_Z9dwalltimev
	subsd	8(%rsp), %xmm0
	leaq	.LC3(%rip), %rsi
	movb	$1, %al
	movl	$2, %edi
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L49:
	cmpl	%r14d, %eax
	jnb	.L72
	movl	%eax, %edx
	movq	$0x000000000, (%r15,%rax,8)
	cvtsi2sdq	%rdx, %xmm0
	movsd	%xmm0, 0(%r13,%rax,8)
	movsd	%xmm0, (%r12,%rax,8)
	incq	%rax
	jmp	.L49
.L72:
	movq	(%rsp), %rdx
	movq	56(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	64(%rsp), %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	72(%rsp), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	call	_Z9dwalltimev
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L53
	movq	88(%rsp), %rcx
	movq	64(%rsp), %rdx
	movl	%ebx, %r8d
	movq	80(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z54__device_stub__Z27ecuacion_kernel_outplace_p1PdS_S_S_jPdS_S_S_j
.L53:
	call	cudaThreadSynchronize@PLT
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L54
	movq	88(%rsp), %r8
	movq	80(%rsp), %rcx
	movl	%ebx, %r9d
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movq	56(%rsp), %rdi
	call	_Z56__device_stub__Z27ecuacion_kernel_outplace_p2PdS_S_S_S_jPdS_S_S_S_j
.L54:
	call	cudaThreadSynchronize@PLT
	leaq	.LC5(%rip), %rbp
	call	_Z9dwalltimev
	subsd	8(%rsp), %xmm0
	leaq	.LC4(%rip), %rsi
	movb	$1, %al
	movl	$2, %edi
	call	__printf_chk@PLT
	call	cudaGetLastError@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	(%rsp), %rdx
	movq	72(%rsp), %rsi
	movq	%r15, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	80(%rsp), %rdi
	call	cudaFree@PLT
	movq	88(%rsp), %rdi
	call	cudaFree@PLT
	xorl	%eax, %eax
.L55:
	cmpl	%r14d, %eax
	jnb	.L73
	movl	%eax, %edx
	movq	$0x000000000, (%r15,%rax,8)
	cvtsi2sdq	%rdx, %xmm0
	movsd	%xmm0, 0(%r13,%rax,8)
	movsd	%xmm0, (%r12,%rax,8)
	incq	%rax
	jmp	.L55
.L73:
	movq	(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	cudaMalloc@PLT
	movq	(%rsp), %rdx
	movq	56(%rsp), %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	64(%rsp), %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	movq	(%rsp), %rdx
	movq	72(%rsp), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	call	cudaMemcpy@PLT
	call	_Z9dwalltimev
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L59
	movq	56(%rsp), %rdi
	movl	%ebx, %esi
	call	_Z39__device_stub__Z18kernel_transpuestaPdiPdi
.L59:
	call	cudaThreadSynchronize@PLT
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L60
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	%ebx, %ecx
	movq	56(%rsp), %rdi
	call	_Z42__device_stub__Z17kernel_sum_MatrizPdS_S_jPdS_S_j
.L60:
	call	cudaThreadSynchronize@PLT
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L61
	movq	56(%rsp), %rdi
	movl	%ebx, %esi
	call	_Z39__device_stub__Z18kernel_transpuestaPdiPdi
.L61:
	call	cudaThreadSynchronize@PLT
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L62
	movq	72(%rsp), %rdx
	movq	64(%rsp), %rsi
	movl	%ebx, %ecx
	movq	56(%rsp), %rdi
	call	_Z47__device_stub__Z22kernel_mult_sum_matrizPdS_S_jPdS_S_j
.L62:
	call	cudaThreadSynchronize@PLT
	call	_Z9dwalltimev
	subsd	8(%rsp), %xmm0
	leaq	.LC6(%rip), %rsi
	movb	$1, %al
	movl	$2, %edi
	call	__printf_chk@PLT
	call	cudaGetLastError@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	(%rsp), %rdx
	movq	72(%rsp), %rsi
	movq	%r15, %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rdi
	call	cudaFree@PLT
	movq	64(%rsp), %rdi
	call	cudaFree@PLT
	movq	72(%rsp), %rdi
	call	cudaFree@PLT
	movq	%r13, %rdi
	call	free@PLT
	movq	%r12, %rdi
	call	free@PLT
	movq	%r15, %rdi
	call	free@PLT
.L38:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	main, .-main
	.section	.rodata.str1.1
.LC7:
	.string	"_Z22kernel_mult_sum_matrizPdS_S_j"
.LC8:
	.string	"_Z18kernel_transpuestaPdi"
.LC9:
	.string	"_Z17kernel_sum_MatrizPdS_S_j"
.LC10:
	.string	"_Z28ecuacion_kernel_inplace_sumaPdS_S_j"
.LC11:
	.string	"_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j"
.LC12:
	.string	"_Z27ecuacion_kernel_outplace_p1PdS_S_S_j"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2066:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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	.LC7(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z22kernel_mult_sum_matrizPdS_S_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18kernel_transpuestaPdi(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC9(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z17kernel_sum_MatrizPdS_S_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC10(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z28ecuacion_kernel_inplace_sumaPdS_S_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC11(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC12(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	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	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2066:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <math.h>

//134217728

double dwalltime(){
	double sec;
	struct timeval tv;

	gettimeofday(&tv,NULL);
	sec = tv.tv_sec + tv.tv_usec/1000000.0;
	return sec;
}

__global__ void ecuacion_kernel_outplace_p1(double *d_matA,double *d_matAT,double *d_matB,double *d_matBT, unsigned int n){   
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    
    //transpuesta out-place A y B
    if( (distA<n*n) && (distB<n*n) ){
        d_matAT [distB*n + distA] = d_matA[distA*n + distB];
        d_matBT [distB*n + distA] = d_matB[distA*n + distB];
    }

    
}

__global__ void ecuacion_kernel_outplace_p2(double *d_matA,double *d_matB,double *d_matC,double *d_matAT,double *d_matBT, unsigned int n){    
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    int k;
    if (distA*n+distB <= (n*n - 1)){
        //multiplicacion 
        for(k = 0; k < n ;k++){
            d_matC[distA*n+distB] += d_matA[distA*n+k] * d_matBT[distB+k*n];
        }
        //suma
        d_matC[distA*n+distB] += d_matB[distA*n+distB] + d_matAT[distA*n+distB];
    }
}

__global__ void ecuacion_kernel_inplace_suma (double *d_matA,double *d_matB,double *d_matC, unsigned int n){
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    int k;
    //multiplicacion 
    if (distA*n+distB < (n*n - 1)){
        d_matC[distA*n+distB] += d_matB[distA*n+distB] + d_matA[distA+distB*n]; 
        for(k = 0; k < n ;k++){
            d_matC[distA*n+distB] += d_matA[distA*n+k] * d_matB[distB*n+k]; 
        }
    }

}

__global__ void kernel_sum_Matriz (double *d_matA,double *d_matB,double *d_matC, unsigned int n){
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    //suma 
    if (distA*n+distB < (n*n)){
        d_matC[distA*n+distB] += d_matA[distA*n+distB] + d_matB[distA+distB*n]; 
    }

}

__global__ void kernel_transpuesta(double *m, int N){
	int tid = blockIdx.x*blockDim.x + threadIdx.x;
	int i = int((1 + sqrtf(1 + 8*tid)) / 2);
	int j = tid - (i*(i-1)/2); int aux;
	if ( (i<N) && (j<N) ){
		aux = m[i*N + j] ;
		m[i*N + j] = m[j*N + i];
		m[j*N + i] = aux;
	}
}


__global__ void kernel_mult_sum_matriz (double *d_matA,double *d_matB,double *d_matC, unsigned int n){
    int distA = blockIdx.y * blockDim.y + threadIdx.y; //i
    int distB = blockIdx.x * blockDim.x + threadIdx.x; //j
    int k;
    //multiplicacion 
    if (distA*n+distB < (n*n)){
        for(k = 0; k < n ;k++){
            d_matC[distA*n+distB] += d_matA[distA*n+k] * d_matB[distB*n+k]; 
        }
    }

}

int main(int argc, char *argv[]){

        if (argc != 3){
            printf("Falta argumento: N, CUDABLK\n");
            return 0;
        }
	//declaracion de variables
    hipError_t error;
    unsigned int N = atoi (argv[1]);
    unsigned long CUDA_BLK = atoi (argv[2]), gridBlock;
    unsigned long numBytes = sizeof(double)*N*N;
    double *matA,*matB,*matC,*d_matA,*d_matB,*d_matC,*d_matAT,*d_matBT,timetick;
    unsigned int i,j,k;

	//inicializa variables para cpu
    matA = (double *)malloc(numBytes);
    matB = (double *)malloc(numBytes);
    matC = (double *)malloc(numBytes);
    for (i = 0; i < N*N; i++){
        matA[i] = i;
        matB[i] = i;
        matC[i] = 0;
    }

  //inicializa variables para gpu
  hipMalloc((void **) &d_matA, numBytes);
  hipMalloc((void **) &d_matAT, numBytes);
  hipMalloc((void **) &d_matB, numBytes);
  hipMalloc((void **) &d_matBT, numBytes);
  hipMalloc((void **) &d_matC, numBytes);

  gridBlock = (unsigned int)sqrt(N*N/CUDA_BLK/CUDA_BLK);
  dim3 dimBlock(CUDA_BLK,CUDA_BLK); // Bloque bidimencional de hilos (*cb* hilos)
  dim3 dimGrid(gridBlock,gridBlock); // Grid bidimencional (*ceil(n/cb)* bloques)

    //--------------------------------cpu comienza ------------------------------------

    //secuencial
	timetick = dwalltime();

    //multiplicacion
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            for(k = 0; k < N ;k++){
                matC[i*N+j] += matA[i*N+k] * matB[j*N+k]; //multiplica a matB por fila, eso simula la matB transpuesta
            }
        }
    }
    //suma
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            matC[i*N+j] += matB[i*N+j] + matA[i+j*N];
        }
    }

	printf("Tiempo para la ecuacion CPU: %f\n\n",dwalltime() - timetick);
/*
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            printf("%f|",matC[i*N+j]);
        }
        printf("\n");
    }
	printf("\n");
*/
    //--------------------------------cpu termina ------------------------------------



    for (i = 0; i < N*N; i++){
        matA[i] = i;
        matB[i] = i;
        matC[i] = 0;
    }

    hipMemcpy(d_matA, matA, numBytes, hipMemcpyHostToDevice); // CPU -> GPU
    hipMemcpy(d_matB, matB, numBytes, hipMemcpyHostToDevice); // CPU -> GPU
    hipMemcpy(d_matC, matC, numBytes, hipMemcpyHostToDevice); // CPU -> GPU

    //--------------------------------gpu out-place comienza ------------------------------------

	timetick = dwalltime();
    ecuacion_kernel_outplace_p1<<<dimGrid, dimBlock>>>(d_matA, d_matAT,d_matB,d_matBT, N);
    hipDeviceSynchronize();
    ecuacion_kernel_outplace_p2<<<dimGrid, dimBlock>>>(d_matA, d_matB,d_matC,d_matAT,d_matBT, N);
    hipDeviceSynchronize();


    printf("Tiempo para la ecuacion out-place GPU: %f\n",dwalltime() - timetick);
    error = hipGetLastError();
    printf("error: %d\n\n",error);  

    hipMemcpy(matC, d_matC, numBytes, hipMemcpyDeviceToHost); // GPU -> CPU  
    
/*
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            printf("%f|",matC[i*N+j]);
        }
        printf("\n");
    }
	printf("\n");
*/
    //--------------------------------gpu out-place termina ------------------------------------    

    hipFree(d_matA);
    hipFree(d_matB);
    hipFree(d_matC);
    hipFree(d_matAT);
    hipFree(d_matBT);


    for (i = 0; i < N*N; i++){
        matA[i] = i;
        matB[i] = i;
        matC[i] = 0;
    }

    hipMalloc((void **) &d_matA, numBytes);
    hipMalloc((void **) &d_matB, numBytes);
    hipMalloc((void **) &d_matC, numBytes);
    hipMemcpy(d_matA, matA, numBytes, hipMemcpyHostToDevice); // CPU -> GPU
    hipMemcpy(d_matB, matB, numBytes, hipMemcpyHostToDevice); // CPU -> GPU
    hipMemcpy(d_matC, matC, numBytes, hipMemcpyHostToDevice); // CPU -> GPU


    //--------------------------------gpu in-place comienza ------------------------------------

  

    timetick = dwalltime();
    kernel_transpuesta<<<dimGrid, dimBlock>>>(d_matA, N);
    hipDeviceSynchronize();
    kernel_sum_Matriz<<<dimGrid, dimBlock>>>(d_matA, d_matB,d_matC, N);
    hipDeviceSynchronize();
    kernel_transpuesta<<<dimGrid, dimBlock>>>(d_matA, N);
    hipDeviceSynchronize();
    kernel_mult_sum_matriz<<<dimGrid, dimBlock>>>(d_matA, d_matB,d_matC, N);
    hipDeviceSynchronize();

	printf("Tiempo para la ecuacion in-place GPU: %f\n",dwalltime() - timetick);
    error = hipGetLastError();
    printf("error: %d\n\n",error); 
    hipMemcpy(matC, d_matC, numBytes, hipMemcpyDeviceToHost); // GPU -> CPU


    //--------------------------------gpu in-place termina ------------------------------------

  
    hipFree(d_matA);
    hipFree(d_matB);
    hipFree(d_matC);
/*
  //imprime la matriz matC
    for(i = 0; i < N; i++){
        for(j = 0; j < N; j++){
            printf("%f|",matC[i*N+j]);
        }
        printf("\n");
    }
	printf("\n");

*/
    free(matA);
    free(matB);
    free(matC);
    return 0;
}

	.text
	.file	"ejercicio1_sin_tiempo_copia.hip"
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z9dwalltimev
.LCPI0_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	_Z9dwalltimev
	.type	_Z9dwalltimev,@function
_Z9dwalltimev:                          # @_Z9dwalltimev
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cvtsi2sdq	(%rbx), %xmm1
	cvtsi2sdq	8(%rbx), %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z9dwalltimev, .Lfunc_end0-_Z9dwalltimev
	.cfi_endproc
                                        # -- End function
	.globl	_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j # -- Begin function _Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j
	.type	_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j,@function
_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j: # @_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j
	.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	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z27ecuacion_kernel_outplace_p1PdS_S_S_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j, .Lfunc_end1-_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j # -- Begin function _Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.type	_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j,@function
_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j: # @_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.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	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	24(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	4(%rsp), %r8
	movl	%r9d, (%r8)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	80(%rsp), %r14
	leaq	64(%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	$_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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_end2:
	.size	_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j, .Lfunc_end2-_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j # -- Begin function _Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j
	.type	_Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j,@function
_Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j: # @_Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j
	.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	$_Z28ecuacion_kernel_inplace_sumaPdS_S_j, %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_end3:
	.size	_Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j, .Lfunc_end3-_Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__kernel_sum_MatrizPdS_S_j # -- Begin function _Z32__device_stub__kernel_sum_MatrizPdS_S_j
	.type	_Z32__device_stub__kernel_sum_MatrizPdS_S_j,@function
_Z32__device_stub__kernel_sum_MatrizPdS_S_j: # @_Z32__device_stub__kernel_sum_MatrizPdS_S_j
	.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	$_Z17kernel_sum_MatrizPdS_S_j, %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_end4:
	.size	_Z32__device_stub__kernel_sum_MatrizPdS_S_j, .Lfunc_end4-_Z32__device_stub__kernel_sum_MatrizPdS_S_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__kernel_transpuestaPdi # -- Begin function _Z33__device_stub__kernel_transpuestaPdi
	.type	_Z33__device_stub__kernel_transpuestaPdi,@function
_Z33__device_stub__kernel_transpuestaPdi: # @_Z33__device_stub__kernel_transpuestaPdi
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$80, %rsp
	.cfi_def_cfa_offset 128
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z18kernel_transpuestaPdi, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$96, %rsp
	.cfi_adjust_cfa_offset -96
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z33__device_stub__kernel_transpuestaPdi, .Lfunc_end5-_Z33__device_stub__kernel_transpuestaPdi
	.cfi_endproc
                                        # -- End function
	.globl	_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j # -- Begin function _Z37__device_stub__kernel_mult_sum_matrizPdS_S_j
	.type	_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j,@function
_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j: # @_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j
	.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	$_Z22kernel_mult_sum_matrizPdS_S_j, %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_end6:
	.size	_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j, .Lfunc_end6-_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI7_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	cmpl	$3, %edi
	jne	.LBB7_1
# %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, %ebp
	movl	%eax, %r13d
	movq	16(%rbx), %rdi
	callq	atoi
	cltq
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movq	%r13, %r15
	imulq	%r13, %r15
	shlq	$3, %r15
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r14
	movq	%r15, 48(%rsp)                  # 8-byte Spill
	movq	%r15, %rdi
	callq	malloc
	movq	%rax, %r15
	imull	%ebp, %ebp
	testl	%ebp, %ebp
	movl	%ebp, 56(%rsp)                  # 4-byte Spill
	je	.LBB7_3
# %bb.4:                                # %.lr.ph.preheader
	movl	%ebp, %ebp
	leaq	(,%rbp,8), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB7_5:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, (%rbx,%r12,8)
	movsd	%xmm0, (%r14,%r12,8)
	incq	%r12
	cmpq	%r12, %rbp
	jne	.LBB7_5
	jmp	.LBB7_6
.LBB7_1:
	movl	$.Lstr, %edi
	callq	puts@PLT
	jmp	.LBB7_36
.LBB7_3:
	xorl	%ebp, %ebp
.LBB7_6:                                # %._crit_edge
	leaq	24(%rsp), %rdi
	movq	48(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rsi
	callq	hipMalloc
	leaq	88(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	leaq	80(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	leaq	16(%rsp), %rdi
	movq	%r12, %rsi
	callq	hipMalloc
	movq	%rbp, %rax
	xorl	%edx, %edx
	movq	8(%rsp), %rcx                   # 8-byte Reload
	divq	%rcx
	xorl	%edx, %edx
	divq	%rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	xorl	%r12d, %r12d
	sqrtsd	%xmm0, %xmm0
	cvttsd2si	%xmm0, %rdx
	movl	%ecx, %eax
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	shlq	$32, %rcx
	movq	%rcx, 8(%rsp)                   # 8-byte Spill
	movl	%edx, %eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	shlq	$32, %rdx
	movq	%rdx, 64(%rsp)                  # 8-byte Spill
	leaq	96(%rsp), %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	leaq	96(%rsp), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax), %xmm0
	cvtsi2sdq	8(%rax), %xmm1
	divsd	.LCPI7_0(%rip), %xmm1
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 112(%rsp)                # 8-byte Spill
	testq	%r13, %r13
	je	.LBB7_17
# %bb.7:                                # %.preheader211.preheader
	xorl	%eax, %eax
.LBB7_8:                                # %.preheader211
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_9 Depth 2
                                        #       Child Loop BB7_10 Depth 3
	movl	%r12d, %ecx
	imull	%r13d, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
.LBB7_9:                                # %.preheader210
                                        #   Parent Loop BB7_8 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB7_10 Depth 3
	leal	(%rcx,%rsi), %edi
	movsd	(%r15,%rdi,8), %xmm0            # xmm0 = mem[0],zero
	xorl	%r8d, %r8d
.LBB7_10:                               #   Parent Loop BB7_8 Depth=1
                                        #     Parent Loop BB7_9 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	leal	(%rax,%r8), %r9d
	movsd	(%rbx,%r9,8), %xmm1             # xmm1 = mem[0],zero
	leal	(%rdx,%r8), %r9d
	mulsd	(%r14,%r9,8), %xmm1
	addsd	%xmm1, %xmm0
	incq	%r8
	cmpq	%r8, %r13
	jne	.LBB7_10
# %bb.11:                               #   in Loop: Header=BB7_9 Depth=2
	movsd	%xmm0, (%r15,%rdi,8)
	incq	%rsi
	addq	%r13, %rdx
	cmpq	%r13, %rsi
	jne	.LBB7_9
# %bb.12:                               #   in Loop: Header=BB7_8 Depth=1
	incl	%r12d
	addq	%r13, %rax
	cmpl	%r13d, %r12d
	jne	.LBB7_8
# %bb.13:                               # %.preheader.preheader
	xorl	%eax, %eax
	xorl	%ecx, %ecx
.LBB7_14:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_15 Depth 2
	movl	%ecx, %edx
	xorl	%esi, %esi
.LBB7_15:                               #   Parent Loop BB7_14 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	leal	(%rax,%rsi), %edi
	movsd	(%r14,%rdi,8), %xmm0            # xmm0 = mem[0],zero
	movl	%edx, %r8d
	addsd	(%rbx,%r8,8), %xmm0
	addsd	(%r15,%rdi,8), %xmm0
	movsd	%xmm0, (%r15,%rdi,8)
	incq	%rsi
	addl	%r13d, %edx
	cmpq	%rsi, %r13
	jne	.LBB7_15
# %bb.16:                               #   in Loop: Header=BB7_14 Depth=1
	incl	%ecx
	addq	%r13, %rax
	cmpl	%r13d, %ecx
	jne	.LBB7_14
.LBB7_17:                               # %._crit_edge219
	movq	8(%rsp), %rax                   # 8-byte Reload
	addq	%rax, 72(%rsp)                  # 8-byte Folded Spill
	movq	64(%rsp), %rax                  # 8-byte Reload
	addq	%rax, 40(%rsp)                  # 8-byte Folded Spill
	leaq	96(%rsp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r12), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	divsd	.LCPI7_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	subsd	112(%rsp), %xmm0                # 8-byte Folded Reload
	movl	$.L.str.1, %edi
	movb	$1, %al
	callq	printf
	cmpl	$0, 56(%rsp)                    # 4-byte Folded Reload
	je	.LBB7_20
# %bb.18:                               # %.lr.ph222.preheader
	leaq	(,%rbp,8), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB7_19:                               # %.lr.ph222
                                        # =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, (%rbx,%r12,8)
	movsd	%xmm0, (%r14,%r12,8)
	incq	%r12
	cmpq	%r12, %rbp
	jne	.LBB7_19
.LBB7_20:                               # %._crit_edge223
	movq	24(%rsp), %rdi
	movq	%rbx, %rsi
	movq	48(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	32(%rsp), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movq	16(%rsp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	96(%rsp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	divsd	.LCPI7_0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movq	%rdi, 40(%rsp)                  # 8-byte Spill
	movl	$1, %esi
	movq	72(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_22
# %bb.21:
	movq	24(%rsp), %rdi
	movq	88(%rsp), %rsi
	movq	32(%rsp), %rdx
	movq	80(%rsp), %rcx
	movl	%r13d, %r8d
	callq	_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j
.LBB7_22:
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	64(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	callq	hipDeviceSynchronize
	movq	40(%rsp), %rdi                  # 8-byte Reload
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_24
# %bb.23:
	movq	24(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdx
	movq	88(%rsp), %rcx
	movq	80(%rsp), %r8
	movl	%r13d, %r9d
	callq	_Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j
.LBB7_24:
	callq	hipDeviceSynchronize
	leaq	96(%rsp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cvtsi2sdq	(%r12), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	divsd	.LCPI7_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	subsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movl	$.L.str.2, %edi
	movb	$1, %al
	callq	printf
	callq	hipGetLastError
	movl	$.L.str.3, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	printf
	movq	16(%rsp), %rsi
	movq	%r15, %rdi
	movq	48(%rsp), %rdx                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	88(%rsp), %rdi
	callq	hipFree
	movq	80(%rsp), %rdi
	callq	hipFree
	cmpl	$0, 56(%rsp)                    # 4-byte Folded Reload
	je	.LBB7_27
# %bb.25:                               # %.lr.ph226.preheader
	leaq	(,%rbp,8), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB7_26:                               # %.lr.ph226
                                        # =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, (%rbx,%r12,8)
	movsd	%xmm0, (%r14,%r12,8)
	incq	%r12
	cmpq	%r12, %rbp
	jne	.LBB7_26
.LBB7_27:                               # %._crit_edge227
	leaq	24(%rsp), %r12
	movq	%r12, %rdi
	movq	48(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %rsi
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	leaq	16(%rsp), %rdi
	movq	%rbp, %rsi
	callq	hipMalloc
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	32(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	16(%rsp), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%rbp, %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	96(%rsp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movsd	%xmm0, 56(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	40(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	72(%rsp), %r12                  # 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_29
# %bb.28:
	movq	24(%rsp), %rdi
	movl	%r13d, %esi
	callq	_Z33__device_stub__kernel_transpuestaPdi
.LBB7_29:
	callq	hipDeviceSynchronize
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_31
# %bb.30:
	movq	24(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdx
	movl	%r13d, %ecx
	callq	_Z32__device_stub__kernel_sum_MatrizPdS_S_j
.LBB7_31:
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	.LCPI7_0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	callq	hipDeviceSynchronize
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_33
# %bb.32:
	movq	24(%rsp), %rdi
	movl	%r13d, %esi
	callq	_Z33__device_stub__kernel_transpuestaPdi
.LBB7_33:
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	56(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	callq	hipDeviceSynchronize
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB7_35
# %bb.34:
	movq	24(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	16(%rsp), %rdx
	movl	%r13d, %ecx
	callq	_Z37__device_stub__kernel_mult_sum_matrizPdS_S_j
.LBB7_35:
	callq	hipDeviceSynchronize
	leaq	96(%rsp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	cvtsi2sdq	(%r12), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	divsd	.LCPI7_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	subsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movl	$.L.str.4, %edi
	movb	$1, %al
	callq	printf
	callq	hipGetLastError
	movl	$.L.str.3, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	printf
	movq	16(%rsp), %rsi
	movq	%r15, %rdi
	movq	48(%rsp), %rdx                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi
	callq	hipFree
	movq	32(%rsp), %rdi
	callq	hipFree
	movq	16(%rsp), %rdi
	callq	hipFree
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	%r15, %rdi
	callq	free
.LBB7_36:
	xorl	%eax, %eax
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	main, .Lfunc_end7-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:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB8_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB8_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z27ecuacion_kernel_outplace_p1PdS_S_S_j, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z28ecuacion_kernel_inplace_sumaPdS_S_j, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17kernel_sum_MatrizPdS_S_j, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18kernel_transpuestaPdi, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z22kernel_mult_sum_matrizPdS_S_j, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end8:
	.size	__hip_module_ctor, .Lfunc_end8-__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	.LBB9_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
.LBB9_2:
	retq
.Lfunc_end9:
	.size	__hip_module_dtor, .Lfunc_end9-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j,@object # @_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.section	.rodata,"a",@progbits
	.globl	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.p2align	3, 0x0
_Z27ecuacion_kernel_outplace_p1PdS_S_S_j:
	.quad	_Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j
	.size	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j, 8

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

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

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

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

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

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Tiempo para la ecuacion CPU: %f\n\n"
	.size	.L.str.1, 34

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Tiempo para la ecuacion out-place GPU: %f\n"
	.size	.L.str.2, 43

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"error: %d\n\n"
	.size	.L.str.3, 12

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Tiempo para la ecuacion in-place GPU: %f\n"
	.size	.L.str.4, 42

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z27ecuacion_kernel_outplace_p1PdS_S_S_j"
	.size	.L__unnamed_1, 41

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j"
	.size	.L__unnamed_2, 43

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z28ecuacion_kernel_inplace_sumaPdS_S_j"
	.size	.L__unnamed_3, 40

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z17kernel_sum_MatrizPdS_S_j"
	.size	.L__unnamed_4, 29

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z18kernel_transpuestaPdi"
	.size	.L__unnamed_5, 26

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z22kernel_mult_sum_matrizPdS_S_j"
	.size	.L__unnamed_6, 34

	.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	"Falta argumento: N, CUDABLK"
	.size	.Lstr, 28

	.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 _Z42__device_stub__ecuacion_kernel_outplace_p1PdS_S_S_j
	.addrsig_sym _Z42__device_stub__ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.addrsig_sym _Z43__device_stub__ecuacion_kernel_inplace_sumaPdS_S_j
	.addrsig_sym _Z32__device_stub__kernel_sum_MatrizPdS_S_j
	.addrsig_sym _Z33__device_stub__kernel_transpuestaPdi
	.addrsig_sym _Z37__device_stub__kernel_mult_sum_matrizPdS_S_j
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.addrsig_sym _Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.addrsig_sym _Z28ecuacion_kernel_inplace_sumaPdS_S_j
	.addrsig_sym _Z17kernel_sum_MatrizPdS_S_j
	.addrsig_sym _Z18kernel_transpuestaPdi
	.addrsig_sym _Z22kernel_mult_sum_matrizPdS_S_j
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j ; -- Begin function _Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.globl	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
	.p2align	8
	.type	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j,@function
_Z27ecuacion_kernel_outplace_p1PdS_S_S_j: ; @_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x34
	s_load_b32 s2, s[0:1], 0x20
	v_bfe_u32 v2, v0, 10, 10
	v_and_b32_e32 v3, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[0:1], null, s15, s4, v[2:3]
	v_mad_u64_u32 v[1:2], null, s14, s3, v[3:4]
	s_mul_i32 s3, s2, s2
	v_max_u32_e32 v2, v0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_u32_e32 vcc_lo, s3, v2
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v0, s2, v[1:2]
	v_mov_b32_e32 v3, 0
	v_mad_u64_u32 v[8:9], null, v1, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mov_b32_e32 v9, v3
	v_lshlrev_b64 v[4:5], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 3, v[8:9]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v6, vcc_lo, s4, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v5, vcc_lo
	v_add_co_u32 v2, vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v1, vcc_lo
	global_load_b64 v[6:7], v[6:7], off
	v_add_co_u32 v4, vcc_lo, s8, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s9, v5, vcc_lo
	v_add_co_u32 v0, vcc_lo, s10, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s11, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b64 v[2:3], v[6:7], off
	global_load_b64 v[2:3], v[4:5], off
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[2:3], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27ecuacion_kernel_outplace_p1PdS_S_S_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 10
		.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	_Z27ecuacion_kernel_outplace_p1PdS_S_S_j, .Lfunc_end0-_Z27ecuacion_kernel_outplace_p1PdS_S_S_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 264
; NumSgprs: 18
; NumVgprs: 10
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 10
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j ; -- Begin function _Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.globl	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
	.p2align	8
	.type	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j,@function
_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j: ; @_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x3c
	s_load_b32 s2, s[0:1], 0x28
	v_bfe_u32 v1, v0, 10, 10
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	v_mad_u64_u32 v[4:5], null, s15, s4, v[1:2]
	v_mad_u64_u32 v[2:3], null, s14, s3, v[0:1]
	s_mul_i32 s3, s2, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_add_i32 s3, s3, -1
	v_mul_lo_u32 v10, v4, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v6, v10, v2
	v_cmp_ge_u32_e32 vcc_lo, s3, v6
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB1_4
; %bb.1:                                ; %.preheader
	s_load_b256 s[4:11], s[0:1], 0x0
	v_mov_b32_e32 v7, 0
	s_load_b64 s[0:1], s[0:1], 0x20
	s_cmp_eq_u32 s2, 0
	s_mov_b32 s3, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[8:9], 3, v[6:7]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v0, vcc_lo, s8, v8
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s9, v9, vcc_lo
	global_load_b64 v[4:5], v[0:1], off
	s_cbranch_scc1 .LBB1_3
.LBB1_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	v_dual_mov_b32 v3, v7 :: v_dual_add_nc_u32 v6, s3, v10
	s_add_i32 s3, s3, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_cmp_lg_u32 s2, s3
	v_lshlrev_b64 v[11:12], 3, v[6:7]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[13:14], 3, v[2:3]
	v_add_nc_u32_e32 v2, s2, v2
	v_add_co_u32 v11, vcc_lo, s4, v11
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_ci_u32_e32 v12, vcc_lo, s5, v12, vcc_lo
	v_add_co_u32 v13, vcc_lo, s0, v13
	v_add_co_ci_u32_e32 v14, vcc_lo, s1, v14, vcc_lo
	global_load_b64 v[11:12], v[11:12], off
	global_load_b64 v[13:14], v[13:14], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[4:5], v[11:12], v[13:14], v[4:5]
	global_store_b64 v[0:1], v[4:5], off
	s_cbranch_scc1 .LBB1_2
.LBB1_3:                                ; %._crit_edge
	v_add_co_u32 v2, vcc_lo, s6, v8
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v9, vcc_lo
	v_add_co_u32 v6, vcc_lo, s10, v8
	v_add_co_ci_u32_e32 v7, vcc_lo, s11, v9, vcc_lo
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[6:7], v[6:7], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[6:7]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[2:3], v[4:5], v[2:3]
	global_store_b64 v[0:1], v[2:3], off
.LBB1_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 15
		.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_end1:
	.size	_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j, .Lfunc_end1-_Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 376
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z28ecuacion_kernel_inplace_sumaPdS_S_j ; -- Begin function _Z28ecuacion_kernel_inplace_sumaPdS_S_j
	.globl	_Z28ecuacion_kernel_inplace_sumaPdS_S_j
	.p2align	8
	.type	_Z28ecuacion_kernel_inplace_sumaPdS_S_j,@function
_Z28ecuacion_kernel_inplace_sumaPdS_S_j: ; @_Z28ecuacion_kernel_inplace_sumaPdS_S_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x2c
	s_load_b32 s2, s[0:1], 0x18
	v_bfe_u32 v1, v0, 10, 10
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	v_mad_u64_u32 v[3:4], null, s15, s4, v[1:2]
	v_mad_u64_u32 v[5:6], null, s14, s3, v[0:1]
	s_mul_i32 s3, s2, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	s_add_i32 s3, s3, -1
	v_mul_lo_u32 v0, v3, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, v0, v5
	v_cmp_gt_u32_e32 vcc_lo, s3, v4
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB2_3
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mul_lo_u32 v2, v5, s2
	v_mov_b32_e32 v1, 0
	s_load_b64 s[0:1], s[0:1], 0x10
	s_cmp_eq_u32 s2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_dual_mov_b32 v5, v1 :: v_dual_add_nc_u32 v6, v2, v3
	v_mov_b32_e32 v7, v1
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v8, vcc_lo, s6, v4
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v9, vcc_lo, s7, v5, vcc_lo
	v_add_co_u32 v6, vcc_lo, s4, v6
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v7, vcc_lo
	global_load_b64 v[8:9], v[8:9], off
	global_load_b64 v[6:7], v[6:7], off
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[10:11], v[4:5], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[6:7], v[8:9], v[6:7]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[6:7], v[10:11], v[6:7]
	global_store_b64 v[4:5], v[6:7], off
	s_cbranch_scc1 .LBB2_3
.LBB2_2:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v3, v1
	v_lshlrev_b64 v[8:9], 3, v[0:1]
	v_add_nc_u32_e32 v0, 1, v0
	s_add_i32 s2, s2, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	s_cmp_lg_u32 s2, 0
	v_lshlrev_b64 v[10:11], 3, v[2:3]
	v_add_co_u32 v8, vcc_lo, s4, v8
	v_add_co_ci_u32_e32 v9, vcc_lo, s5, v9, vcc_lo
	v_add_nc_u32_e32 v2, 1, v2
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v10, vcc_lo, s6, v10
	v_add_co_ci_u32_e32 v11, vcc_lo, s7, v11, vcc_lo
	global_load_b64 v[8:9], v[8:9], off
	global_load_b64 v[10:11], v[10:11], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[6:7], v[8:9], v[10:11], v[6:7]
	global_store_b64 v[4:5], v[6:7], off
	s_cbranch_scc1 .LBB2_2
.LBB2_3:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z28ecuacion_kernel_inplace_sumaPdS_S_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 12
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z28ecuacion_kernel_inplace_sumaPdS_S_j, .Lfunc_end2-_Z28ecuacion_kernel_inplace_sumaPdS_S_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 408
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z17kernel_sum_MatrizPdS_S_j ; -- Begin function _Z17kernel_sum_MatrizPdS_S_j
	.globl	_Z17kernel_sum_MatrizPdS_S_j
	.p2align	8
	.type	_Z17kernel_sum_MatrizPdS_S_j,@function
_Z17kernel_sum_MatrizPdS_S_j:           ; @_Z17kernel_sum_MatrizPdS_S_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x2c
	s_load_b32 s2, s[0:1], 0x18
	v_bfe_u32 v2, v0, 10, 10
	v_and_b32_e32 v5, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	v_mad_u64_u32 v[0:1], null, s15, s4, v[2:3]
	v_mad_u64_u32 v[3:4], null, s14, s3, v[5:6]
	s_mul_i32 s3, s2, s2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, v0, s2, v[3:4]
	v_cmp_gt_u32_e32 vcc_lo, s3, v1
	s_and_saveexec_b32 s3, vcc_lo
	s_cbranch_execz .LBB3_2
; %bb.1:
	s_load_b128 s[4:7], s[0:1], 0x0
	v_mov_b32_e32 v2, 0
	v_mad_u64_u32 v[4:5], null, v3, s2, v[0:1]
	s_load_b64 s[0:1], s[0:1], 0x10
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mov_b32_e32 v5, v2
	v_lshlrev_b64 v[0:1], 3, v[1:2]
	v_lshlrev_b64 v[2:3], 3, v[4:5]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v1, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	global_load_b64 v[4:5], v[4:5], off
	global_load_b64 v[2:3], v[2:3], off
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b64 v[6:7], v[0:1], off
	s_waitcnt vmcnt(1)
	v_add_f64 v[2:3], v[4:5], v[2:3]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[2:3], v[6:7], v[2:3]
	global_store_b64 v[0:1], v[2:3], off
.LBB3_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17kernel_sum_MatrizPdS_S_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 8
		.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_end3:
	.size	_Z17kernel_sum_MatrizPdS_S_j, .Lfunc_end3-_Z17kernel_sum_MatrizPdS_S_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 268
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z18kernel_transpuestaPdi ; -- Begin function _Z18kernel_transpuestaPdi
	.globl	_Z18kernel_transpuestaPdi
	.p2align	8
	.type	_Z18kernel_transpuestaPdi,@function
_Z18kernel_transpuestaPdi:              ; @_Z18kernel_transpuestaPdi
; %bb.0:
	s_load_b32 s2, s[0:1], 0x1c
	s_mov_b32 s3, exec_lo
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	v_lshl_or_b32 v0, v1, 3, 1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cvt_f32_i32_e32 v0, v0
	v_mul_f32_e32 v2, 0x4f800000, v0
	v_cmp_gt_f32_e32 vcc_lo, 0xf800000, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v0, v2, vcc_lo
	v_sqrt_f32_e32 v2, v0
	s_waitcnt_depctr 0xfff
	v_add_nc_u32_e32 v3, -1, v2
	v_add_nc_u32_e32 v4, 1, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f32 v5, -v3, v2, v0
	v_fma_f32 v6, -v4, v2, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_ge_f32_e64 s2, 0, v5
	v_cndmask_b32_e64 v2, v2, v3, s2
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cmp_lt_f32_e64 s2, 0, v6
	v_cndmask_b32_e64 v2, v2, v4, s2
	s_load_b32 s2, s[0:1], 0x8
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v3, 0x37800000, v2
	v_cndmask_b32_e32 v2, v2, v3, vcc_lo
	v_cmp_class_f32_e64 vcc_lo, v0, 0x260
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_cndmask_b32_e32 v0, v2, v0, vcc_lo
	v_add_f32_e32 v0, 1.0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f32_e32 v0, 0.5, v0
	v_cvt_i32_f32_e32 v0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v2, -1, v0
	v_mul_lo_u32 v2, v2, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshrrev_b32_e32 v3, 31, v2
	v_add_nc_u32_e32 v2, v2, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 1, v2
	v_sub_nc_u32_e32 v1, v1, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_max_i32_e32 v2, v0, v1
	s_waitcnt lgkmcnt(0)
	v_cmpx_gt_i32_e64 s2, v2
	s_cbranch_execz .LBB4_2
; %bb.1:
	s_load_b64 s[0:1], s[0:1], 0x0
	v_mad_u64_u32 v[2:3], null, v0, s2, v[1:2]
	v_mad_u64_u32 v[6:7], null, v1, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v3, 31, v2
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	v_lshlrev_b64 v[0:1], 3, v[6:7]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v2, vcc_lo, s0, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s1, v3, vcc_lo
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	s_clause 0x1
	global_load_b64 v[4:5], v[2:3], off
	global_load_b64 v[6:7], v[0:1], off
	s_waitcnt vmcnt(1)
	v_cvt_i32_f64_e32 v4, v[4:5]
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_f64_i32_e32 v[4:5], v4
	s_waitcnt vmcnt(0)
	s_clause 0x1
	global_store_b64 v[2:3], v[6:7], off
	global_store_b64 v[0:1], v[4:5], off
.LBB4_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18kernel_transpuestaPdi
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.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 8
		.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_end4:
	.size	_Z18kernel_transpuestaPdi, .Lfunc_end4-_Z18kernel_transpuestaPdi
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 440
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; 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
	.protected	_Z22kernel_mult_sum_matrizPdS_S_j ; -- Begin function _Z22kernel_mult_sum_matrizPdS_S_j
	.globl	_Z22kernel_mult_sum_matrizPdS_S_j
	.p2align	8
	.type	_Z22kernel_mult_sum_matrizPdS_S_j,@function
_Z22kernel_mult_sum_matrizPdS_S_j:      ; @_Z22kernel_mult_sum_matrizPdS_S_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x2c
	s_load_b32 s4, s[0:1], 0x18
	v_bfe_u32 v1, v0, 10, 10
	v_and_b32_e32 v0, 0x3ff, v0
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	v_mad_u64_u32 v[2:3], null, s15, s3, v[1:2]
	v_mad_u64_u32 v[6:7], null, s14, s2, v[0:1]
	s_mul_i32 s2, s4, s4
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v0, v2, s4
	v_add_nc_u32_e32 v2, v0, v6
	s_delay_alu instid0(VALU_DEP_1)
	v_cmp_gt_u32_e32 vcc_lo, s2, v2
	s_and_saveexec_b32 s2, vcc_lo
	s_cbranch_execz .LBB5_3
; %bb.1:                                ; %.lr.ph
	s_load_b64 s[2:3], s[0:1], 0x10
	v_mov_b32_e32 v1, 0
	v_mul_lo_u32 v6, v6, s4
	s_max_u32 s4, s4, 1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mov_b32_e32 v3, v1
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v2, vcc_lo, s2, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v3, vcc_lo
	s_load_b128 s[0:3], s[0:1], 0x0
	global_load_b64 v[4:5], v[2:3], off
.LBB5_2:                                ; =>This Inner Loop Header: Depth=1
	v_mov_b32_e32 v7, v1
	v_lshlrev_b64 v[8:9], 3, v[0:1]
	v_add_nc_u32_e32 v0, 1, v0
	s_add_i32 s4, s4, -1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s4, 0
	v_lshlrev_b64 v[10:11], 3, v[6:7]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v7, vcc_lo, s0, v8
	v_add_co_ci_u32_e32 v8, vcc_lo, s1, v9, vcc_lo
	v_add_nc_u32_e32 v6, 1, v6
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v9, vcc_lo, s2, v10
	v_add_co_ci_u32_e32 v10, vcc_lo, s3, v11, vcc_lo
	global_load_b64 v[7:8], v[7:8], off
	global_load_b64 v[9:10], v[9:10], off
	s_waitcnt vmcnt(0)
	v_fma_f64 v[4:5], v[7:8], v[9:10], v[4:5]
	global_store_b64 v[2:3], v[4:5], off
	s_cbranch_scc1 .LBB5_2
.LBB5_3:                                ; %.loopexit
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z22kernel_mult_sum_matrizPdS_S_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 12
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z22kernel_mult_sum_matrizPdS_S_j, .Lfunc_end5-_Z22kernel_mult_sum_matrizPdS_S_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 304
; NumSgprs: 18
; NumVgprs: 12
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 12
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .offset:         32
        .size:           4
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z27ecuacion_kernel_outplace_p1PdS_S_S_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z27ecuacion_kernel_outplace_p1PdS_S_S_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .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
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z27ecuacion_kernel_outplace_p2PdS_S_S_S_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     15
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .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:           _Z28ecuacion_kernel_inplace_sumaPdS_S_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z28ecuacion_kernel_inplace_sumaPdS_S_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .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:           _Z17kernel_sum_MatrizPdS_S_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17kernel_sum_MatrizPdS_S_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18kernel_transpuestaPdi
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18kernel_transpuestaPdi.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .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:           _Z22kernel_mult_sum_matrizPdS_S_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z22kernel_mult_sum_matrizPdS_S_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     12
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
