#include <stdio.h>
#include <stdlib.h>

#include <cuda_runtime.h>

bool CUDA_INIT(void)
{
	// cudaGetDeviceCount(&device_count)
	int device_count;
	if (cudaGetDeviceCount(&device_count))
	{
		printf(" There is zero device beyond 1.0\n");
		return false;
	}
	else
		printf("There is %d device beyond 1.0\n", device_count);

	//cudaGetDeviceProperties(&device_prop, i)
	int i;
	for (i = 0; i < device_count; i++)
	{
		struct cudaDeviceProp device_prop;
		if (cudaGetDeviceProperties(&device_prop, i) == cudaSuccess)
		{
			printf("device properties is :\n"
				"\t ASCII string identifying device is %s\n"
				"\t Global memory available on device in bytes (4G) is %lld\n"
				"\t Shared memory available per block in bytes is %lld\n"
				"\t 32-bit registers available per block is %d\n"
				"\t Warp size in threads is %d\n"
				"\t Maximum pitch in bytes allowed by memory copies is %lld\n"
				"\t Maximum number of threads per block is %d\n"
				"\t Maximum size of each dimension of a block is %d X %d X %d\n"
				"\t Maximum size of each dimension of a grid is %d X %d X %d\n"
				"\t Constant memory available on device in bytes is %lld\n"
				"\t Major compute capability is %d ,Minor compute capability is %d\n"
				"\t Clock frequency in kilohertz is %d\n"
				"\t Alignment requirement for textures is %lld\n"
				"\t Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount is %d\n"
				"\t Number of multiprocessors on device is %d\n",
				device_prop.name,                                 /**< ASCII string identifying device */
				(unsigned long long)device_prop.totalGlobalMem,   /**< Global memory available on device in bytes (2G)*/ 
				(unsigned long long)device_prop.sharedMemPerBlock,/**< Shared memory available per block in bytes */
				device_prop.regsPerBlock,                         /**< 32-bit registers available per block */
				device_prop.warpSize,                             /**< Warp size in threads */   
				(unsigned long long)device_prop.memPitch,         /**< Maximum pitch in bytes allowed by memory copies */
				device_prop.maxThreadsPerBlock,                   /**< Maximum number of threads per block */
				device_prop.maxThreadsDim[0], device_prop.maxThreadsDim[1], device_prop.maxThreadsDim[2], /**< Maximum size of each dimension of a block */
				device_prop.maxGridSize[0], device_prop.maxGridSize[1], device_prop.maxGridSize[2],       /**< Maximum size of each dimension of a grid */
				(unsigned long long)device_prop.totalConstMem,    /**< Constant memory available on device in bytes */
				device_prop.major,                                /**< Major compute capability */
				device_prop.minor,                                /**< Minor compute capability */
				device_prop.clockRate,                            /**< Clock frequency in kilohertz */
				(unsigned long long)device_prop.textureAlignment, /**< Alignment requirement for textures */
				device_prop.deviceOverlap,                        /**< Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount. */
				device_prop.multiProcessorCount);                 /**< Number of multiprocessors on device */
			break;
		}
	}

	if (i == device_count)
	{
		printf("Get the propertites of device occurred error\n");
		return false;
	}

	if (cudaSetDevice(i) == cudaErrorInvalidDevice)
	{
		printf("Set Device occurred error\n");
		return false;
	}

	return true;
}

int parameters_main(int argc, char* argv[])
{
	if (CUDA_INIT() == true)
		printf("CUDA INIT SUCCESSED!\n");

	system("pause");
	return 0;
}

	.file	"tmpxft_003a4360_00000000-6_parameters.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	" There is zero device beyond 1.0\n"
.LC1:
	.string	"There is %d device beyond 1.0\n"
.LC2:
	.ascii	"device properties is :\n\t ASCII string identifying device i"
	.ascii	"s %s\n\t Global memory available on device in bytes (4G) is "
	.ascii	"%lld\n\t Shared memory available per block in bytes is %lld\n"
	.ascii	"\t 32-bit registers available per block is %d\n\t Warp size "
	.ascii	"in threads is %d\n\t Maximum pitch in bytes allowed by memor"
	.ascii	"y copies is %lld\n\t Maximum number of threads per block is "
	.ascii	"%d\n\t Maximum size of each dimension of a block is %d X %d "
	.ascii	"X %d\n\t Maximum size of each dimension of a grid is %d X %d"
	.ascii	" X %d\n\t Constant memory available on device in bytes is %l"
	.ascii	"ld\n\t Major compute capability is %d ,Minor co"
	.string	"mpute capability is %d\n\t Clock frequency in kilohertz is %d\n\t Alignment requirement for textures is %lld\n\t Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount is %d\n\t Number of multiprocessors on device is %d\n"
.LC3:
	.string	"Get the propertites of device occurred error\n"
.LC4:
	.string	"Set Device occurred error\n"
	.text
	.globl	_Z9CUDA_INITv
	.type	_Z9CUDA_INITv, @function
_Z9CUDA_INITv:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$1064, %rsp
	.cfi_def_cfa_offset 1088
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdi
	call	cudaGetDeviceCount@PLT
	leaq	.LC0(%rip), %rsi
	testl	%eax, %eax
	jne	.L14
	movl	12(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	movl	$2, %edi
	leaq	16(%rsp), %rbp
	call	__printf_chk@PLT
.L5:
	cmpl	%ebx, 12(%rsp)
	jle	.L7
	movl	%ebx, %esi
	movq	%rbp, %rdi
	call	cudaGetDeviceProperties_v2@PLT
	testl	%eax, %eax
	jne	.L6
	movl	404(%rsp), %eax
	movq	%rbp, %rdx
	movl	$2, %edi
	leaq	.LC2(%rip), %rsi
	pushq	%rax
	.cfi_def_cfa_offset 1096
	movl	408(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1104
	pushq	400(%rsp)
	.cfi_def_cfa_offset 1112
	movl	388(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1120
	movl	412(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1128
	movl	416(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1136
	pushq	416(%rsp)
	.cfi_def_cfa_offset 1144
	movl	416(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1152
	movl	420(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1160
	movl	424(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1168
	movl	428(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1176
	movl	432(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1184
	movl	436(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1192
	movl	440(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1200
	pushq	440(%rsp)
	.cfi_def_cfa_offset 1208
	movl	444(%rsp), %eax
	pushq	%rax
	.cfi_def_cfa_offset 1216
	movl	448(%rsp), %r9d
	xorl	%eax, %eax
	movq	440(%rsp), %r8
	movq	432(%rsp), %rcx
	call	__printf_chk@PLT
	subq	$-128, %rsp
	.cfi_def_cfa_offset 1088
	jmp	.L7
.L6:
	incl	%ebx
	jmp	.L5
.L7:
	cmpl	%ebx, 12(%rsp)
	jne	.L9
	leaq	.LC3(%rip), %rsi
.L14:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L2
.L9:
	movl	%ebx, %edi
	call	cudaSetDevice@PLT
	leaq	.LC4(%rip), %rsi
	movl	%eax, %edx
	movb	$1, %al
	cmpl	$101, %edx
	je	.L14
.L2:
	movq	1048(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	addq	$1064, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z9CUDA_INITv, .-_Z9CUDA_INITv
	.section	.rodata.str1.1
.LC5:
	.string	"CUDA INIT SUCCESSED!\n"
.LC6:
	.string	"pause"
	.text
	.globl	_Z15parameters_mainiPPc
	.type	_Z15parameters_mainiPPc, @function
_Z15parameters_mainiPPc:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%rcx
	.cfi_def_cfa_offset 16
	call	_Z9CUDA_INITv
	testb	%al, %al
	je	.L17
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	leaq	.LC6(%rip), %rdi
	call	system@PLT
	xorl	%eax, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z15parameters_mainiPPc, .-_Z15parameters_mainiPPc
	.section	.text.startup,"ax",@progbits
	.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
	.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 <stdio.h>
#include <stdlib.h>

#include <hip/hip_runtime.h>

bool CUDA_INIT(void)
{
	// cudaGetDeviceCount(&device_count)
	int device_count;
	if (hipGetDeviceCount(&device_count))
	{
		printf(" There is zero device beyond 1.0\n");
		return false;
	}
	else
		printf("There is %d device beyond 1.0\n", device_count);

	//cudaGetDeviceProperties(&device_prop, i)
	int i;
	for (i = 0; i < device_count; i++)
	{
		struct hipDeviceProp_t device_prop;
		if (hipGetDeviceProperties(&device_prop, i) == hipSuccess)
		{
			printf("device properties is :\n"
				"\t ASCII string identifying device is %s\n"
				"\t Global memory available on device in bytes (4G) is %lld\n"
				"\t Shared memory available per block in bytes is %lld\n"
				"\t 32-bit registers available per block is %d\n"
				"\t Warp size in threads is %d\n"
				"\t Maximum pitch in bytes allowed by memory copies is %lld\n"
				"\t Maximum number of threads per block is %d\n"
				"\t Maximum size of each dimension of a block is %d X %d X %d\n"
				"\t Maximum size of each dimension of a grid is %d X %d X %d\n"
				"\t Constant memory available on device in bytes is %lld\n"
				"\t Major compute capability is %d ,Minor compute capability is %d\n"
				"\t Clock frequency in kilohertz is %d\n"
				"\t Alignment requirement for textures is %lld\n"
				"\t Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount is %d\n"
				"\t Number of multiprocessors on device is %d\n",
				device_prop.name,                                 /**< ASCII string identifying device */
				(unsigned long long)device_prop.totalGlobalMem,   /**< Global memory available on device in bytes (2G)*/ 
				(unsigned long long)device_prop.sharedMemPerBlock,/**< Shared memory available per block in bytes */
				device_prop.regsPerBlock,                         /**< 32-bit registers available per block */
				device_prop.warpSize,                             /**< Warp size in threads */   
				(unsigned long long)device_prop.memPitch,         /**< Maximum pitch in bytes allowed by memory copies */
				device_prop.maxThreadsPerBlock,                   /**< Maximum number of threads per block */
				device_prop.maxThreadsDim[0], device_prop.maxThreadsDim[1], device_prop.maxThreadsDim[2], /**< Maximum size of each dimension of a block */
				device_prop.maxGridSize[0], device_prop.maxGridSize[1], device_prop.maxGridSize[2],       /**< Maximum size of each dimension of a grid */
				(unsigned long long)device_prop.totalConstMem,    /**< Constant memory available on device in bytes */
				device_prop.major,                                /**< Major compute capability */
				device_prop.minor,                                /**< Minor compute capability */
				device_prop.clockRate,                            /**< Clock frequency in kilohertz */
				(unsigned long long)device_prop.textureAlignment, /**< Alignment requirement for textures */
				device_prop.deviceOverlap,                        /**< Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount. */
				device_prop.multiProcessorCount);                 /**< Number of multiprocessors on device */
			break;
		}
	}

	if (i == device_count)
	{
		printf("Get the propertites of device occurred error\n");
		return false;
	}

	if (hipSetDevice(i) == hipErrorInvalidDevice)
	{
		printf("Set Device occurred error\n");
		return false;
	}

	return true;
}

int parameters_main(int argc, char* argv[])
{
	if (CUDA_INIT() == true)
		printf("CUDA INIT SUCCESSED!\n");

	system("pause");
	return 0;
}

	.text
	.file	"parameters.hip"
	.globl	_Z9CUDA_INITv                   # -- Begin function _Z9CUDA_INITv
	.type	_Z9CUDA_INITv,@function
_Z9CUDA_INITv:                          # @_Z9CUDA_INITv
	.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
	subq	$1528, %rsp                     # imm = 0x5F8
	.cfi_def_cfa_offset 1584
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	12(%rsp), %rdi
	callq	hipGetDeviceCount
	movl	$.Lstr.2, %edi
	testl	%eax, %eax
	jne	.LBB0_8
# %bb.1:
	movl	12(%rsp), %esi
	xorl	%ebx, %ebx
	movl	$.L.str.1, %edi
	xorl	%eax, %eax
	callq	printf
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.LBB0_6
# %bb.2:                                # %.lr.ph.preheader
	xorl	%ebx, %ebx
	leaq	56(%rsp), %r14
.LBB0_3:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	hipGetDevicePropertiesR0600
	testl	%eax, %eax
	je	.LBB0_4
# %bb.5:                                #   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	12(%rsp), %eax
	cmpl	%eax, %ebx
	jl	.LBB0_3
	jmp	.LBB0_6
.LBB0_4:
	leaq	56(%rsp), %rsi
	movq	288(%rsi), %rdx
	movq	296(%rsi), %rcx
	movl	304(%rsi), %r8d
	movl	308(%rsi), %r9d
	movl	320(%rsi), %eax
	movq	%rax, 48(%rsp)                  # 8-byte Spill
	movl	324(%rsi), %eax
	movq	%rax, 40(%rsp)                  # 8-byte Spill
	movl	328(%rsi), %eax
	movq	%rax, 32(%rsp)                  # 8-byte Spill
	movl	332(%rsi), %eax
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	336(%rsi), %eax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	movl	340(%rsi), %r13d
	movl	344(%rsi), %ebp
	movl	360(%rsi), %r10d
	movl	364(%rsi), %r11d
	movl	348(%rsi), %r14d
	movl	384(%rsi), %r15d
	movl	388(%rsi), %r12d
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$.L.str.2, %edi
	xorl	%eax, %eax
	pushq	%r12
	.cfi_adjust_cfa_offset 8
	pushq	%r15
	.cfi_adjust_cfa_offset 8
	pushq	368(%rsi)
	.cfi_adjust_cfa_offset 8
	pushq	%r14
	.cfi_adjust_cfa_offset 8
	pushq	%r11
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	352(%rsi)
	.cfi_adjust_cfa_offset 8
	pushq	%rbp
	.cfi_adjust_cfa_offset 8
	pushq	%r13
	.cfi_adjust_cfa_offset 8
	pushq	96(%rsp)                        # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	112(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	128(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	144(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	160(%rsp)                       # 8-byte Folded Reload
	.cfi_adjust_cfa_offset 8
	pushq	312(%rsi)
	.cfi_adjust_cfa_offset 8
	callq	printf
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	movl	12(%rsp), %eax
.LBB0_6:                                # %.loopexit
	movl	$.Lstr.1, %edi
	cmpl	%eax, %ebx
	je	.LBB0_8
# %bb.7:
	movl	%ebx, %edi
	callq	hipSetDevice
	movl	%eax, %ecx
	movb	$1, %al
	movl	$.Lstr, %edi
	cmpl	$101, %ecx
	jne	.LBB0_9
.LBB0_8:                                # %.sink.split
	callq	puts@PLT
	xorl	%eax, %eax
.LBB0_9:
                                        # kill: def $al killed $al killed $eax
	addq	$1528, %rsp                     # imm = 0x5F8
	.cfi_def_cfa_offset 56
	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	_Z9CUDA_INITv, .Lfunc_end0-_Z9CUDA_INITv
	.cfi_endproc
                                        # -- End function
	.globl	_Z15parameters_mainiPPc         # -- Begin function _Z15parameters_mainiPPc
	.type	_Z15parameters_mainiPPc,@function
_Z15parameters_mainiPPc:                # @_Z15parameters_mainiPPc
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	_Z9CUDA_INITv
	testb	%al, %al
	je	.LBB1_2
# %bb.1:
	movl	$.Lstr.3, %edi
	callq	puts@PLT
.LBB1_2:
	movl	$.L.str.6, %edi
	callq	system
	xorl	%eax, %eax
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z15parameters_mainiPPc, .Lfunc_end1-_Z15parameters_mainiPPc
	.cfi_endproc
                                        # -- End function
	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"There is %d device beyond 1.0\n"
	.size	.L.str.1, 31

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"device properties is :\n\t ASCII string identifying device is %s\n\t Global memory available on device in bytes (4G) is %lld\n\t Shared memory available per block in bytes is %lld\n\t 32-bit registers available per block is %d\n\t Warp size in threads is %d\n\t Maximum pitch in bytes allowed by memory copies is %lld\n\t Maximum number of threads per block is %d\n\t Maximum size of each dimension of a block is %d X %d X %d\n\t Maximum size of each dimension of a grid is %d X %d X %d\n\t Constant memory available on device in bytes is %lld\n\t Major compute capability is %d ,Minor compute capability is %d\n\t Clock frequency in kilohertz is %d\n\t Alignment requirement for textures is %lld\n\t Device can concurrently copy memory and execute a kernel. Deprecated. Use instead asyncEngineCount is %d\n\t Number of multiprocessors on device is %d\n"
	.size	.L.str.2, 823

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"pause"
	.size	.L.str.6, 6

	.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	"Set Device occurred error"
	.size	.Lstr, 26

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Get the propertites of device occurred error"
	.size	.Lstr.1, 45

	.type	.Lstr.2,@object                 # @str.2
.Lstr.2:
	.asciz	" There is zero device beyond 1.0"
	.size	.Lstr.2, 33

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"CUDA INIT SUCCESSED!"
	.size	.Lstr.3, 21

	.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
