#include <string.h>
#include <math.h>

#ifndef RESTRICT
#define restrict __restrict__
#endif /* RESTRICT */
//ldoc on
/**
 * ## Implementation
 *
 * The actually work of computing the fluxes and speeds is done
 * by local (`static`) helper functions that take as arguments
 * pointers to all the individual fields.  This is helpful to the
 * compilers, since by specifying the `restrict` keyword, we are
 * promising that we will not access the field data through the
 * wrong pointer.  This lets the compiler do a better job with
 * vectorization.
 */

__constant__ static const float g = 9.8;


// total number of cells (ncells) = nx_all * ny_all
__global__ static 
void shallow2dv_flux(float* restrict fh,
                     float* restrict fhu,
                     float* restrict fhv,
                     float* restrict gh,
                     float* restrict ghu,
                     float* restrict ghv,
                     const float* restrict h,
                     const float* restrict hu,
                     const float* restrict hv,
                     float g)
{
    const unsigned int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
    const unsigned int idy = (blockIdx.y * blockDim.y) + threadIdx.y;
    // linearize to 1D
    const unsigned int tid = ((gridDim.x * blockDim.x) * idy) + idx;
    
    float hi = h[tid], hui = hu[tid], hvi = hv[tid];
    float inv_h = 1/hi;
    fhu[tid] = hui*hui*inv_h + (0.5f*g)*hi*hi;
    fhv[tid] = hui*hvi*inv_h;
    ghu[tid] = hui*hvi*inv_h;
    ghv[tid] = hvi*hvi*inv_h + (0.5f*g)*hi*hi;
}


__global__  static
void shallow2dv_speed(float* restrict cxy,
                      const float* restrict h,
                      const float* restrict hu,
                      const float* restrict hv,
                      float g)
{
    float cx = cxy[0];
    float cy = cxy[1];
    const unsigned int idx = (blockIdx.x * blockDim.x) + threadIdx.x;
    const unsigned int idy = (blockIdx.y * blockDim.y) + threadIdx.y;
    // linearize to 1D
    const unsigned int tid = ((gridDim.x * blockDim.x) * idy) + idx;
    float hi = h[tid];
    float inv_hi = 1.0f/h[tid];
    float root_gh = sqrtf(g * hi);
    float cxi = fabsf(hu[tid] * inv_hi) + root_gh;
    float cyi = fabsf(hv[tid] * inv_hi) + root_gh;
    if (cx < cxi) cx = cxi;
    if (cy < cyi) cy = cyi;
    cxy[0] = cx;
    cxy[1] = cy;
}

extern "C"
void shallow2d_flux_cu(float* FU, float* GU, const float* U,
                    int nx, int ny, int field_stride)
{
    cudaMemcpy(FU, U+field_stride,   nx * ny * sizeof(float), cudaMemcpyDeviceToDevice);
    cudaMemcpy(GU, U+2*field_stride, nx * ny * sizeof(float), cudaMemcpyDeviceToDevice);
    shallow2dv_flux<<<ny, nx>>>(FU, FU+field_stride, FU+2*field_stride,
                    GU, GU+field_stride, GU+2*field_stride,
                    U,  U +field_stride, U +2*field_stride,
                    g);
}

extern "C"
void shallow2d_speed_cu(float* cxy, const float* U,
                     int nx, int ny, int field_stride)
{
    shallow2dv_speed<<<ny, nx>>>(cxy, U, U+field_stride, U+2*field_stride, g);
}

	.file	"tmpxft_0031b88c_00000000-6_shallow2d.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2012:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2012:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_ZL55__device_stub__Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_fPfS_S_S_S_S_PKfS1_S1_f, @function
_ZL55__device_stub__Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_fPfS_S_S_S_S_PKfS1_S1_f:
.LFB2034:
	.cfi_startproc
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movq	%rdi, 16(%rsp)
	leaq	104(%rsp), %rdi
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 192(%rsp)
	movq	256(%rsp), %rax
	movq	%rsi, 24(%rsp)
	leaq	116(%rsp), %rsi
	movq	%rax, 64(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 200(%rsp)
	movq	264(%rsp), %rax
	movq	%rdx, 32(%rsp)
	leaq	88(%rsp), %rdx
	movq	%rax, 72(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 208(%rsp)
	movq	272(%rsp), %rax
	movq	%rcx, 40(%rsp)
	leaq	96(%rsp), %rcx
	movq	%rax, 80(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 224(%rsp)
	movabsq	$4294967297, %rax
	movq	%r8, 48(%rsp)
	movq	%r9, 56(%rsp)
	movq	%rax, 104(%rsp)
	movl	$1, 112(%rsp)
	movq	%rax, 116(%rsp)
	movl	$1, 124(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	96(%rsp)
	.cfi_def_cfa_offset 264
	leaq	_ZL15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f(%rip), %rdi
	pushq	96(%rsp)
	.cfi_def_cfa_offset 272
	movq	132(%rsp), %rcx
	movl	140(%rsp), %r8d
	movq	120(%rsp), %rsi
	movl	128(%rsp), %edx
	leaq	168(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 264
	popq	%rdx
	.cfi_def_cfa_offset 256
.L2:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$248, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2034:
	.size	_ZL55__device_stub__Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_fPfS_S_S_S_S_PKfS1_S1_f, .-_ZL55__device_stub__Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_fPfS_S_S_S_S_PKfS1_S1_f
	.type	_ZL15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f, @function
_ZL15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f:
.LFB2035:
	.cfi_startproc
	endbr64
	jmp	_ZL55__device_stub__Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_fPfS_S_S_S_S_PKfS1_S1_f
	.cfi_endproc
.LFE2035:
	.size	_ZL15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f, .-_ZL15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f
	.type	_ZL46__device_stub__Z16shallow2dv_speedPfPKfS1_S1_fPfPKfS1_S1_f, @function
_ZL46__device_stub__Z16shallow2dv_speedPfPKfS1_S1_fPfPKfS1_S1_f:
.LFB2036:
	.cfi_startproc
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movss	%xmm0, 12(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rax
	movq	%rdi, 16(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rax, 112(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	12(%rsp), %rax
	movq	%rsi, 24(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 32(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 40(%rsp)
	leaq	56(%rsp), %rcx
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movl	$1, 72(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_ZL16shallow2dv_speedPfPKfS1_S1_f(%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
.L8:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2036:
	.size	_ZL46__device_stub__Z16shallow2dv_speedPfPKfS1_S1_fPfPKfS1_S1_f, .-_ZL46__device_stub__Z16shallow2dv_speedPfPKfS1_S1_fPfPKfS1_S1_f
	.type	_ZL16shallow2dv_speedPfPKfS1_S1_f, @function
_ZL16shallow2dv_speedPfPKfS1_S1_f:
.LFB2037:
	.cfi_startproc
	endbr64
	jmp	_ZL46__device_stub__Z16shallow2dv_speedPfPKfS1_S1_fPfPKfS1_S1_f
	.cfi_endproc
.LFE2037:
	.size	_ZL16shallow2dv_speedPfPKfS1_S1_f, .-_ZL16shallow2dv_speedPfPKfS1_S1_f
	.globl	shallow2d_flux_cu
	.type	shallow2d_flux_cu, @function
shallow2d_flux_cu:
.LFB2008:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	movl	%ecx, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	imull	%r8d, %edx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movslq	%r9d, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edx, %rdx
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r13, %rbx
	salq	$2, %r13
	leaq	(%r15,%r13), %r14
	salq	$2, %rdx
	movq	%r14, %rsi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%ecx, 12(%rsp)
	movl	$3, %ecx
	movl	%r8d, 8(%rsp)
	movq	%rdx, (%rsp)
	call	cudaMemcpy@PLT
	leaq	(%r14,%r13), %r10
	movq	(%rsp), %rdx
	movq	%r12, %rdi
	movq	%r10, %rsi
	movl	$3, %ecx
	movq	%r10, (%rsp)
	call	cudaMemcpy@PLT
	movl	8(%rsp), %r8d
	movl	12(%rsp), %r11d
	xorl	%r9d, %r9d
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movl	44(%rsp), %ecx
	movl	%r8d, 24(%rsp)
	xorl	%r8d, %r8d
	movq	%rax, 28(%rsp)
	movq	24(%rsp), %rdi
	movl	%r11d, 36(%rsp)
	movl	32(%rsp), %esi
	movq	36(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	movq	(%rsp), %r10
	testl	%eax, %eax
	jne	.L13
	addl	%ebx, %ebx
	pushq	%rax
	.cfi_def_cfa_offset 120
	movss	.LC0(%rip), %xmm0
	leaq	0(%rbp,%r13), %rsi
	pushq	%r10
	.cfi_def_cfa_offset 128
	movslq	%ebx, %rbx
	leaq	(%r12,%r13), %r8
	movq	%r12, %rcx
	pushq	%r14
	.cfi_def_cfa_offset 136
	salq	$2, %rbx
	movq	%rbp, %rdi
	pushq	%r15
	.cfi_def_cfa_offset 144
	leaq	0(%rbp,%rbx), %rdx
	leaq	(%r12,%rbx), %r9
	call	_ZL55__device_stub__Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_fPfS_S_S_S_S_PKfS1_S1_f
	addq	$32, %rsp
	.cfi_def_cfa_offset 112
.L13:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	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	shallow2d_flux_cu, .-shallow2d_flux_cu
	.globl	shallow2d_speed_cu
	.type	shallow2d_speed_cu, @function
shallow2d_speed_cu:
.LFB2009:
	.cfi_startproc
	endbr64
	movabsq	$4294967297, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	xorl	%r9d, %r9d
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	%r8d, %ebx
	xorl	%r8d, %r8d
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rax, 24(%rsp)
	movl	%ecx, 8(%rsp)
	movl	28(%rsp), %ecx
	movq	%rax, 12(%rsp)
	movq	8(%rsp), %rdi
	movl	%edx, 20(%rsp)
	movl	16(%rsp), %esi
	movq	20(%rsp), %rdx
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	movslq	%ebx, %rdx
	leal	(%rbx,%rbx), %eax
	movq	%rbp, %rsi
	movq	%r12, %rdi
	imulq	$-4, %rdx, %rdx
	cltq
	movss	.LC0(%rip), %xmm0
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	leaq	0(%rbp,%rax,4), %rcx
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	addq	%rcx, %rdx
	jmp	_ZL46__device_stub__Z16shallow2dv_speedPfPKfS1_S1_fPfPKfS1_S1_f
.L16:
	.cfi_restore_state
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2009:
	.size	shallow2d_speed_cu, .-shallow2d_speed_cu
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"_Z16shallow2dv_speedPfPKfS1_S1_f"
.LC2:
	.string	"_Z15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f"
.LC3:
	.string	"g"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2039:
	.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	.LC1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_ZL16shallow2dv_speedPfPKfS1_S1_f(%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	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_ZL15shallow2dv_fluxPfS_S_S_S_S_PKfS1_S1_f(%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	%r8d, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC3(%rip), %rdx
	movl	$4, %r9d
	leaq	_ZL1g(%rip), %rsi
	pushq	$1
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	call	__cudaRegisterVar@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rdx
	.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
.LFE2039:
	.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
	.align 4
	.type	_ZL1g, @object
	.size	_ZL1g, 4
_ZL1g:
	.long	1092406477
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1092406477
	.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:

#ifndef SHALLOW2D_CUDA_H
#define SHALLOW2D_CUDA_H

//ldoc on
/**
 * # Shallow water equations
 *
 * ## Physics picture
 *
 * The shallow water equations treat water as incompressible and
 * inviscid, and assume that the horizontal velocity remains constant
 * in any vertical column of water.  The unknowns at each point are
 * the water height and the total horizontal momentum in a water
 * column; the equations describe conservation of mass (fluid is
 * neither created nor destroyed) and conservation of linear momentum.
 * We will solve these equations with a numerical method that also
 * exactly conserves mass and momentum (up to rounding error), though
 * it only approximately conserves energy.
 *
 * The basic variables are water height ($h$), and the velocity components
 * ($u, v$).  We write the governing equations in the form
 * $$
 *   U_t = F(U)_x + G(U)_y
 * $$
 * where
 * $$
 *   U = \begin{bmatrix} h \\ hu \\ hv \end{bmatrix},
 *   F = \begin{bmatrix} hu \\ h^2 u + gh^2/2 \\ huv \end{bmatrix}
 *   G = \begin{bmatrix} hv \\ huv \\ h^2 v + gh^2/2 \end{bmatrix}
 * $$
 * The functions $F$ and $G$ are called *fluxes*, and describe how the
 * conserved quantities (volume and momentum) enter and exit a region
 * of space.
 *
 * Note that we also need a bound on the characteristic wave speeds
 * for the problem in order to ensure that our method doesn't explode;
 * we use this to control the Courant-Friedrichs-Levy (CFL) number
 * relating wave speeds, time steps, and space steps.  For the shallow
 * water equations, the characteristic wave speed is $\sqrt{g h}$
 * where $g$ is the gravitational constant and $h$ is the height of the
 * water; in addition, we have to take into account the velocity of
 * the underlying flow.
 *
 * ## Interface
 *
 * To provide a general interface, we make the flux and speed functions
 * take arrays that consist of the `h`, `hu`, and `hv` components
 * in sequential arrays separated by `field_stride`: for example,
 * the start of the height field data is at `U`, the start of
 * the $x$ momentum is at `U+field_stride`, and the start of the
 * $y$ momentum is at `U+2*field_stride`.
 */

void shallow2d_flux_cu(float* FU, float* GU, const float* U,
                    int nx, int ny, int field_stride);
void shallow2d_speed_cu(float* cxy, const float* U,
                     int nx, int ny, int field_stride);

//ldoc off
#endif /* SHALLOW2D_CUDA_H */

	.text
	.file	"shallow2d.hip"
	.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
