#include "cuda_runtime.h"
#include "device_launch_parameters.h"

#include <stdio.h>
#include <string.h>

int getSPcores(cudaDeviceProp devProp);

int main() {
	int numDevices;
	cudaGetDeviceCount(&numDevices);

	printf("Number of GPU Devices: %d\n", numDevices); //Printing number of devices
	for (int i = 0; i < numDevices; i++) { //Printing information on each device
		cudaDeviceProp dp;
		cudaGetDeviceProperties(&dp, i); //Get properties

		printf("\nGPU Number: %d\n", i);
		printf("GPU Name: %s\n", dp.name); //Print gpu name
		printf("Clock Rate: %d kHz\n", dp.clockRate); //Print clock rate
		printf("Number of Streaming Multiprocessors: %d\n", dp.multiProcessorCount); //Print number of SM
		printf("Number of Cores: %d\n", getSPcores(dp)); //Print number of cores
		printf("Warp Size: %d\n", dp.warpSize); //Print warp size
		printf("Global Memory: %zuB\n", dp.totalGlobalMem); //Print total global memory
		printf("Constant Memory: %zuB\n", dp.totalConstMem); //Print total constant memory
		printf("Shared Memory Per Block: %zuB\n", dp.sharedMemPerBlock); //Print shared memory per block
		printf("Number of Registers Available Per Block: %d\n", dp.regsPerBlock); //Print number of registers available per block
		printf("Maximum Number of Threads Per Block: %d\n", dp.maxThreadsPerBlock); //Print max number of threads per block
		printf("Maximum Size of Each Dimension of a Block: \n");
		printf("\tX: %d, Y: %d, Z: %d\n", dp.maxThreadsDim[0], dp.maxThreadsDim[1], dp.maxThreadsDim[2]);
		printf("Maximum Size of Each Dimension of a Grid: \n");
		printf("\tX: %d, Y: %d, Z: %d\n", dp.maxGridSize[0], dp.maxGridSize[1], dp.maxGridSize[2]);
	}

	getc(stdin);

	return 0;
}

//Obtained from https://stackoverflow.com/questions/32530604/how-can-i-get-number-of-cores-in-cuda-device
int getSPcores(cudaDeviceProp devProp)
{
	int cores = 0;
	int mp = devProp.multiProcessorCount;
	switch (devProp.major) {
	case 2: // Fermi
		if (devProp.minor == 1) cores = mp * 48;
		else cores = mp * 32;
		break;
	case 3: // Kepler
		cores = mp * 192;
		break;
	case 5: // Maxwell
		cores = mp * 128;
		break;
	case 6: // Pascal
		if ((devProp.minor == 1) || (devProp.minor == 2)) cores = mp * 128;
		else if (devProp.minor == 0) cores = mp * 64;
		else printf("Unknown device type\n");
		break;
	case 7: // Volta and Turing
		if ((devProp.minor == 0) || (devProp.minor == 5)) cores = mp * 64;
		else printf("Unknown device type\n");
		break;
	default:
		printf("Unknown device type\n");
		break;
	}
	return cores;
}


	.file	"tmpxft_002d2984_00000000-6_kernel.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	"Unknown device type\n"
	.text
	.globl	_Z10getSPcores14cudaDeviceProp
	.type	_Z10getSPcores14cudaDeviceProp, @function
_Z10getSPcores14cudaDeviceProp:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%rcx
	.cfi_def_cfa_offset 16
	movl	376(%rsp), %eax
	movl	380(%rsp), %edx
	subl	$2, %eax
	movd	404(%rsp), %xmm0
	cmpl	$5, %eax
	ja	.L3
	leaq	.L5(%rip), %rsi
	movd	%xmm0, %ecx
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L24-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L9:
	pslld	$5, %xmm0
	decl	%edx
	movd	%xmm0, %eax
	jne	.L2
	imull	$48, %ecx, %eax
	jmp	.L2
.L8:
	imull	$192, %ecx, %eax
	jmp	.L2
.L6:
	leal	-1(%rdx), %eax
	cmpl	$1, %eax
	ja	.L23
.L24:
	pslld	$7, %xmm0
	jmp	.L21
.L4:
	cmpl	$5, %edx
	je	.L16
.L23:
	testl	%edx, %edx
	jne	.L3
.L16:
	pslld	$6, %xmm0
.L21:
	movd	%xmm0, %eax
	jmp	.L2
.L3:
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L2:
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z10getSPcores14cudaDeviceProp, .-_Z10getSPcores14cudaDeviceProp
	.section	.rodata.str1.1
.LC1:
	.string	"Number of GPU Devices: %d\n"
.LC2:
	.string	"\nGPU Number: %d\n"
.LC3:
	.string	"GPU Name: %s\n"
.LC4:
	.string	"Clock Rate: %d kHz\n"
.LC5:
	.string	"Number of Streaming Multiprocessors: %d\n"
.LC6:
	.string	"Number of Cores: %d\n"
.LC7:
	.string	"Warp Size: %d\n"
.LC8:
	.string	"Global Memory: %zuB\n"
.LC9:
	.string	"Constant Memory: %zuB\n"
.LC10:
	.string	"Shared Memory Per Block: %zuB\n"
.LC11:
	.string	"Number of Registers Available Per Block: %d\n"
.LC12:
	.string	"Maximum Number of Threads Per Block: %d\n"
.LC13:
	.string	"Maximum Size of Each Dimension of a Block: \n"
.LC14:
	.string	"\tX: %d, Y: %d, Z: %d\n"
.LC15:
	.string	"Maximum Size of Each Dimension of a Grid: \n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$1056, %rsp
	.cfi_def_cfa_offset 1088
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdi
	call	cudaGetDeviceCount@PLT
	movl	12(%rsp), %edx
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
.L27:
	cmpl	%ebx, 12(%rsp)
	jle	.L31
	leaq	16(%rsp), %rbp
	movl	%ebx, %esi
	movq	%rbp, %rdi
	call	cudaGetDeviceProperties_v2@PLT
	movl	%ebx, %edx
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdx
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movl	364(%rsp), %edx
	leaq	.LC4(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	404(%rsp), %edx
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	subq	$1040, %rsp
	.cfi_def_cfa_offset 2128
	movq	%rbp, %rsi
	movl	$258, %ecx
	movq	%rsp, %rdi
	leaq	.LC14(%rip), %rbp
	rep movsl
	call	_Z10getSPcores14cudaDeviceProp
	addq	$1040, %rsp
	.cfi_def_cfa_offset 1088
	movl	$2, %edi
	leaq	.LC6(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	324(%rsp), %edx
	leaq	.LC7(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	304(%rsp), %rdx
	leaq	.LC8(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	368(%rsp), %rdx
	leaq	.LC9(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	312(%rsp), %rdx
	leaq	.LC10(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	320(%rsp), %edx
	leaq	.LC11(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	336(%rsp), %edx
	leaq	.LC12(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	348(%rsp), %r8d
	movl	344(%rsp), %ecx
	movl	340(%rsp), %edx
	call	__printf_chk@PLT
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	movl	356(%rsp), %ecx
	incl	%ebx
	movl	360(%rsp), %r8d
	movl	352(%rsp), %edx
	movq	%rbp, %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L27
.L31:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$1056, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.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
	.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 <string.h>

int getSPcores(hipDeviceProp_t devProp);

int main() {
	int numDevices;
	hipGetDeviceCount(&numDevices);

	printf("Number of GPU Devices: %d\n", numDevices); //Printing number of devices
	for (int i = 0; i < numDevices; i++) { //Printing information on each device
		hipDeviceProp_t dp;
		hipGetDeviceProperties(&dp, i); //Get properties

		printf("\nGPU Number: %d\n", i);
		printf("GPU Name: %s\n", dp.name); //Print gpu name
		printf("Clock Rate: %d kHz\n", dp.clockRate); //Print clock rate
		printf("Number of Streaming Multiprocessors: %d\n", dp.multiProcessorCount); //Print number of SM
		printf("Number of Cores: %d\n", getSPcores(dp)); //Print number of cores
		printf("Warp Size: %d\n", dp.warpSize); //Print warp size
		printf("Global Memory: %zuB\n", dp.totalGlobalMem); //Print total global memory
		printf("Constant Memory: %zuB\n", dp.totalConstMem); //Print total constant memory
		printf("Shared Memory Per Block: %zuB\n", dp.sharedMemPerBlock); //Print shared memory per block
		printf("Number of Registers Available Per Block: %d\n", dp.regsPerBlock); //Print number of registers available per block
		printf("Maximum Number of Threads Per Block: %d\n", dp.maxThreadsPerBlock); //Print max number of threads per block
		printf("Maximum Size of Each Dimension of a Block: \n");
		printf("\tX: %d, Y: %d, Z: %d\n", dp.maxThreadsDim[0], dp.maxThreadsDim[1], dp.maxThreadsDim[2]);
		printf("Maximum Size of Each Dimension of a Grid: \n");
		printf("\tX: %d, Y: %d, Z: %d\n", dp.maxGridSize[0], dp.maxGridSize[1], dp.maxGridSize[2]);
	}

	getc(stdin);

	return 0;
}

//Obtained from https://stackoverflow.com/questions/32530604/how-can-i-get-number-of-cores-in-cuda-device
int getSPcores(hipDeviceProp_t devProp)
{
	int cores = 0;
	int mp = devProp.multiProcessorCount;
	switch (devProp.major) {
	case 2: // Fermi
		if (devProp.minor == 1) cores = mp * 48;
		else cores = mp * 32;
		break;
	case 3: // Kepler
		cores = mp * 192;
		break;
	case 5: // Maxwell
		cores = mp * 128;
		break;
	case 6: // Pascal
		if ((devProp.minor == 1) || (devProp.minor == 2)) cores = mp * 128;
		else if (devProp.minor == 0) cores = mp * 64;
		else printf("Unknown device type\n");
		break;
	case 7: // Volta and Turing
		if ((devProp.minor == 0) || (devProp.minor == 5)) cores = mp * 64;
		else printf("Unknown device type\n");
		break;
	default:
		printf("Unknown device type\n");
		break;
	}
	return cores;
}


	.text
	.file	"kernel.hip"
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	subq	$2952, %rsp                     # imm = 0xB88
	.cfi_def_cfa_offset 2976
	.cfi_offset %rbx, -24
	.cfi_offset %rbp, -16
	leaq	1476(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipGetDeviceCount
	movl	(%rbx), %esi
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	cmpl	$0, (%rbx)
	jle	.LBB0_3
# %bb.1:                                # %.lr.ph
	leaq	1480(%rsp), %rbx
	xorl	%ebp, %ebp
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%ebp, %esi
	callq	hipGetDevicePropertiesR0600
	movl	$.L.str.1, %edi
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.2, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	1828(%rsp), %esi
	movl	$.L.str.3, %edi
	xorl	%eax, %eax
	callq	printf
	movl	1868(%rsp), %esi
	movl	$.L.str.4, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$184, %ecx
	movq	%rsp, %rdi
	movq	%rbx, %rsi
	rep;movsq (%rsi), %es:(%rdi)
	callq	_Z10getSPcores20hipDeviceProp_tR0600
	movl	$.L.str.5, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	printf
	movl	1788(%rsp), %esi
	movl	$.L.str.6, %edi
	xorl	%eax, %eax
	callq	printf
	movq	1768(%rsp), %rsi
	movl	$.L.str.7, %edi
	xorl	%eax, %eax
	callq	printf
	movq	1832(%rsp), %rsi
	movl	$.L.str.8, %edi
	xorl	%eax, %eax
	callq	printf
	movq	1776(%rsp), %rsi
	movl	$.L.str.9, %edi
	xorl	%eax, %eax
	callq	printf
	movl	1784(%rsp), %esi
	movl	$.L.str.10, %edi
	xorl	%eax, %eax
	callq	printf
	movl	1800(%rsp), %esi
	movl	$.L.str.11, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	1804(%rsp), %esi
	movl	1808(%rsp), %edx
	movl	1812(%rsp), %ecx
	movl	$.L.str.13, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	movl	1816(%rsp), %esi
	movl	1820(%rsp), %edx
	movl	1824(%rsp), %ecx
	movl	$.L.str.13, %edi
	xorl	%eax, %eax
	callq	printf
	incl	%ebp
	cmpl	1476(%rsp), %ebp
	jl	.LBB0_2
.LBB0_3:                                # %._crit_edge
	movq	stdin(%rip), %rdi
	callq	getc
	xorl	%eax, %eax
	addq	$2952, %rsp                     # imm = 0xB88
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.globl	_Z10getSPcores20hipDeviceProp_tR0600 # -- Begin function _Z10getSPcores20hipDeviceProp_tR0600
	.type	_Z10getSPcores20hipDeviceProp_tR0600,@function
_Z10getSPcores20hipDeviceProp_tR0600:   # @_Z10getSPcores20hipDeviceProp_tR0600
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	376(%rsp), %ecx
	addl	$-2, %ecx
	cmpl	$5, %ecx
	ja	.LBB1_13
# %bb.1:
	leaq	16(%rsp), %rdx
	movl	388(%rdx), %eax
	jmpq	*.LJTI1_0(,%rcx,8)
.LBB1_2:
	cmpl	$1, 364(%rdx)
	jne	.LBB1_11
# %bb.3:
	shll	$4, %eax
	jmp	.LBB1_4
.LBB1_5:
	shll	$6, %eax
.LBB1_4:
	leal	(%rax,%rax,2), %eax
	jmp	.LBB1_14
.LBB1_6:
	movl	364(%rdx), %ecx
	leal	-1(%rcx), %edx
	cmpl	$1, %edx
	ja	.LBB1_12
.LBB1_7:
	shll	$7, %eax
	jmp	.LBB1_14
.LBB1_8:
	movl	364(%rdx), %ecx
	cmpl	$5, %ecx
	je	.LBB1_10
# %bb.9:
	testl	%ecx, %ecx
	jne	.LBB1_13
.LBB1_10:
	shll	$6, %eax
	jmp	.LBB1_14
.LBB1_11:
	shll	$5, %eax
	jmp	.LBB1_14
.LBB1_12:
	testl	%ecx, %ecx
	je	.LBB1_10
.LBB1_13:
	movl	$.Lstr.4, %edi
	callq	puts@PLT
	xorl	%eax, %eax
.LBB1_14:
                                        # kill: def $eax killed $eax killed $rax
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z10getSPcores20hipDeviceProp_tR0600, .Lfunc_end1-_Z10getSPcores20hipDeviceProp_tR0600
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI1_0:
	.quad	.LBB1_2
	.quad	.LBB1_5
	.quad	.LBB1_13
	.quad	.LBB1_7
	.quad	.LBB1_6
	.quad	.LBB1_8
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Number of GPU Devices: %d\n"
	.size	.L.str, 27

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"\nGPU Number: %d\n"
	.size	.L.str.1, 17

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"GPU Name: %s\n"
	.size	.L.str.2, 14

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Clock Rate: %d kHz\n"
	.size	.L.str.3, 20

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Number of Streaming Multiprocessors: %d\n"
	.size	.L.str.4, 41

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Number of Cores: %d\n"
	.size	.L.str.5, 21

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Warp Size: %d\n"
	.size	.L.str.6, 15

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Global Memory: %zuB\n"
	.size	.L.str.7, 21

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"Constant Memory: %zuB\n"
	.size	.L.str.8, 23

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Shared Memory Per Block: %zuB\n"
	.size	.L.str.9, 31

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Number of Registers Available Per Block: %d\n"
	.size	.L.str.10, 45

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Maximum Number of Threads Per Block: %d\n"
	.size	.L.str.11, 41

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"\tX: %d, Y: %d, Z: %d\n"
	.size	.L.str.13, 22

	.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	"Maximum Size of Each Dimension of a Block: "
	.size	.Lstr, 44

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"Maximum Size of Each Dimension of a Grid: "
	.size	.Lstr.1, 43

	.type	.Lstr.4,@object                 # @str.4
.Lstr.4:
	.asciz	"Unknown device type"
	.size	.Lstr.4, 20

	.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
