#include <stdio.h>
#include <iostream>


int main( void ) {
cudaDeviceProp prop;
FILE *deviceInfoOutput;
deviceInfoOutput = fopen("deviceInfoOutput.txt", "a");
int count;
cudaGetDeviceCount( &count );
printf("Devices information\n");
fprintf(deviceInfoOutput, "Devices information\n");
printf("Total Cuda devices: %d\n", count);
fprintf(deviceInfoOutput, "Total Cuda devices: %d\n", count);
for (int i=0; i< count; i++) {
	cudaGetDeviceProperties( &prop, i );
//Do something with our device's properties
	printf("----General information for device %d----\n",i);
	fprintf(deviceInfoOutput, "----General information for device %d----\n", i);
	printf("Name:  %s\n", prop.name);
	fprintf(deviceInfoOutput, "Name:  %s\n", prop.name);
	printf("Compute Capability:  %d.%d\n", prop.major, prop.minor);
	fprintf(deviceInfoOutput, "Compute Capability:  %d.%d\n", prop.major, prop.minor);
	printf("Clock Rate:  %d\n", prop.clockRate);
	fprintf(deviceInfoOutput, "Clock Rate:  %d\n", prop.clockRate);
	printf("Device Copy Overlap: ");
	fprintf(deviceInfoOutput, "Device Copy Overlap: ");
	if(prop.deviceOverlap){
		printf("Enabled\n");
		fprintf(deviceInfoOutput, "Enabled\n");
	}
	else{
		printf("Disabled\n");
		fprintf(deviceInfoOutput, "Disabled\n");
	}
	printf("Kernel execution timeout:  ");
	fprintf(deviceInfoOutput, "Kernel execution timeout:  ");
	if (prop.kernelExecTimeoutEnabled){
		printf( "Enabled\n" );
		fprintf(deviceInfoOutput, "Enabled\n");
	}
	else{
		printf( "Disabled\n" );
		fprintf(deviceInfoOutput, "Disabled\n");
	}
	printf( "--- Memory Information for device %d ---\n", i );
	fprintf(deviceInfoOutput, "--- Memory Information for device %d ---\n", i );
	printf(" Total global mem:  %ld\n", prop.totalGlobalMem);
	fprintf(deviceInfoOutput, " Total global mem:  %ld\n", prop.totalGlobalMem);
	printf( "Total constant Mem:  %ld\n", prop.totalConstMem );
	fprintf(deviceInfoOutput, "Total constant Mem:  %ld\n", prop.totalConstMem );
	printf( "Max mem pitch: %ld\n", prop.memPitch );
	fprintf(deviceInfoOutput, "Max mem pitch: %ld\n", prop.memPitch );
	printf( "Texture Alignment:  %ld\n", prop.textureAlignment );
	fprintf(deviceInfoOutput, "Texture Alignment:  %ld\n", prop.textureAlignment );
	printf( "--- MP Information for device %d ---\n", i );
	fprintf(deviceInfoOutput, "--- MP Information for device %d ---\n", i );
	printf( "Multiprocessor count: %d\n", prop.multiProcessorCount );
	fprintf(deviceInfoOutput, "Multiprocessor count: %d\n", prop.multiProcessorCount );
	printf( "Shared mem per mp: %ld\n", prop.sharedMemPerBlock );
	fprintf(deviceInfoOutput, "Shared mem per mp: %ld\n", prop.sharedMemPerBlock );
	printf( "Registers per mp: %d\n", prop.regsPerBlock );
	fprintf(deviceInfoOutput, "Registers per mp: %d\n", prop.regsPerBlock );
	printf( "Threads in warp: %d\n", prop.warpSize );
	fprintf(deviceInfoOutput, "Threads in warp: %d\n", prop.warpSize );
	printf( "Max threads per block: %d\n", prop.maxThreadsPerBlock );
	fprintf(deviceInfoOutput, "Max threads per block: %d\n", prop.maxThreadsPerBlock  );
	printf( "Max thread dimensions: (%d, %d, %d)\n",prop.maxThreadsDim[0], prop.maxThreadsDim[1],prop.maxThreadsDim[2] );
	fprintf(deviceInfoOutput, "Max thread dimensions: (%d, %d, %d)\n",prop.maxThreadsDim[0], prop.maxThreadsDim[1],prop.maxThreadsDim[2] );
	printf( "Max grid dimensions: (%d, %d, %d)\n", prop.maxGridSize[0], prop.maxGridSize[1],prop.maxGridSize[2] );
	fprintf(deviceInfoOutput, "Max grid dimensions: (%d, %d, %d)\n", prop.maxGridSize[0], prop.maxGridSize[1],prop.maxGridSize[2]);
	printf( "\n" );
	fprintf(deviceInfoOutput, "\n" );
}
fclose(deviceInfoOutput);
}

	.file	"tmpxft_002428ba_00000000-6_deviceInfo.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3638:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3638:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a"
.LC1:
	.string	"deviceInfoOutput.txt"
.LC2:
	.string	"Devices information\n"
.LC3:
	.string	"Total Cuda devices: %d\n"
.LC4:
	.string	"----General information for device %d----\n"
.LC5:
	.string	"Name:  %s\n"
.LC6:
	.string	"Compute Capability:  %d.%d\n"
.LC7:
	.string	"Clock Rate:  %d\n"
.LC8:
	.string	"Device Copy Overlap: "
.LC9:
	.string	"Enabled\n"
.LC10:
	.string	"Disabled\n"
.LC11:
	.string	"Kernel execution timeout:  "
.LC12:
	.string	"--- Memory Information for device %d ---\n"
.LC13:
	.string	" Total global mem:  %ld\n"
.LC14:
	.string	"Total constant Mem:  %ld\n"
.LC15:
	.string	"Max mem pitch: %ld\n"
.LC16:
	.string	"Texture Alignment:  %ld\n"
.LC17:
	.string	"--- MP Information for device %d ---\n"
.LC18:
	.string	"Multiprocessor count: %d\n"
.LC19:
	.string	"Shared mem per mp: %ld\n"
.LC20:
	.string	"Registers per mp: %d\n"
.LC21:
	.string	"Threads in warp: %d\n"
.LC22:
	.string	"Max threads per block: %d\n"
.LC23:
	.string	"Max thread dimensions: (%d, %d, %d)\n"
.LC24:
	.string	"Max grid dimensions: (%d, %d, %d)\n"
.LC25:
	.string	"\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3635:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC4(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1056, %rsp
	.cfi_def_cfa_offset 1104
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	call	fopen@PLT
	leaq	12(%rsp), %rdi
	movq	%rax, %rbx
	call	cudaGetDeviceCount@PLT
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rbp
	call	__fprintf_chk@PLT
	movl	12(%rsp), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %ecx
	movq	%rbp, %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	call	__fprintf_chk@PLT
.L3:
	cmpl	%ebp, 12(%rsp)
	jle	.L14
	leaq	16(%rsp), %r12
	movl	%ebp, %esi
	leaq	.LC5(%rip), %r14
	movq	%r12, %rdi
	call	cudaGetDeviceProperties_v2@PLT
	movl	%ebp, %edx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebp, %ecx
	movq	%r13, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movq	%r12, %rdx
	movq	%r14, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rcx
	movq	%r14, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC6(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	380(%rsp), %ecx
	movl	376(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	376(%rsp), %ecx
	xorl	%eax, %eax
	movl	380(%rsp), %r8d
	leaq	.LC7(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	364(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	364(%rsp), %ecx
	leaq	.LC8(%rip), %r12
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rdx
	xorl	%eax, %eax
	movl	$2, %esi
	movq	%rbx, %rdi
	leaq	.LC9(%rip), %r12
	call	__fprintf_chk@PLT
	cmpl	$0, 400(%rsp)
	jne	.L11
	leaq	.LC10(%rip), %r12
.L11:
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	leaq	.LC11(%rip), %r12
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rdx
	xorl	%eax, %eax
	movl	$2, %esi
	movq	%rbx, %rdi
	leaq	.LC9(%rip), %r12
	call	__fprintf_chk@PLT
	cmpl	$0, 408(%rsp)
	jne	.L12
	leaq	.LC10(%rip), %r12
.L12:
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	leaq	.LC12(%rip), %r12
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebp, %ecx
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC13(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	304(%rsp), %rdx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	304(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC14(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	368(%rsp), %rdx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	368(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC15(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	328(%rsp), %rdx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	328(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC16(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movq	384(%rsp), %rdx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	384(%rsp), %rcx
	leaq	.LC17(%rip), %r12
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movl	%ebp, %edx
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebp, %ecx
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	.LC18(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	404(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	404(%rsp), %ecx
	xorl	%eax, %eax
	leaq	.LC19(%rip), %r12
	call	__fprintf_chk@PLT
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$2, %edi
	movq	312(%rsp), %rdx
	incl	%ebp
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movq	312(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC20(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	320(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	320(%rsp), %ecx
	xorl	%eax, %eax
	leaq	.LC21(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	324(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	324(%rsp), %ecx
	xorl	%eax, %eax
	leaq	.LC22(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	336(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	336(%rsp), %ecx
	xorl	%eax, %eax
	leaq	.LC23(%rip), %r12
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	348(%rsp), %r8d
	movl	344(%rsp), %ecx
	movl	340(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	340(%rsp), %ecx
	movl	348(%rsp), %r9d
	xorl	%eax, %eax
	leaq	.LC24(%rip), %r12
	movl	344(%rsp), %r8d
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	360(%rsp), %r8d
	movl	356(%rsp), %ecx
	movl	352(%rsp), %edx
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	movl	352(%rsp), %ecx
	leaq	.LC25(%rip), %r12
	xorl	%eax, %eax
	movl	360(%rsp), %r9d
	movl	356(%rsp), %r8d
	call	__fprintf_chk@PLT
	movq	%r12, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rdx
	movl	$2, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	jmp	.L3
.L14:
	movq	%rbx, %rdi
	call	fclose@PLT
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	addq	$1056, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3635:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3661:
	.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
.LFE3661:
	.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 <iostream>


int main( void ) {
hipDeviceProp_t prop;
FILE *deviceInfoOutput;
deviceInfoOutput = fopen("deviceInfoOutput.txt", "a");
int count;
hipGetDeviceCount( &count );
printf("Devices information\n");
fprintf(deviceInfoOutput, "Devices information\n");
printf("Total Cuda devices: %d\n", count);
fprintf(deviceInfoOutput, "Total Cuda devices: %d\n", count);
for (int i=0; i< count; i++) {
	hipGetDeviceProperties( &prop, i );
//Do something with our device's properties
	printf("----General information for device %d----\n",i);
	fprintf(deviceInfoOutput, "----General information for device %d----\n", i);
	printf("Name:  %s\n", prop.name);
	fprintf(deviceInfoOutput, "Name:  %s\n", prop.name);
	printf("Compute Capability:  %d.%d\n", prop.major, prop.minor);
	fprintf(deviceInfoOutput, "Compute Capability:  %d.%d\n", prop.major, prop.minor);
	printf("Clock Rate:  %d\n", prop.clockRate);
	fprintf(deviceInfoOutput, "Clock Rate:  %d\n", prop.clockRate);
	printf("Device Copy Overlap: ");
	fprintf(deviceInfoOutput, "Device Copy Overlap: ");
	if(prop.deviceOverlap){
		printf("Enabled\n");
		fprintf(deviceInfoOutput, "Enabled\n");
	}
	else{
		printf("Disabled\n");
		fprintf(deviceInfoOutput, "Disabled\n");
	}
	printf("Kernel execution timeout:  ");
	fprintf(deviceInfoOutput, "Kernel execution timeout:  ");
	if (prop.kernelExecTimeoutEnabled){
		printf( "Enabled\n" );
		fprintf(deviceInfoOutput, "Enabled\n");
	}
	else{
		printf( "Disabled\n" );
		fprintf(deviceInfoOutput, "Disabled\n");
	}
	printf( "--- Memory Information for device %d ---\n", i );
	fprintf(deviceInfoOutput, "--- Memory Information for device %d ---\n", i );
	printf(" Total global mem:  %ld\n", prop.totalGlobalMem);
	fprintf(deviceInfoOutput, " Total global mem:  %ld\n", prop.totalGlobalMem);
	printf( "Total constant Mem:  %ld\n", prop.totalConstMem );
	fprintf(deviceInfoOutput, "Total constant Mem:  %ld\n", prop.totalConstMem );
	printf( "Max mem pitch: %ld\n", prop.memPitch );
	fprintf(deviceInfoOutput, "Max mem pitch: %ld\n", prop.memPitch );
	printf( "Texture Alignment:  %ld\n", prop.textureAlignment );
	fprintf(deviceInfoOutput, "Texture Alignment:  %ld\n", prop.textureAlignment );
	printf( "--- MP Information for device %d ---\n", i );
	fprintf(deviceInfoOutput, "--- MP Information for device %d ---\n", i );
	printf( "Multiprocessor count: %d\n", prop.multiProcessorCount );
	fprintf(deviceInfoOutput, "Multiprocessor count: %d\n", prop.multiProcessorCount );
	printf( "Shared mem per mp: %ld\n", prop.sharedMemPerBlock );
	fprintf(deviceInfoOutput, "Shared mem per mp: %ld\n", prop.sharedMemPerBlock );
	printf( "Registers per mp: %d\n", prop.regsPerBlock );
	fprintf(deviceInfoOutput, "Registers per mp: %d\n", prop.regsPerBlock );
	printf( "Threads in warp: %d\n", prop.warpSize );
	fprintf(deviceInfoOutput, "Threads in warp: %d\n", prop.warpSize );
	printf( "Max threads per block: %d\n", prop.maxThreadsPerBlock );
	fprintf(deviceInfoOutput, "Max threads per block: %d\n", prop.maxThreadsPerBlock  );
	printf( "Max thread dimensions: (%d, %d, %d)\n",prop.maxThreadsDim[0], prop.maxThreadsDim[1],prop.maxThreadsDim[2] );
	fprintf(deviceInfoOutput, "Max thread dimensions: (%d, %d, %d)\n",prop.maxThreadsDim[0], prop.maxThreadsDim[1],prop.maxThreadsDim[2] );
	printf( "Max grid dimensions: (%d, %d, %d)\n", prop.maxGridSize[0], prop.maxGridSize[1],prop.maxGridSize[2] );
	fprintf(deviceInfoOutput, "Max grid dimensions: (%d, %d, %d)\n", prop.maxGridSize[0], prop.maxGridSize[1],prop.maxGridSize[2]);
	printf( "\n" );
	fprintf(deviceInfoOutput, "\n" );
}
fclose(deviceInfoOutput);
}

	.text
	.file	"deviceInfo.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$1488, %rsp                     # imm = 0x5D0
	.cfi_def_cfa_offset 1520
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %rbp, -16
	movl	$.L.str, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, %rbx
	leaq	12(%rsp), %r14
	movq	%r14, %rdi
	callq	hipGetDeviceCount
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$.L.str.2, %edi
	movl	$20, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	movl	(%r14), %esi
	movl	$.L.str.3, %edi
	xorl	%eax, %eax
	callq	printf
	movl	(%r14), %edx
	movl	$.L.str.3, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	cmpl	$0, (%r14)
	jle	.LBB0_9
# %bb.1:                                # %.lr.ph
	leaq	16(%rsp), %r14
	xorl	%ebp, %ebp
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebp, %esi
	callq	hipGetDevicePropertiesR0600
	movl	$.L.str.4, %edi
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.4, %esi
	movq	%rbx, %rdi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.5, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.5, %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	fprintf
	movl	376(%rsp), %esi
	movl	380(%rsp), %edx
	movl	$.L.str.6, %edi
	xorl	%eax, %eax
	callq	printf
	movl	376(%rsp), %edx
	movl	380(%rsp), %ecx
	movl	$.L.str.6, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	364(%rsp), %esi
	movl	$.L.str.7, %edi
	xorl	%eax, %eax
	callq	printf
	movl	364(%rsp), %edx
	movl	$.L.str.7, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.8, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.8, %edi
	movl	$21, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	cmpl	$0, 400(%rsp)
	je	.LBB0_4
# %bb.3:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.4, %edi
	callq	puts@PLT
	movl	$.L.str.9, %edi
	movl	$8, %esi
	jmp	.LBB0_5
.LBB0_4:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	movl	$.L.str.10, %edi
	movl	$9, %esi
.LBB0_5:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	movl	$.L.str.11, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.11, %edi
	movl	$27, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	cmpl	$0, 408(%rsp)
	je	.LBB0_7
# %bb.6:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.4, %edi
	callq	puts@PLT
	movl	$.L.str.9, %edi
	movl	$8, %esi
	jmp	.LBB0_8
.LBB0_7:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.3, %edi
	callq	puts@PLT
	movl	$.L.str.10, %edi
	movl	$9, %esi
.LBB0_8:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	fwrite@PLT
	movl	$.L.str.12, %edi
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.12, %esi
	movq	%rbx, %rdi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	fprintf
	movq	304(%rsp), %rsi
	movl	$.L.str.13, %edi
	xorl	%eax, %eax
	callq	printf
	movq	304(%rsp), %rdx
	movl	$.L.str.13, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movq	368(%rsp), %rsi
	movl	$.L.str.14, %edi
	xorl	%eax, %eax
	callq	printf
	movq	368(%rsp), %rdx
	movl	$.L.str.14, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movq	328(%rsp), %rsi
	movl	$.L.str.15, %edi
	xorl	%eax, %eax
	callq	printf
	movq	328(%rsp), %rdx
	movl	$.L.str.15, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movq	384(%rsp), %rsi
	movl	$.L.str.16, %edi
	xorl	%eax, %eax
	callq	printf
	movq	384(%rsp), %rdx
	movl	$.L.str.16, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	$.L.str.17, %edi
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.17, %esi
	movq	%rbx, %rdi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	fprintf
	movl	404(%rsp), %esi
	movl	$.L.str.18, %edi
	xorl	%eax, %eax
	callq	printf
	movl	404(%rsp), %edx
	movl	$.L.str.18, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movq	312(%rsp), %rsi
	movl	$.L.str.19, %edi
	xorl	%eax, %eax
	callq	printf
	movq	312(%rsp), %rdx
	movl	$.L.str.19, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	320(%rsp), %esi
	movl	$.L.str.20, %edi
	xorl	%eax, %eax
	callq	printf
	movl	320(%rsp), %edx
	movl	$.L.str.20, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	324(%rsp), %esi
	movl	$.L.str.21, %edi
	xorl	%eax, %eax
	callq	printf
	movl	324(%rsp), %edx
	movl	$.L.str.21, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	336(%rsp), %esi
	movl	$.L.str.22, %edi
	xorl	%eax, %eax
	callq	printf
	movl	336(%rsp), %edx
	movl	$.L.str.22, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	340(%rsp), %esi
	movl	344(%rsp), %edx
	movl	348(%rsp), %ecx
	movl	$.L.str.23, %edi
	xorl	%eax, %eax
	callq	printf
	movl	340(%rsp), %edx
	movl	344(%rsp), %ecx
	movl	348(%rsp), %r8d
	movl	$.L.str.23, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	352(%rsp), %esi
	movl	356(%rsp), %edx
	movl	360(%rsp), %ecx
	movl	$.L.str.24, %edi
	xorl	%eax, %eax
	callq	printf
	movl	352(%rsp), %edx
	movl	356(%rsp), %ecx
	movl	360(%rsp), %r8d
	movl	$.L.str.24, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movl	$10, %edi
	callq	putchar@PLT
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	fputc@PLT
	incl	%ebp
	cmpl	12(%rsp), %ebp
	jl	.LBB0_2
.LBB0_9:                                # %._crit_edge
	movq	%rbx, %rdi
	callq	fclose
	xorl	%eax, %eax
	addq	$1488, %rsp                     # imm = 0x5D0
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"deviceInfoOutput.txt"
	.size	.L.str, 21

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

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Devices information\n"
	.size	.L.str.2, 21

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"Total Cuda devices: %d\n"
	.size	.L.str.3, 24

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"----General information for device %d----\n"
	.size	.L.str.4, 43

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"Name:  %s\n"
	.size	.L.str.5, 11

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Compute Capability:  %d.%d\n"
	.size	.L.str.6, 28

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"Clock Rate:  %d\n"
	.size	.L.str.7, 17

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"Device Copy Overlap: "
	.size	.L.str.8, 22

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"Enabled\n"
	.size	.L.str.9, 9

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"Disabled\n"
	.size	.L.str.10, 10

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"Kernel execution timeout:  "
	.size	.L.str.11, 28

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"--- Memory Information for device %d ---\n"
	.size	.L.str.12, 42

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	" Total global mem:  %ld\n"
	.size	.L.str.13, 25

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"Total constant Mem:  %ld\n"
	.size	.L.str.14, 26

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"Max mem pitch: %ld\n"
	.size	.L.str.15, 20

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"Texture Alignment:  %ld\n"
	.size	.L.str.16, 25

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"--- MP Information for device %d ---\n"
	.size	.L.str.17, 38

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"Multiprocessor count: %d\n"
	.size	.L.str.18, 26

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"Shared mem per mp: %ld\n"
	.size	.L.str.19, 24

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"Registers per mp: %d\n"
	.size	.L.str.20, 22

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"Threads in warp: %d\n"
	.size	.L.str.21, 21

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"Max threads per block: %d\n"
	.size	.L.str.22, 27

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"Max thread dimensions: (%d, %d, %d)\n"
	.size	.L.str.23, 37

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"Max grid dimensions: (%d, %d, %d)\n"
	.size	.L.str.24, 35

	.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	"Devices information"
	.size	.Lstr, 20

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"Disabled"
	.size	.Lstr.3, 9

	.type	.Lstr.4,@object                 # @str.4
.Lstr.4:
	.asciz	"Enabled"
	.size	.Lstr.4, 8

	.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
