#include <fstream>
#include <iostream>
#include <stdlib.h>

#define show(x) std::cout << #x ": " << x << std::endl;
 
int main()
{
	const float T = 5.0f;
	const float X = 1.0f;
	const float c = 1.0f;

	float dt = 0.010;
	float dx = 0.025;

	int nt = (int)(T/dt) + 1;
	int nx = (int)(X/dx) + 1;

	dt = T / (nt-1);
	dx = X / (nx-1);
	float r = c * dt / dx;

	float *u = (float *)calloc(nx * nt, sizeof(float));

	// fill in the two first rows
	for (int j = 1; j < nx - 1; j++) {
		float x = j*dx;
		float y = x - 0.5;
		u[j + nx] = u[j] = exp(-40 * y*y);
	}

	for (int i = 1; i < nt-1; i++) {
		for (int j = 1; j < nx - 1; j++) {
			int id = j + nx * (i + 1);
			float uijp = u[j + 1 + nx * i];
			float uij0 = u[j + 0 + nx * i];
			float uijn = u[j - 1 + nx * i];
			float uinj = u[j + nx * (i - 1)];
			u[id] = r*r*uijp + 2 * (1 - r*r)*uij0 + r*r*uijn - uinj;
		}
	}

	std::ofstream ofs("output.txt");
	for (int i = 0; i < nt; i++) {
		for (int j = 0; j < nx; j++)
			ofs << u[i*nx + j] << "\t";
		ofs << std::endl;
	}
	ofs.close();

	free(u);

	return 0;
}

	.file	"tmpxft_00216885_00000000-6_ex7-fdtd.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3769:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3769:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3792:
	.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
.LFE3792:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"output.txt"
.LC6:
	.string	"\t"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3766:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3766
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$4, %esi
	movl	$20541, %edi
	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
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$536, %rsp
	.cfi_def_cfa_offset 592
	movq	%fs:40, %rax
	movq	%rax, 520(%rsp)
	xorl	%eax, %eax
	call	calloc@PLT
	movq	%rax, %rbx
.L5:
	cvtsi2ssl	%ebp, %xmm1
	mulss	.LC0(%rip), %xmm1
	movss	.LC2(%rip), %xmm0
	subss	.LC1(%rip), %xmm1
	mulss	%xmm1, %xmm0
	mulss	%xmm1, %xmm0
	call	expf@PLT
	movss	%xmm0, (%rbx,%rbp,4)
	movss	%xmm0, 164(%rbx,%rbp,4)
	incq	%rbp
	cmpq	$40, %rbp
	jne	.L5
	movss	.LC3(%rip), %xmm1
	movss	.LC4(%rip), %xmm2
	movl	$82, %esi
	leaq	164(%rbx), %rcx
.L6:
	movq	%rcx, %rax
	movl	$1, %edx
.L7:
	movss	8(%rax), %xmm0
	movss	4(%rax), %xmm3
	incl	%edx
	addq	$4, %rax
	mulss	%xmm2, %xmm3
	mulss	%xmm1, %xmm0
	addss	%xmm3, %xmm0
	movss	-4(%rax), %xmm3
	mulss	%xmm1, %xmm3
	addss	%xmm3, %xmm0
	subss	-164(%rax), %xmm0
	movss	%xmm0, 164(%rax)
	cmpl	$40, %edx
	jne	.L7
	addl	$41, %esi
	addq	$164, %rcx
	cmpl	$20541, %esi
	jne	.L6
	leaq	8(%rsp), %rbp
	movl	$16, %edx
	xorl	%r13d, %r13d
	leaq	.LC5(%rip), %rsi
	movq	%rbp, %rdi
	leaq	.LC6(%rip), %r15
.LEHB0:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE0:
.L9:
	imulq	$164, %r13, %r14
	xorl	%r12d, %r12d
	addq	%rbx, %r14
.L10:
	movq	%rbp, %rdi
	cvtss2sd	(%r14,%r12,4), %xmm0
.LEHB1:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movl	$1, %edx
	movq	%r15, %rsi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	incq	%r12
	cmpq	$41, %r12
	jne	.L10
	movq	%rbp, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	incq	%r13
	cmpq	$501, %r13
	jne	.L9
	movq	%rbp, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE1:
	movq	%rbx, %rdi
	call	free@PLT
	movq	%rbp, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	jmp	.L19
.L15:
	endbr64
	movq	%rax, %rbx
.L12:
	movq	%rbp, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L19:
	call	__stack_chk_fail@PLT
.L14:
	addq	$536, %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
.LFE3766:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3766:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3766-.LLSDACSB3766
.LLSDACSB3766:
	.uleb128 .LEHB0-.LFB3766
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3766
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L15-.LFB3766
	.uleb128 0
	.uleb128 .LEHB2-.LFB3766
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE3766:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1020054733
	.align 4
.LC1:
	.long	1056964608
	.align 4
.LC2:
	.long	-1038090240
	.align 4
.LC3:
	.long	1042536201
	.align 4
.LC4:
	.long	1071057470
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <fstream>
#include <iostream>
#include <stdlib.h>

#define show(x) std::cout << #x ": " << x << std::endl;
 
int main()
{
	const float T = 5.0f;
	const float X = 1.0f;
	const float c = 1.0f;

	float dt = 0.010;
	float dx = 0.025;

	int nt = (int)(T/dt) + 1;
	int nx = (int)(X/dx) + 1;

	dt = T / (nt-1);
	dx = X / (nx-1);
	float r = c * dt / dx;

	float *u = (float *)calloc(nx * nt, sizeof(float));

	// fill in the two first rows
	for (int j = 1; j < nx - 1; j++) {
		float x = j*dx;
		float y = x - 0.5;
		u[j + nx] = u[j] = exp(-40 * y*y);
	}

	for (int i = 1; i < nt-1; i++) {
		for (int j = 1; j < nx - 1; j++) {
			int id = j + nx * (i + 1);
			float uijp = u[j + 1 + nx * i];
			float uij0 = u[j + 0 + nx * i];
			float uijn = u[j - 1 + nx * i];
			float uinj = u[j + nx * (i - 1)];
			u[id] = r*r*uijp + 2 * (1 - r*r)*uij0 + r*r*uijn - uinj;
		}
	}

	std::ofstream ofs("output.txt");
	for (int i = 0; i < nt; i++) {
		for (int j = 0; j < nx; j++)
			ofs << u[i*nx + j] << "\t";
		ofs << std::endl;
	}
	ofs.close();

	free(u);

	return 0;
}

	.text
	.file	"ex7-fdtd.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI0_0:
	.long	0x3ccccccd                      # float 0.0250000004
.LCPI0_1:
	.long	0xbf000000                      # float -0.5
.LCPI0_2:
	.long	0xc2200000                      # float -40
.LCPI0_3:
	.long	0x3e23d709                      # float 0.159999982
.LCPI0_4:
	.long	0x3fd70a3e                      # float 1.68000007
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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	$512, %rsp                      # imm = 0x200
	.cfi_def_cfa_offset 560
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	$20541, %edi                    # imm = 0x503D
	movl	$4, %esi
	callq	calloc
	movq	%rax, %rbx
	movl	$1, %r14d
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	mulss	.LCPI0_0(%rip), %xmm0
	addss	.LCPI0_1(%rip), %xmm0
	movaps	%xmm0, %xmm1
	mulss	.LCPI0_2(%rip), %xmm1
	mulss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm1, %xmm0
	callq	exp
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%rbx,%r14,4)
	movss	%xmm0, 164(%rbx,%r14,4)
	incq	%r14
	cmpq	$40, %r14
	jne	.LBB0_1
# %bb.2:                                # %.preheader82.preheader
	movq	%rbx, %rax
	addq	$332, %rax                      # imm = 0x14C
	movl	$1, %ecx
	movss	.LCPI0_3(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	.LCPI0_4(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
.LBB0_3:                                # %.preheader82
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_4 Depth 2
	movq	$-39, %rdx
.LBB0_4:                                #   Parent Loop BB0_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movss	-4(%rax,%rdx,4), %xmm2          # xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	-8(%rax,%rdx,4), %xmm3          # xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	addss	%xmm2, %xmm3
	movss	-12(%rax,%rdx,4), %xmm2         # xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	addss	%xmm3, %xmm2
	subss	-172(%rax,%rdx,4), %xmm2
	movss	%xmm2, 156(%rax,%rdx,4)
	incq	%rdx
	jne	.LBB0_4
# %bb.5:                                #   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	addq	$164, %rax
	cmpq	$500, %rcx                      # imm = 0x1F4
	jne	.LBB0_3
# %bb.6:
	movq	%rsp, %r14
	movl	$.L.str, %esi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
	xorl	%r15d, %r15d
	movq	%rbx, %r12
.LBB0_7:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_8 Depth 2
	xorl	%r13d, %r13d
.LBB0_8:                                #   Parent Loop BB0_7 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm0, %xmm0
	cvtss2sd	(%r12,%r13,4), %xmm0
.Ltmp0:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp1:
# %bb.9:                                # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB0_8 Depth=2
.Ltmp2:
	movl	$.L.str.1, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp3:
# %bb.10:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB0_8 Depth=2
	incq	%r13
	cmpq	$41, %r13
	jne	.LBB0_8
# %bb.11:                               #   in Loop: Header=BB0_7 Depth=1
	movq	(%rsp), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp5:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp6:
# %bb.12:                               # %.noexc
                                        #   in Loop: Header=BB0_7 Depth=1
.Ltmp7:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp8:
# %bb.13:                               # %.noexc80
                                        #   in Loop: Header=BB0_7 Depth=1
.Ltmp9:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp10:
# %bb.14:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	addq	$164, %r12
	cmpq	$501, %r15                      # imm = 0x1F5
	jne	.LBB0_7
# %bb.15:
.Ltmp12:
	movq	%rsp, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp13:
# %bb.16:
	movq	%rbx, %rdi
	callq	free
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	8(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, (%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	248(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	xorl	%eax, %eax
	addq	$512, %rsp                      # imm = 0x200
	.cfi_def_cfa_offset 48
	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
.LBB0_17:
	.cfi_def_cfa_offset 560
.Ltmp14:
	jmp	.LBB0_18
.LBB0_20:
.Ltmp11:
	jmp	.LBB0_18
.LBB0_19:
.Ltmp4:
.LBB0_18:
	movq	%rax, %rbx
	movq	%rsp, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp10-.Ltmp5                 #   Call between .Ltmp5 and .Ltmp10
	.uleb128 .Ltmp11-.Lfunc_begin0          #     jumps to .Ltmp11
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp12-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp13-.Ltmp12                #   Call between .Ltmp12 and .Ltmp13
	.uleb128 .Ltmp14-.Lfunc_begin0          #     jumps to .Ltmp14
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Lfunc_end0-.Ltmp13            #   Call between .Ltmp13 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"output.txt"
	.size	.L.str, 11

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"\t"
	.size	.L.str.1, 2

	.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 __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.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
