

void init_temp(float *M, int N_x, int N_y, int N_z){

    int i, j, k;

    for (i=0; i<N_x; i++){
        for (j=0; j<N_y; j++){
            for (k=0; k<N_z; k++){

                int i3d = k*(N_x*N_y) + j*(N_x) + i;

                if (i == 0 || j == 0 || k == 0){
                    M[i3d] = 10.0;
                }

                else if (i == (N_x-1) || j == (N_y-1) || k == (N_z - 1)){
                    M[i3d] = 10.0;
                }

                else{
                    M[i3d] = 20.0;
                }
        }
    }
}
}

	.file	"tmpxft_0038f239_00000000-6_init.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2011:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2011:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z9init_tempPfiii
	.type	_Z9init_tempPfiii, @function
_Z9init_tempPfiii:
.LFB2008:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	%edx, %esi
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movss	.LC0(%rip), %xmm0
	imull	%eax, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movss	.LC1(%rip), %xmm1
	movq	%rdi, %r10
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%ecx, %r9d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leal	-1(%rax), %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edx, %rdx
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	0(,%rdx,4), %r15
	xorl	%edx, %edx
.L3:
	movl	%edx, %ebx
	cmpl	%edx, %eax
	jle	.L17
	xorl	%r11d, %r11d
	leal	-1(%rsi), %r13d
	leal	-1(%r9), %r14d
	xorl	%r8d, %r8d
.L12:
	cmpl	%esi, %r8d
	jge	.L10
	movslq	%r11d, %rcx
	addq	%rdx, %rcx
	leaq	(%r10,%rcx,4), %rdi
	xorl	%ecx, %ecx
.L11:
	cmpl	%r9d, %ecx
	jge	.L18
	testl	%ebx, %ebx
	sete	-1(%rsp)
	testl	%r8d, %r8d
	sete	%bpl
	orb	-1(%rsp), %bpl
	jne	.L7
	testl	%ecx, %ecx
	je	.L7
	cmpl	%ebx, %r12d
	je	.L7
	cmpl	%r8d, %r13d
	je	.L7
	cmpl	%ecx, %r14d
	jne	.L8
.L7:
	movss	%xmm0, (%rdi)
	jmp	.L6
.L8:
	movss	%xmm1, (%rdi)
.L6:
	incl	%ecx
	addq	%r15, %rdi
	jmp	.L11
.L18:
	incl	%r8d
	addl	%eax, %r11d
	jmp	.L12
.L10:
	incq	%rdx
	jmp	.L3
.L17:
	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
.LFE2008:
	.size	_Z9init_tempPfiii, .-_Z9init_tempPfiii
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2034:
	.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
.LFE2034:
	.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.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1092616192
	.align 4
.LC1:
	.long	1101004800
	.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>


void init_temp(float *M, int N_x, int N_y, int N_z){

    int i, j, k;

    for (i=0; i<N_x; i++){
        for (j=0; j<N_y; j++){
            for (k=0; k<N_z; k++){

                int i3d = k*(N_x*N_y) + j*(N_x) + i;

                if (i == 0 || j == 0 || k == 0){
                    M[i3d] = 10.0;
                }

                else if (i == (N_x-1) || j == (N_y-1) || k == (N_z - 1)){
                    M[i3d] = 10.0;
                }

                else{
                    M[i3d] = 20.0;
                }
        }
    }
}
}

	.text
	.file	"init.hip"
	.globl	_Z9init_tempPfiii               # -- Begin function _Z9init_tempPfiii
	.type	_Z9init_tempPfiii,@function
_Z9init_tempPfiii:                      # @_Z9init_tempPfiii
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
                                        # kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -8(%rsp)                  # 8-byte Spill
                                        # kill: def $edx killed $edx def $rdx
                                        # kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	.LBB0_13
# %bb.1:                                # %.preheader41.lr.ph
	leal	-1(%rsi), %eax
	movl	%eax, -12(%rsp)                 # 4-byte Spill
	leal	-1(%rdx), %eax
	movl	%eax, -16(%rsp)                 # 4-byte Spill
	movq	-8(%rsp), %rax                  # 8-byte Reload
	leal	-1(%rax), %r9d
	movl	%eax, %r10d
	movl	%edx, %r11d
	imull	%esi, %r11d
	xorl	%ecx, %ecx
.LBB0_2:                                # %.preheader41
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_4 Depth 2
                                        #       Child Loop BB0_6 Depth 3
	testl	%edx, %edx
	jle	.LBB0_12
# %bb.3:                                # %.preheader.lr.ph
                                        #   in Loop: Header=BB0_2 Depth=1
	xorl	%ebp, %ebp
	movl	%ecx, %r14d
.LBB0_4:                                # %.preheader
                                        #   Parent Loop BB0_2 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB0_6 Depth 3
	cmpl	$0, -8(%rsp)                    # 4-byte Folded Reload
	jle	.LBB0_11
# %bb.5:                                # %.lr.ph
                                        #   in Loop: Header=BB0_4 Depth=2
	cmpl	-12(%rsp), %ecx                 # 4-byte Folded Reload
	sete	%al
	testl	%ecx, %ecx
	sete	%r8b
	testl	%ebp, %ebp
	sete	%r15b
	orb	%r8b, %r15b
	cmpl	-16(%rsp), %ebp                 # 4-byte Folded Reload
	sete	%r12b
	orb	%al, %r12b
	notb	%r15b
	movl	%r14d, %r13d
	xorl	%eax, %eax
.LBB0_6:                                #   Parent Loop BB0_2 Depth=1
                                        #     Parent Loop BB0_4 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	testq	%rax, %rax
	setne	%bl
	movslq	%r13d, %r8
	testb	%bl, %r15b
	je	.LBB0_7
# %bb.8:                                #   in Loop: Header=BB0_6 Depth=3
	cmpq	%rax, %r9
	sete	%bl
	orb	%r12b, %bl
	cmpb	$1, %bl
	jne	.LBB0_9
.LBB0_7:                                #   in Loop: Header=BB0_6 Depth=3
	movl	$1092616192, (%rdi,%r8,4)       # imm = 0x41200000
	jmp	.LBB0_10
.LBB0_9:                                #   in Loop: Header=BB0_6 Depth=3
	movl	$1101004800, (%rdi,%r8,4)       # imm = 0x41A00000
.LBB0_10:                               #   in Loop: Header=BB0_6 Depth=3
	incq	%rax
	addl	%r11d, %r13d
	cmpq	%rax, %r10
	jne	.LBB0_6
.LBB0_11:                               # %._crit_edge
                                        #   in Loop: Header=BB0_4 Depth=2
	incl	%ebp
	addl	%esi, %r14d
	cmpl	%edx, %ebp
	jne	.LBB0_4
.LBB0_12:                               # %._crit_edge44
                                        #   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	cmpl	%esi, %ecx
	jne	.LBB0_2
.LBB0_13:                               # %._crit_edge46
	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_end0:
	.size	_Z9init_tempPfiii, .Lfunc_end0-_Z9init_tempPfiii
	.cfi_endproc
                                        # -- End function
	.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 __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
