#include <cuda.h>
#include <cuda_runtime.h>
#include <stdio.h>
#include <math.h>
#include <limits.h>
#include "cuda_kernel.cuh"

int solveProblem(const int argc, const char* argv[]){
	cudaError_t return_value;
	if(argc == 2){
		cudaEvent_t start, stop;
		float time;
		int threads = atoi(argv[1]);
		cudaEventCreate(&start);
		cudaEventCreate(&stop);
		// Everything runs on stream 0
		cudaEventRecord(start);

		// Start kernel
		kernel<<<1,threads>>>();

		cudaDeviceSynchronize();
		cudaEventRecord(stop);
		cudaEventSynchronize(stop);
	    return_value = cudaGetLastError();
	    if(return_value != cudaSuccess){
	    	printf("Error in Kernel\n");
	    	printf("%s\n",cudaGetErrorString(return_value));
	    	return -1;
	    }
	    cudaEventElapsedTime(&time, start, stop);
	    printf ("Time for the kernel: %f ms\n", time);
		return 0;
	} else {
		printf("parameter required\n");
		return -1;
	}
}

int main(const int argc, const char* argv[]){
	int devices;
	cudaError_t return_value;
	return_value = cudaGetDeviceCount(&devices);
	if(return_value != cudaSuccess){
		printf("Could not get device count\n");
		return -1;
	}

	if(devices > 0){
		printf("%d devices found\n",devices);
		for(int device = 0; device < devices; device++){
			cudaDeviceProp device_info;
			cudaGetDeviceProperties(&device_info, device);
			printf("Name: %s\n",device_info.name);
			printf("max. Memory: %.0f MB\n",(double)device_info.totalGlobalMem/(double)(1024*1024));
			printf("max. Threads per Block: %d\n", device_info.maxThreadsPerBlock);
			printf("max. Blocks per Grid: %d,%d,%d\n", device_info.maxGridSize[0], device_info.maxGridSize[1],device_info.maxGridSize[2]);
			printf("\n");
		}
		return solveProblem(argc, argv);
	}
	else{
		printf("No CUDA cards found\n");
		return -1;
	}

}

	.file	"tmpxft_003aad9c_00000000-6_cuda_base.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error in Kernel\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"Time for the kernel: %f ms\n"
.LC3:
	.string	"parameter required\n"
	.text
	.globl	_Z12solveProblemiPPKc
	.type	_Z12solveProblemiPPKc, @function
_Z12solveProblemiPPKc:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$48, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	cmpl	$2, %edi
	jne	.L3
	movq	8(%rsi), %rdi
	call	atoi@PLT
	movq	%rsp, %rdi
	movl	%eax, %ebx
	call	cudaEventCreate@PLT
	leaq	8(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	%ebx, 28(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rdi
	movl	$1, %esi
	movq	%rdi, 32(%rsp)
	movl	36(%rsp), %ecx
	movq	28(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L4
	call	_Z6kernelv@PLT
.L4:
	call	cudaDeviceSynchronize@PLT
	movq	8(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	8(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	call	cudaGetLastError@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L5
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebx, %edi
	call	cudaGetErrorString@PLT
	leaq	.LC1(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L5:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	leaq	28(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	28(%rsp), %xmm0
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L2
.L3:
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	orl	$-1, %eax
.L2:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	addq	$48, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z12solveProblemiPPKc, .-_Z12solveProblemiPPKc
	.section	.rodata.str1.1
.LC4:
	.string	"Could not get device count\n"
.LC5:
	.string	"%d devices found\n"
.LC6:
	.string	"Name: %s\n"
.LC8:
	.string	"max. Memory: %.0f MB\n"
.LC9:
	.string	"max. Threads per Block: %d\n"
.LC10:
	.string	"max. Blocks per Grid: %d,%d,%d\n"
.LC11:
	.string	"\n"
.LC12:
	.string	"No CUDA cards found\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1056, %rsp
	.cfi_def_cfa_offset 1104
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdi
	call	cudaGetDeviceCount@PLT
	leaq	.LC4(%rip), %rsi
	testl	%eax, %eax
	jne	.L23
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L15
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__printf_chk@PLT
	leaq	.LC6(%rip), %r13
.L16:
	cmpl	%ebx, 12(%rsp)
	jle	.L24
	leaq	16(%rsp), %r14
	movl	%ebx, %esi
	movq	%r14, %rdi
	call	cudaGetDeviceProperties_v2@PLT
	movq	%r14, %rdx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	304(%rsp), %rax
	testq	%rax, %rax
	js	.L17
	cvtsi2sdq	%rax, %xmm0
	jmp	.L18
.L17:
	movq	%rax, %rdx
	andl	$1, %eax
	shrq	%rdx
	orq	%rax, %rdx
	cvtsi2sdq	%rdx, %xmm0
	addsd	%xmm0, %xmm0
.L18:
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	incl	%ebx
	mulsd	.LC7(%rip), %xmm0
	call	__printf_chk@PLT
	movl	336(%rsp), %edx
	leaq	.LC9(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	360(%rsp), %r8d
	xorl	%eax, %eax
	movl	356(%rsp), %ecx
	movl	352(%rsp), %edx
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L24:
	movq	%r12, %rsi
	movl	%ebp, %edi
	call	_Z12solveProblemiPPKc
	jmp	.L12
.L15:
	leaq	.LC12(%rip), %rsi
.L23:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	orl	$-1, %eax
.L12:
	movq	1048(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	addq	$1056, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2054:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2054:
	.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
.LC7:
	.long	0
	.long	1051721728
	.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 <math.h>
#include <limits.h>
#include "cuda_kernel.cuh"

int solveProblem(const int argc, const char* argv[]){
	hipError_t return_value;
	if(argc == 2){
		hipEvent_t start, stop;
		float time;
		int threads = atoi(argv[1]);
		hipEventCreate(&start);
		hipEventCreate(&stop);
		// Everything runs on stream 0
		hipEventRecord(start);

		// Start kernel
		kernel<<<1,threads>>>();

		hipDeviceSynchronize();
		hipEventRecord(stop);
		hipEventSynchronize(stop);
	    return_value = hipGetLastError();
	    if(return_value != hipSuccess){
	    	printf("Error in Kernel\n");
	    	printf("%s\n",hipGetErrorString(return_value));
	    	return -1;
	    }
	    hipEventElapsedTime(&time, start, stop);
	    printf ("Time for the kernel: %f ms\n", time);
		return 0;
	} else {
		printf("parameter required\n");
		return -1;
	}
}

int main(const int argc, const char* argv[]){
	int devices;
	hipError_t return_value;
	return_value = hipGetDeviceCount(&devices);
	if(return_value != hipSuccess){
		printf("Could not get device count\n");
		return -1;
	}

	if(devices > 0){
		printf("%d devices found\n",devices);
		for(int device = 0; device < devices; device++){
			hipDeviceProp_t device_info;
			hipGetDeviceProperties(&device_info, device);
			printf("Name: %s\n",device_info.name);
			printf("max. Memory: %.0f MB\n",(double)device_info.totalGlobalMem/(double)(1024*1024));
			printf("max. Threads per Block: %d\n", device_info.maxThreadsPerBlock);
			printf("max. Blocks per Grid: %d,%d,%d\n", device_info.maxGridSize[0], device_info.maxGridSize[1],device_info.maxGridSize[2]);
			printf("\n");
		}
		return solveProblem(argc, argv);
	}
	else{
		printf("No CUDA cards found\n");
		return -1;
	}

}

	.text
	.file	"cuda_base.hip"
	.globl	_Z12solveProblemiPPKc           # -- Begin function _Z12solveProblemiPPKc
	.type	_Z12solveProblemiPPKc,@function
_Z12solveProblemiPPKc:                  # @_Z12solveProblemiPPKc
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	cmpl	$2, %edi
	jne	.LBB0_6
# %bb.1:
	movq	8(%rsi), %rdi
	callq	atoi
	movl	%eax, %ebx
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	callq	hipEventCreate
	leaq	8(%rsp), %rdi
	callq	hipEventCreate
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movl	%ebx, %edx
	btsq	$32, %rdx
	movabsq	$4294967296, %rdi               # imm = 0x100000000
	orq	$1, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB0_3
# %bb.2:
	callq	_Z21__device_stub__kernelv
.LBB0_3:
	callq	hipDeviceSynchronize
	movq	8(%rsp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	hipEventRecord
	movq	8(%rsp), %rdi
	callq	hipEventSynchronize
	callq	hipGetLastError
	testl	%eax, %eax
	je	.LBB0_5
# %bb.4:
	movl	%eax, %ebp
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	%ebp, %edi
	callq	hipGetErrorString
	movq	%rax, %rdi
	jmp	.LBB0_7
.LBB0_6:
	movl	$.Lstr, %edi
.LBB0_7:
	callq	puts@PLT
	movl	$-1, %ebx
.LBB0_8:
	movl	%ebx, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_5:
	.cfi_def_cfa_offset 64
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	leaq	28(%rsp), %r14
	movq	%r14, %rdi
	callq	hipEventElapsedTime
	cvtss2sd	(%r14), %xmm0
	movl	$.L.str.2, %edi
	movb	$1, %al
	callq	printf
	jmp	.LBB0_8
.Lfunc_end0:
	.size	_Z12solveProblemiPPKc, .Lfunc_end0-_Z12solveProblemiPPKc
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0                          # -- Begin function main
.LCPI1_0:
	.long	1127219200                      # 0x43300000
	.long	1160773632                      # 0x45300000
	.long	0                               # 0x0
	.long	0                               # 0x0
.LCPI1_1:
	.quad	0x4330000000000000              # double 4503599627370496
	.quad	0x4530000000000000              # double 1.9342813113834067E+25
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0
.LCPI1_2:
	.quad	0x3eb0000000000000              # double 9.5367431640625E-7
	.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	%rbx
	.cfi_def_cfa_offset 40
	subq	$1480, %rsp                     # imm = 0x5C8
	.cfi_def_cfa_offset 1520
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movl	%edi, %ebp
	leaq	4(%rsp), %rdi
	callq	hipGetDeviceCount
	testl	%eax, %eax
	je	.LBB1_2
# %bb.1:
	movl	$.Lstr.3, %edi
.LBB1_8:
	callq	puts@PLT
	movl	$-1, %eax
	jmp	.LBB1_9
.LBB1_2:
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.LBB1_7
# %bb.3:
	movl	$.L.str.5, %edi
	xorl	%eax, %eax
	callq	printf
	cmpl	$0, 4(%rsp)
	jle	.LBB1_6
# %bb.4:                                # %.lr.ph
	leaq	8(%rsp), %r14
	xorl	%r15d, %r15d
.LBB1_5:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	hipGetDevicePropertiesR0600
	movl	$.L.str.6, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	printf
	movsd	296(%rsp), %xmm1                # xmm1 = mem[0],zero
	unpcklps	.LCPI1_0(%rip), %xmm1           # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
	subpd	.LCPI1_1(%rip), %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    # xmm0 = xmm0[1],xmm1[1]
	addsd	%xmm1, %xmm0
	mulsd	.LCPI1_2(%rip), %xmm0
	movl	$.L.str.7, %edi
	movb	$1, %al
	callq	printf
	movl	328(%rsp), %esi
	movl	$.L.str.8, %edi
	xorl	%eax, %eax
	callq	printf
	movl	344(%rsp), %esi
	movl	348(%rsp), %edx
	movl	352(%rsp), %ecx
	movl	$.L.str.9, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$10, %edi
	callq	putchar@PLT
	incl	%r15d
	cmpl	4(%rsp), %r15d
	jl	.LBB1_5
.LBB1_6:                                # %._crit_edge
	movl	%ebp, %edi
	movq	%rbx, %rsi
	callq	_Z12solveProblemiPPKc
.LBB1_9:
	addq	$1480, %rsp                     # imm = 0x5C8
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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
.LBB1_7:
	.cfi_def_cfa_offset 1520
	movl	$.Lstr.2, %edi
	jmp	.LBB1_8
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
                                        # -- End function
	.type	.L.str.2,@object                # @.str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.2:
	.asciz	"Time for the kernel: %f ms\n"
	.size	.L.str.2, 28

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"%d devices found\n"
	.size	.L.str.5, 18

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Name: %s\n"
	.size	.L.str.6, 10

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"max. Memory: %.0f MB\n"
	.size	.L.str.7, 22

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"max. Threads per Block: %d\n"
	.size	.L.str.8, 28

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"max. Blocks per Grid: %d,%d,%d\n"
	.size	.L.str.9, 32

	.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	"parameter required"
	.size	.Lstr, 19

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Error in Kernel"
	.size	.Lstr.1, 16

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	"No CUDA cards found"
	.size	.Lstr.2, 20

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"Could not get device count"
	.size	.Lstr.3, 27

	.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_

	.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_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
