/*
Matrix Vector multiplication with partially missing cuda copy of the matrix.
*/
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

//Grid dimension
#define B 100

//Block dimension
#define T 256

//Array size
#define C B*T

// Macro for checking errors in CUDA API calls
#define cudaErrorCheck(call)                                                              \
do{                                                                                       \
    cudaError_t cuErr = call;                                                             \
    if(cudaSuccess != cuErr){                                                             \
      printf("CUDA Error - %s:%d: '%s'\n", __FILE__, __LINE__, cudaGetErrorString(cuErr));\
      exit(0);                                                                            \
    }                                                                                     \
}while(0)

//Host pointer for matrix b, input vector a and result vector c
int *a;
int *b;
int *c;

//Device pointer for matrix d_b, input vector d_a and result vector d_c
int *d_a;
int *d_b;
int *d_c;

//Initialization and allocation of the host variables
int init(){
    //Allocating host variables
    a = (int *) malloc(C*sizeof(int));
    b = (int *) malloc(C*C*sizeof(int));
    c = (int *) malloc(C*sizeof(int));
    
    //Initialize host values
    for(int i=0; i<C; i++){
        for(int j=0; j<C; j++){
            b[j+i*C]=1;
        }
        a[i]=1;
        c[i]=0;
    }
        return 0;
}

//Kernel
__global__ void Mult(int* d_a, int* d_b, int* d_c){
    int tid = blockDim.x * blockIdx.x + threadIdx.x;
    
    for(int j=0; j<C; j++){
        d_c[tid]+=d_b[j+tid*C]*d_a[j];
    }
}

//Checking if the values stored in c are correct
int check(){
    bool test = false;
    for(int i=0; i<C; i++){
        if(c[i]!=C){
            test = true;
        }
    }
    printf("Memory Access Issue visible: %s\n",test ? "true\n" : "false\n");
    return 0;
    
    
}

//Initialization of the variables on the GPU 
int initcuda(){
    //Allocation of GPU memory for d_a,d_b,d_c
    cudaErrorCheck( cudaMalloc(&d_a, C*sizeof(int)));
    cudaErrorCheck( cudaMalloc(&d_b, C*C*sizeof(int)));
    cudaErrorCheck( cudaMalloc(&d_c, C*sizeof(int)));
    
    //Copying the array a and half the matrix b from the host to the array d_a and the matrix d_b on the device
    cudaErrorCheck( cudaMemcpy(d_a,a,C*sizeof(int),cudaMemcpyHostToDevice));
    cudaErrorCheck( cudaMemcpy(d_b,b,C*C*sizeof(int)/2,cudaMemcpyHostToDevice));
    
    return 0;
}

//Main programm
int main(){
    //Calling the initialization methods
    init();
    initcuda();
    
    //Launch Kernel
    Mult<<<B,T>>>(d_a,d_b,d_c);
    
     // Check for errors in kernel launch (e.g. invalid execution configuration paramters)
    cudaErrorCheck( cudaGetLastError());

    // Check for errors on the GPU after control is returned to CPU
    cudaErrorCheck( cudaDeviceSynchronize());
    
    //Copying back the result d_c from the device to the host array c
    cudaErrorCheck( cudaMemcpy(c,d_c,C*sizeof(int),cudaMemcpyDeviceToHost)); 
    
    //Verify result
    check();
    
    //Freeing GPU memory
    cudaErrorCheck( cudaFree(d_a));
    cudaErrorCheck( cudaFree(d_b));
    cudaErrorCheck( cudaFree(d_c));
    
    //Freeing CPU memory
    free(a);
    free(b);
    free(c);
    return 0;
}
	.file	"tmpxft_0038f0ff_00000000-6_DRACC_CUDA_011_MxV_partially_Missing_Data_yes.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2033:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2033:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z4initv
	.type	_Z4initv, @function
_Z4initv:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$102400, %edi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	pushq	%rcx
	.cfi_def_cfa_offset 32
	call	malloc@PLT
	movl	$2621440000, %edi
	movq	%rax, a(%rip)
	movq	%rax, %rbx
	call	malloc@PLT
	movl	$102400, %edi
	movq	%rax, b(%rip)
	movq	%rax, %rbp
	call	malloc@PLT
	xorl	%ecx, %ecx
	movq	%rax, c(%rip)
	movq	%rax, %rdx
.L4:
	imulq	$102400, %rcx, %rsi
	xorl	%eax, %eax
	addq	%rbp, %rsi
.L3:
	movl	$1, (%rsi,%rax,4)
	incq	%rax
	cmpq	$25600, %rax
	jne	.L3
	movl	$1, (%rbx,%rcx,4)
	incq	%rcx
	cmpq	$25600, %rcx
	jne	.L4
	xorl	%eax, %eax
	movq	%rdx, %rdi
	rep stosl
	popq	%rdx
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z4initv, .-_Z4initv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"true\n"
.LC1:
	.string	"false\n"
.LC2:
	.string	"Memory Access Issue visible: %s\n"
	.text
	.globl	_Z5checkv
	.type	_Z5checkv, @function
_Z5checkv:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%rcx
	.cfi_def_cfa_offset 16
	movq	c(%rip), %rsi
	xorl	%eax, %eax
	xorl	%edx, %edx
	movb	$1, %cl
.L15:
	cmpl	$25600, (%rsi,%rax,4)
	cmovne	%ecx, %edx
	incq	%rax
	cmpq	$25600, %rax
	jne	.L15
	testb	%dl, %dl
	leaq	.LC0(%rip), %rax
	movl	$2, %edi
	leaq	.LC1(%rip), %rdx
	leaq	.LC2(%rip), %rsi
	cmovne	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z5checkv, .-_Z5checkv
	.section	.rodata.str1.1
.LC3:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/RWTH-HPC/DRACC/master/CUDA/src/DRACC_CUDA_011_MxV_partially_Missing_Data_yes.cu"
.LC4:
	.string	"CUDA Error - %s:%d: '%s'\n"
	.text
	.globl	_Z8initcudav
	.type	_Z8initcudav, @function
_Z8initcudav:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%rcx
	.cfi_def_cfa_offset 16
	movl	$102400, %esi
	leaq	d_a(%rip), %rdi
	call	cudaMalloc@PLT
	testl	%eax, %eax
	je	.L22
	movl	%eax, %edi
	call	cudaGetErrorString@PLT
	movl	$81, %ecx
	movq	%rax, %r8
	jmp	.L28
.L22:
	leaq	d_b(%rip), %rdi
	movl	$2621440000, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L23
	call	cudaGetErrorString@PLT
	movl	$82, %ecx
	movq	%rax, %r8
.L28:
	movl	$2, %edi
	leaq	.LC3(%rip), %rdx
	leaq	.LC4(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L23:
	leaq	d_c(%rip), %rdi
	movl	$102400, %esi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L24
	call	cudaGetErrorString@PLT
	movl	$83, %ecx
	movq	%rax, %r8
	jmp	.L28
.L24:
	movq	d_a(%rip), %rdi
	movl	$1, %ecx
	movl	$102400, %edx
	movq	a(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L25
	call	cudaGetErrorString@PLT
	movl	$86, %ecx
	movq	%rax, %r8
	jmp	.L28
.L25:
	movq	d_b(%rip), %rdi
	movl	$1, %ecx
	movl	$1310720000, %edx
	movq	b(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L26
	call	cudaGetErrorString@PLT
	movl	$87, %ecx
	movq	%rax, %r8
	jmp	.L28
.L26:
	xorl	%eax, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2029:
	.size	_Z8initcudav, .-_Z8initcudav
	.globl	_Z27__device_stub__Z4MultPiS_S_PiS_S_
	.type	_Z27__device_stub__Z4MultPiS_S_PiS_S_, @function
_Z27__device_stub__Z4MultPiS_S_PiS_S_:
.LFB2055:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L29
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z4MultPiS_S_(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L29:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z27__device_stub__Z4MultPiS_S_PiS_S_, .-_Z27__device_stub__Z4MultPiS_S_PiS_S_
	.globl	_Z4MultPiS_S_
	.type	_Z4MultPiS_S_, @function
_Z4MultPiS_S_:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z27__device_stub__Z4MultPiS_S_PiS_S_
	.cfi_endproc
.LFE2056:
	.size	_Z4MultPiS_S_, .-_Z4MultPiS_S_
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2030:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	call	_Z4initv
	call	_Z8initcudav
	movl	$16777217, %edx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$1073741849, %edi
	salq	$8, %rdx
	movl	$1, %ecx
	movl	$1, %esi
	salq	$2, %rdi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L35
	movq	d_c(%rip), %rdx
	movq	d_b(%rip), %rsi
	movq	d_a(%rip), %rdi
	call	_Z27__device_stub__Z4MultPiS_S_PiS_S_
.L35:
	call	cudaGetLastError@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L36
	call	cudaGetErrorString@PLT
	movl	$102, %ecx
	movq	%rax, %r8
	jmp	.L43
.L36:
	call	cudaDeviceSynchronize@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L37
	call	cudaGetErrorString@PLT
	movl	$105, %ecx
	movq	%rax, %r8
.L43:
	movl	$2, %edi
	leaq	.LC3(%rip), %rdx
	leaq	.LC4(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L37:
	movq	c(%rip), %rdi
	movl	$2, %ecx
	movl	$102400, %edx
	movq	d_c(%rip), %rsi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L38
	call	cudaGetErrorString@PLT
	movl	$108, %ecx
	movq	%rax, %r8
	jmp	.L43
.L38:
	call	_Z5checkv
	movq	d_a(%rip), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L39
	call	cudaGetErrorString@PLT
	movl	$114, %ecx
	movq	%rax, %r8
	jmp	.L43
.L39:
	movq	d_b(%rip), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L40
	call	cudaGetErrorString@PLT
	movl	$115, %ecx
	movq	%rax, %r8
	jmp	.L43
.L40:
	movq	d_c(%rip), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	testl	%eax, %eax
	je	.L41
	call	cudaGetErrorString@PLT
	movl	$116, %ecx
	movq	%rax, %r8
	jmp	.L43
.L41:
	movq	a(%rip), %rdi
	call	free@PLT
	movq	b(%rip), %rdi
	call	free@PLT
	movq	c(%rip), %rdi
	call	free@PLT
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2030:
	.size	main, .-main
	.section	.rodata.str1.1
.LC5:
	.string	"_Z4MultPiS_S_"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2058:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC5(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z4MultPiS_S_(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2058:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.globl	d_c
	.bss
	.align 8
	.type	d_c, @object
	.size	d_c, 8
d_c:
	.zero	8
	.globl	d_b
	.align 8
	.type	d_b, @object
	.size	d_b, 8
d_b:
	.zero	8
	.globl	d_a
	.align 8
	.type	d_a, @object
	.size	d_a, 8
d_a:
	.zero	8
	.globl	c
	.align 8
	.type	c, @object
	.size	c, 8
c:
	.zero	8
	.globl	b
	.align 8
	.type	b, @object
	.size	b, 8
b:
	.zero	8
	.globl	a
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

/*
Matrix Vector multiplication with partially missing cuda copy of the matrix.
*/

#include <hip/hip_runtime.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

//Grid dimension
#define B 100

//Block dimension
#define T 256

//Array size
#define C B*T

// Macro for checking errors in CUDA API calls
#define cudaErrorCheck(call)                                                              \
do{                                                                                       \
    hipError_t cuErr = call;                                                             \
    if(hipSuccess != cuErr){                                                             \
      printf("CUDA Error - %s:%d: '%s'\n", __FILE__, __LINE__, hipGetErrorString(cuErr));\
      exit(0);                                                                            \
    }                                                                                     \
}while(0)

//Host pointer for matrix b, input vector a and result vector c
int *a;
int *b;
int *c;

//Device pointer for matrix d_b, input vector d_a and result vector d_c
int *d_a;
int *d_b;
int *d_c;

//Initialization and allocation of the host variables
int init(){
    //Allocating host variables
    a = (int *) malloc(C*sizeof(int));
    b = (int *) malloc(C*C*sizeof(int));
    c = (int *) malloc(C*sizeof(int));
    
    //Initialize host values
    for(int i=0; i<C; i++){
        for(int j=0; j<C; j++){
            b[j+i*C]=1;
        }
        a[i]=1;
        c[i]=0;
    }
        return 0;
}

//Kernel
__global__ void Mult(int* d_a, int* d_b, int* d_c){
    int tid = blockDim.x * blockIdx.x + threadIdx.x;
    
    for(int j=0; j<C; j++){
        d_c[tid]+=d_b[j+tid*C]*d_a[j];
    }
}

//Checking if the values stored in c are correct
int check(){
    bool test = false;
    for(int i=0; i<C; i++){
        if(c[i]!=C){
            test = true;
        }
    }
    printf("Memory Access Issue visible: %s\n",test ? "true\n" : "false\n");
    return 0;
    
    
}

//Initialization of the variables on the GPU 
int initcuda(){
    //Allocation of GPU memory for d_a,d_b,d_c
    cudaErrorCheck( hipMalloc(&d_a, C*sizeof(int)));
    cudaErrorCheck( hipMalloc(&d_b, C*C*sizeof(int)));
    cudaErrorCheck( hipMalloc(&d_c, C*sizeof(int)));
    
    //Copying the array a and half the matrix b from the host to the array d_a and the matrix d_b on the device
    cudaErrorCheck( hipMemcpy(d_a,a,C*sizeof(int),hipMemcpyHostToDevice));
    cudaErrorCheck( hipMemcpy(d_b,b,C*C*sizeof(int)/2,hipMemcpyHostToDevice));
    
    return 0;
}

//Main programm
int main(){
    //Calling the initialization methods
    init();
    initcuda();
    
    //Launch Kernel
    Mult<<<B,T>>>(d_a,d_b,d_c);
    
     // Check for errors in kernel launch (e.g. invalid execution configuration paramters)
    cudaErrorCheck( hipGetLastError());

    // Check for errors on the GPU after control is returned to CPU
    cudaErrorCheck( hipDeviceSynchronize());
    
    //Copying back the result d_c from the device to the host array c
    cudaErrorCheck( hipMemcpy(c,d_c,C*sizeof(int),hipMemcpyDeviceToHost)); 
    
    //Verify result
    check();
    
    //Freeing GPU memory
    cudaErrorCheck( hipFree(d_a));
    cudaErrorCheck( hipFree(d_b));
    cudaErrorCheck( hipFree(d_c));
    
    //Freeing CPU memory
    free(a);
    free(b);
    free(c);
    return 0;
}
	.text
	.file	"DRACC_CUDA_011_MxV_partially_Missing_Data_yes.hip"
	.globl	_Z4initv                        # -- Begin function _Z4initv
	.type	_Z4initv,@function
_Z4initv:                               # @_Z4initv
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movl	$102400, %edi                   # imm = 0x19000
	callq	malloc
	movq	%rax, %rbx
	movq	%rax, a(%rip)
	movl	$2621440000, %edi               # imm = 0x9C400000
	callq	malloc
	movq	%rax, %r14
	movq	%rax, b(%rip)
	movl	$102400, %edi                   # imm = 0x19000
	callq	malloc
	movq	%rax, c(%rip)
	xorl	%ecx, %ecx
.LBB0_1:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_2 Depth 2
	xorl	%edx, %edx
.LBB0_2:                                #   Parent Loop BB0_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$1, (%r14,%rdx,4)
	incq	%rdx
	cmpq	$25600, %rdx                    # imm = 0x6400
	jne	.LBB0_2
# %bb.3:                                #   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%rbx,%rcx,4)
	movl	$0, (%rax,%rcx,4)
	incq	%rcx
	addq	$102400, %r14                   # imm = 0x19000
	cmpq	$25600, %rcx                    # imm = 0x6400
	jne	.LBB0_1
# %bb.4:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z4initv, .Lfunc_end0-_Z4initv
	.cfi_endproc
                                        # -- End function
	.globl	_Z19__device_stub__MultPiS_S_   # -- Begin function _Z19__device_stub__MultPiS_S_
	.type	_Z19__device_stub__MultPiS_S_,@function
_Z19__device_stub__MultPiS_S_:          # @_Z19__device_stub__MultPiS_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z4MultPiS_S_, %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_end1:
	.size	_Z19__device_stub__MultPiS_S_, .Lfunc_end1-_Z19__device_stub__MultPiS_S_
	.cfi_endproc
                                        # -- End function
	.globl	_Z5checkv                       # -- Begin function _Z5checkv
	.type	_Z5checkv,@function
_Z5checkv:                              # @_Z5checkv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	c(%rip), %rax
	xorl	%ecx, %ecx
	movl	$1, %edx
	xorl	%esi, %esi
.LBB2_1:                                # =>This Inner Loop Header: Depth=1
	cmpl	$25600, (%rax,%rcx,4)           # imm = 0x6400
	movzbl	%sil, %esi
	cmovnel	%edx, %esi
	incq	%rcx
	cmpq	$25600, %rcx                    # imm = 0x6400
	jne	.LBB2_1
# %bb.2:
	testb	$1, %sil
	movl	$.L.str.2, %eax
	movl	$.L.str.1, %esi
	cmoveq	%rax, %rsi
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	xorl	%eax, %eax
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z5checkv, .Lfunc_end2-_Z5checkv
	.cfi_endproc
                                        # -- End function
	.globl	_Z8initcudav                    # -- Begin function _Z8initcudav
	.type	_Z8initcudav,@function
_Z8initcudav:                           # @_Z8initcudav
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$d_a, %edi
	movl	$102400, %esi                   # imm = 0x19000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB3_1
# %bb.3:
	movl	$d_b, %edi
	movl	$2621440000, %esi               # imm = 0x9C400000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB3_4
# %bb.5:
	movl	$d_c, %edi
	movl	$102400, %esi                   # imm = 0x19000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB3_6
# %bb.7:
	movq	d_a(%rip), %rdi
	movq	a(%rip), %rsi
	movl	$102400, %edx                   # imm = 0x19000
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB3_8
# %bb.9:
	movq	d_b(%rip), %rdi
	movq	b(%rip), %rsi
	movl	$1310720000, %edx               # imm = 0x4E200000
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB3_10
# %bb.11:
	xorl	%eax, %eax
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.LBB3_1:
	.cfi_def_cfa_offset 16
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$83, %edx
	jmp	.LBB3_2
.LBB3_4:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$84, %edx
	jmp	.LBB3_2
.LBB3_6:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$85, %edx
	jmp	.LBB3_2
.LBB3_8:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$88, %edx
	jmp	.LBB3_2
.LBB3_10:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$89, %edx
.LBB3_2:
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	printf
	xorl	%edi, %edi
	callq	exit
.Lfunc_end3:
	.size	_Z8initcudav, .Lfunc_end3-_Z8initcudav
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	_Z4initv
	callq	_Z8initcudav
	movabsq	$4294967396, %rdi               # imm = 0x100000064
	leaq	156(%rdi), %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB4_2
# %bb.1:
	movq	d_a(%rip), %rdi
	movq	d_b(%rip), %rsi
	movq	d_c(%rip), %rdx
	callq	_Z19__device_stub__MultPiS_S_
.LBB4_2:
	callq	hipGetLastError
	testl	%eax, %eax
	jne	.LBB4_3
# %bb.5:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB4_6
# %bb.7:
	movq	c(%rip), %rdi
	movq	d_c(%rip), %rsi
	movl	$102400, %edx                   # imm = 0x19000
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB4_8
# %bb.9:
	callq	_Z5checkv
	movq	d_a(%rip), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_10
# %bb.11:
	movq	d_b(%rip), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_12
# %bb.13:
	movq	d_c(%rip), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB4_14
# %bb.15:
	movq	a(%rip), %rdi
	callq	free
	movq	b(%rip), %rdi
	callq	free
	movq	c(%rip), %rdi
	callq	free
	xorl	%eax, %eax
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.LBB4_3:
	.cfi_def_cfa_offset 16
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$104, %edx
	jmp	.LBB4_4
.LBB4_6:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$107, %edx
	jmp	.LBB4_4
.LBB4_8:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$110, %edx
	jmp	.LBB4_4
.LBB4_10:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$116, %edx
	jmp	.LBB4_4
.LBB4_12:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$117, %edx
	jmp	.LBB4_4
.LBB4_14:
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	$.L.str.4, %esi
	movl	$118, %edx
.LBB4_4:
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	printf
	xorl	%edi, %edi
	callq	exit
.Lfunc_end4:
	.size	main, .Lfunc_end4-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB5_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB5_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z4MultPiS_S_, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end5:
	.size	__hip_module_ctor, .Lfunc_end5-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB6_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB6_2:
	retq
.Lfunc_end6:
	.size	__hip_module_dtor, .Lfunc_end6-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	a,@object                       # @a
	.bss
	.globl	a
	.p2align	3, 0x0
a:
	.quad	0
	.size	a, 8

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

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

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

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

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

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

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Memory Access Issue visible: %s\n"
	.size	.L.str, 33

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"true\n"
	.size	.L.str.1, 6

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"false\n"
	.size	.L.str.2, 7

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"CUDA Error - %s:%d: '%s'\n"
	.size	.L.str.3, 26

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/RWTH-HPC/DRACC/master/CUDA/src/DRACC_CUDA_011_MxV_partially_Missing_Data_yes.hip"
	.size	.L.str.4, 143

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z4MultPiS_S_"
	.size	.L__unnamed_1, 14

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z19__device_stub__MultPiS_S_
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym d_a
	.addrsig_sym d_b
	.addrsig_sym d_c
	.addrsig_sym _Z4MultPiS_S_
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z4MultPiS_S_           ; -- Begin function _Z4MultPiS_S_
	.globl	_Z4MultPiS_S_
	.p2align	8
	.type	_Z4MultPiS_S_,@function
_Z4MultPiS_S_:                          ; @_Z4MultPiS_S_
; %bb.0:
	s_clause 0x1
	s_load_b32 s4, s[0:1], 0x24
	s_load_b64 s[2:3], s[0:1], 0x10
	v_mov_b32_e32 v5, 0
	s_waitcnt lgkmcnt(0)
	s_and_b32 s4, s4, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s15, s4, v[0:1]
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 2, v[3:4]
	v_mul_lo_u32 v3, 0x6400, v3
	v_add_co_u32 v0, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	s_load_b128 s[0:3], s[0:1], 0x0
	v_ashrrev_i32_e32 v4, 31, v3
	global_load_b32 v2, v[0:1], off
	v_lshlrev_b64 v[3:4], 2, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s2, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s3, v4, vcc_lo
	s_mov_b64 s[2:3], 0
.LBB0_1:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(VALU_DEP_2) | instid1(SALU_CYCLE_1)
	v_add_co_u32 v6, vcc_lo, v3, s2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s3, v4, vcc_lo
	s_add_u32 s4, s0, s2
	s_addc_u32 s5, s1, s3
	global_load_b32 v8, v5, s[4:5]
	global_load_b32 v9, v[6:7], off
	s_add_u32 s2, s2, 4
	s_addc_u32 s3, s3, 0
	s_cmp_eq_u32 s2, 0x19000
	s_waitcnt vmcnt(0)
	v_mad_u64_u32 v[6:7], null, v8, v9, v[2:3]
	s_delay_alu instid0(VALU_DEP_1)
	v_mov_b32_e32 v2, v6
	global_store_b32 v[0:1], v6, off
	s_cbranch_scc0 .LBB0_1
; %bb.2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z4MultPiS_S_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 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	_Z4MultPiS_S_, .Lfunc_end0-_Z4MultPiS_S_
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 248
; 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: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z4MultPiS_S_
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z4MultPiS_S_.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     10
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
