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

using namespace std;

int main() {
  int driver_version = 0, runtime_version = 0;
  cudaDriverGetVersion(&driver_version);
  cudaRuntimeGetVersion(&runtime_version);

  printf("Driver Version: %d\n Runtime Version: %d\n", \
    driver_version, runtime_version);

  int nDevices;

  cudaGetDeviceCount(&nDevices);
  for (int i = 0; i < nDevices; i++) {
    cudaDeviceProp prop;
    cudaGetDeviceProperties(&prop, i);
    int cudaCores = 0;
    int SM = prop.multiProcessorCount;
    int major = prop.major;
    int minor = prop.minor;
    string arch = "";
    switch (major) {
    case 1:
        arch = "TESLA";
        cudaCores = 8;
        break;
    case 2:
        arch = "FERMI";
        if (minor == 0)
            cudaCores = 32;
        else
            cudaCores = 48;
        break;
    case 3:
        arch = "KEPLER";
        cudaCores = 192;
        break;
    case 5:
        arch = "MAXWELL";
        cudaCores = 128;
        break;
    case 6:
        arch = "PASCAL";
        if ((minor == 1) || (minor == 2)) cudaCores = 128;
        else if (minor == 0) cudaCores = SM * 64;
        else printf("Unknown device type\n");
        break;
    case 7:
        if ((minor == 0) || (minor == 2)) {
            arch = "VOLTA";
            cudaCores = 384;
            //tensorCores = 48;
        }
        if (minor == 5) arch = "TURING";
        if ((minor == 0) || (minor == 5)) cudaCores = 64;
        else printf("Unknown device type\n");
        break;
    case 8:
        arch = "AMPERE";
        if (minor == 0) cudaCores = 64;
        else printf("Unknown device type\n");
        break;
    default:
        //ARQUITECTURA DESCONOCIDA
        cudaCores = 0;
        printf("!!!!!dispositivo desconocido!!!!!\n");
    }

    printf("Device Number: %d\n", i);
    printf("  Device name: %s\n", prop.name);
    cout << "  Architecture: " << arch << endl;
    printf("  Compute Capability: %d.%d\n", major, minor);
    printf("  MultiProccessors: %d\n", SM);
    printf("  CUDA Cores (%dx%d): %d\n", cudaCores, SM, cudaCores*SM);
    printf("  GlobalMemory (total): %zu MiB\n", prop.totalGlobalMem/(1024*1024));
    printf("  ConstMemory (total): %zu KiB\n", prop.totalConstMem/1024);

    printf("  sharedMemPerMultiprocessor: %zu\n", prop.sharedMemPerMultiprocessor);
    printf("  regsPerMultiprocessor: %d\n", prop.regsPerMultiprocessor);
    printf("  maxThreadsPerMultiProcessor: %d\n", prop.maxThreadsPerMultiProcessor);

    printf("  sharedMemPerBlock: %zu\n", prop.sharedMemPerBlock);
    printf("  regsPerBlock: %d\n", prop.regsPerBlock);
    printf("  maxThreadsPerBlock: %d\n", prop.maxThreadsPerBlock);
    printf("    x = %d\n", prop.maxThreadsDim[0]);
    printf("    y = %d\n", prop.maxThreadsDim[1]);
    printf("    z = %d\n", prop.maxThreadsDim[2]);
    printf("  maxThreadsDim: %d\n", prop.maxThreadsDim[3]);
    printf("  maxGridSize: %d\n", prop.maxGridSize[3]);
    printf("    x = %d\n", prop.maxGridSize[0]);
    printf("    y = %d\n", prop.maxGridSize[1]);
    printf("    z = %d\n", prop.maxGridSize[2]);

    printf("  warpSize: %d\n", prop.warpSize);
    printf("  memPitch: %d\n", prop.memPitch);
    printf("  Memory Clock Rate (KHz): %d\n", prop.memoryClockRate);
    printf("  Memory Bus Width (bits): %d\n", prop.memoryBusWidth);
    printf("  Peak Memory Bandwidth (GB/s): %f\n\n", 2.0*prop.memoryClockRate*(prop.memoryBusWidth/8)/1.0e6);
  }
}

	.file	"tmpxft_002ecbd7_00000000-6_ndevices.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
	.align 2
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0, @function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0:
.LFB4297:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	pushq	%rax
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	movq	8(%rbx), %rdx
	movq	%rbp, %rcx
	popq	%r9
	.cfi_def_cfa_offset 24
	movq	%rbx, %rdi
	movq	%rax, %r8
	popq	%rbx
	.cfi_def_cfa_offset 16
	xorl	%esi, %esi
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm@PLT
	.cfi_endproc
.LFE4297:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0, .-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Driver Version: %d\n Runtime Version: %d\n"
.LC1:
	.string	""
.LC2:
	.string	"TESLA"
.LC3:
	.string	"FERMI"
.LC4:
	.string	"KEPLER"
.LC5:
	.string	"MAXWELL"
.LC6:
	.string	"PASCAL"
.LC7:
	.string	"Unknown device type\n"
.LC8:
	.string	"VOLTA"
.LC9:
	.string	"TURING"
.LC10:
	.string	"AMPERE"
.LC11:
	.string	"!!!!!dispositivo desconocido!!!!!\n"
.LC12:
	.string	"Device Number: %d\n"
.LC13:
	.string	"  Device name: %s\n"
.LC14:
	.string	"  Architecture: "
.LC15:
	.string	"  Compute Capability: %d.%d\n"
.LC16:
	.string	"  MultiProccessors: %d\n"
.LC17:
	.string	"  CUDA Cores (%dx%d): %d\n"
.LC18:
	.string	"  GlobalMemory (total): %zu MiB\n"
.LC19:
	.string	"  ConstMemory (total): %zu KiB\n"
.LC20:
	.string	"  sharedMemPerMultiprocessor: %zu\n"
.LC21:
	.string	"  regsPerMultiprocessor: %d\n"
.LC22:
	.string	"  maxThreadsPerMultiProcessor: %d\n"
.LC23:
	.string	"  sharedMemPerBlock: %zu\n"
.LC24:
	.string	"  regsPerBlock: %d\n"
.LC25:
	.string	"  maxThreadsPerBlock: %d\n"
.LC26:
	.string	"    x = %d\n"
.LC27:
	.string	"    y = %d\n"
.LC28:
	.string	"    z = %d\n"
.LC29:
	.string	"  maxThreadsDim: %d\n"
.LC30:
	.string	"  maxGridSize: %d\n"
.LC31:
	.string	"  warpSize: %d\n"
.LC32:
	.string	"  memPitch: %d\n"
.LC33:
	.string	"  Memory Clock Rate (KHz): %d\n"
.LC34:
	.string	"  Memory Bus Width (bits): %d\n"
.LC36:
	.string	"  Peak Memory Bandwidth (GB/s): %f\n\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3635:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3635
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%edx, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1112, %rsp
	.cfi_def_cfa_offset 1168
	movq	%fs:40, %rax
	movq	%rax, 1096(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rdi
	movl	%edx, 20(%rsp)
	movl	%edx, 24(%rsp)
.LEHB0:
	call	cudaDriverGetVersion@PLT
	leaq	24(%rsp), %rdi
	call	cudaRuntimeGetVersion@PLT
	movl	24(%rsp), %ecx
	movl	20(%rsp), %edx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	leaq	28(%rsp), %rdi
	call	cudaGetDeviceCount@PLT
.L5:
	cmpl	%r12d, 28(%rsp)
	jle	.L49
	leaq	64(%rsp), %r15
	movl	%r12d, %esi
	movq	%r15, %rdi
	call	cudaGetDeviceProperties_v2@PLT
.LEHE0:
	leaq	.LC1(%rip), %rdx
	leaq	48(%rsp), %rdi
	movl	424(%rsp), %r14d
	movq	%rdx, %rsi
	movq	%rdi, 32(%rsp)
	movl	452(%rsp), %r13d
	movl	428(%rsp), %ebp
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7_@PLT
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	movq	%rax, 40(%rsp)
	movq	32(%rsp), %rax
	movq	%rcx, 8(%rsp)
	movb	$0, (%rax)
	leal	-1(%r14), %eax
	cmpl	$7, %eax
	ja	.L6
	leaq	.L8(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L14-.L8
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.section	.text.startup
.L14:
	movq	8(%rsp), %rdi
	leaq	.LC2(%rip), %rsi
.LEHB1:
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	movl	$8, %ebx
	jmp	.L15
.L13:
	movq	8(%rsp), %rdi
	leaq	.LC3(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	cmpl	$1, %ebp
	sbbl	%ebx, %ebx
	andl	$-16, %ebx
	addl	$48, %ebx
	jmp	.L15
.L12:
	movq	8(%rsp), %rdi
	leaq	.LC4(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	movl	$192, %ebx
	jmp	.L15
.L11:
	movq	8(%rsp), %rdi
	leaq	.LC5(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
.L16:
	movl	$128, %ebx
	jmp	.L15
.L10:
	movq	8(%rsp), %rdi
	leaq	.LC6(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	leal	-1(%rbp), %eax
	cmpl	$1, %eax
	jbe	.L16
	testl	%ebp, %ebp
	jne	.L17
	movl	%r13d, %ebx
	sall	$6, %ebx
	jmp	.L15
.L7:
	movq	8(%rsp), %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	testl	%ebp, %ebp
	je	.L22
.L17:
	leaq	.LC7(%rip), %rsi
.L47:
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%ebx, %ebx
	jmp	.L15
.L9:
	testl	$-3, %ebp
	jne	.L18
	movq	8(%rsp), %rdi
	leaq	.LC8(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
	movl	$384, %ebx
	jmp	.L19
.L18:
	xorl	%ebx, %ebx
	cmpl	$5, %ebp
	jne	.L20
	movq	8(%rsp), %rdi
	leaq	.LC9(%rip), %rsi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.isra.0
.L19:
	testl	%ebp, %ebp
	je	.L22
	cmpl	$5, %ebp
	jne	.L20
.L22:
	movl	$64, %ebx
	jmp	.L15
.L20:
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L6:
	leaq	.LC11(%rip), %rsi
	jmp	.L47
.L15:
	movl	%r12d, %edx
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r15, %rdx
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC14(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %rdi
	call	_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	movl	%ebp, %ecx
	movl	%r14d, %edx
	leaq	.LC15(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	%r13d, %edx
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebx, %r8d
	movl	%r13d, %ecx
	movl	%ebx, %edx
	movl	$2, %edi
	imull	%r13d, %r8d
	leaq	.LC17(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	352(%rsp), %rdx
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	shrq	$20, %rdx
	call	__printf_chk@PLT
	movq	416(%rsp), %rdx
	leaq	.LC19(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	shrq	$10, %rdx
	call	__printf_chk@PLT
	movq	704(%rsp), %rdx
	leaq	.LC20(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	712(%rsp), %edx
	leaq	.LC21(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	688(%rsp), %edx
	leaq	.LC22(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	360(%rsp), %rdx
	leaq	.LC23(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	368(%rsp), %edx
	leaq	.LC24(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	384(%rsp), %edx
	leaq	.LC25(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC26(%rip), %r13
	movl	388(%rsp), %edx
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__printf_chk@PLT
	leaq	.LC27(%rip), %rbp
	movl	392(%rsp), %edx
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%rbp, %rsi
	call	__printf_chk@PLT
	leaq	.LC28(%rip), %rbx
	movl	396(%rsp), %edx
	movl	$2, %edi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__printf_chk@PLT
	movl	400(%rsp), %edx
	leaq	.LC29(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	412(%rsp), %edx
	leaq	.LC30(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	400(%rsp), %edx
	movq	%r13, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	404(%rsp), %edx
	movq	%rbp, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	408(%rsp), %edx
	movq	%rbx, %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	372(%rsp), %edx
	leaq	.LC31(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	376(%rsp), %rdx
	leaq	.LC32(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	672(%rsp), %edx
	leaq	.LC33(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	676(%rsp), %edx
	leaq	.LC34(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	676(%rsp), %eax
	movl	$8, %ecx
	cvtsi2sdl	672(%rsp), %xmm0
	leaq	.LC36(%rip), %rsi
	movl	$2, %edi
	cltd
	idivl	%ecx
	addsd	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm1
	movb	$1, %al
	mulsd	%xmm1, %xmm0
	divsd	.LC35(%rip), %xmm0
	call	__printf_chk@PLT
.LEHE1:
	movq	8(%rsp), %rdi
	incl	%r12d
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L5
.L49:
	movq	1096(%rsp), %rax
	subq	%fs:40, %rax
	je	.L27
	jmp	.L43
.L33:
	endbr64
	movq	%rax, %rbx
.L25:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	movq	1096(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	movq	%rbx, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L43:
	call	__stack_chk_fail@PLT
.L27:
	addq	$1112, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.LFE3635:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3635:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3635-.LLSDACSB3635
.LLSDACSB3635:
	.uleb128 .LEHB0-.LFB3635
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3635
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L33-.LFB3635
	.uleb128 0
	.uleb128 .LEHB2-.LFB3635
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE3635:
	.section	.text.startup
	.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
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC35:
	.long	0
	.long	1093567616
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.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>
#include <string>

using namespace std;

int main() {
  int driver_version = 0, runtime_version = 0;
  hipDriverGetVersion(&driver_version);
  hipRuntimeGetVersion(&runtime_version);

  printf("Driver Version: %d\n Runtime Version: %d\n", \
    driver_version, runtime_version);

  int nDevices;

  hipGetDeviceCount(&nDevices);
  for (int i = 0; i < nDevices; i++) {
    hipDeviceProp_t prop;
    hipGetDeviceProperties(&prop, i);
    int cudaCores = 0;
    int SM = prop.multiProcessorCount;
    int major = prop.major;
    int minor = prop.minor;
    string arch = "";
    switch (major) {
    case 1:
        arch = "TESLA";
        cudaCores = 8;
        break;
    case 2:
        arch = "FERMI";
        if (minor == 0)
            cudaCores = 32;
        else
            cudaCores = 48;
        break;
    case 3:
        arch = "KEPLER";
        cudaCores = 192;
        break;
    case 5:
        arch = "MAXWELL";
        cudaCores = 128;
        break;
    case 6:
        arch = "PASCAL";
        if ((minor == 1) || (minor == 2)) cudaCores = 128;
        else if (minor == 0) cudaCores = SM * 64;
        else printf("Unknown device type\n");
        break;
    case 7:
        if ((minor == 0) || (minor == 2)) {
            arch = "VOLTA";
            cudaCores = 384;
            //tensorCores = 48;
        }
        if (minor == 5) arch = "TURING";
        if ((minor == 0) || (minor == 5)) cudaCores = 64;
        else printf("Unknown device type\n");
        break;
    case 8:
        arch = "AMPERE";
        if (minor == 0) cudaCores = 64;
        else printf("Unknown device type\n");
        break;
    default:
        //ARQUITECTURA DESCONOCIDA
        cudaCores = 0;
        printf("!!!!!dispositivo desconocido!!!!!\n");
    }

    printf("Device Number: %d\n", i);
    printf("  Device name: %s\n", prop.name);
    cout << "  Architecture: " << arch << endl;
    printf("  Compute Capability: %d.%d\n", major, minor);
    printf("  MultiProccessors: %d\n", SM);
    printf("  CUDA Cores (%dx%d): %d\n", cudaCores, SM, cudaCores*SM);
    printf("  GlobalMemory (total): %zu MiB\n", prop.totalGlobalMem/(1024*1024));
    printf("  ConstMemory (total): %zu KiB\n", prop.totalConstMem/1024);

    printf("  sharedMemPerMultiprocessor: %zu\n", prop.sharedMemPerMultiprocessor);
    printf("  regsPerMultiprocessor: %d\n", prop.regsPerMultiprocessor);
    printf("  maxThreadsPerMultiProcessor: %d\n", prop.maxThreadsPerMultiProcessor);

    printf("  sharedMemPerBlock: %zu\n", prop.sharedMemPerBlock);
    printf("  regsPerBlock: %d\n", prop.regsPerBlock);
    printf("  maxThreadsPerBlock: %d\n", prop.maxThreadsPerBlock);
    printf("    x = %d\n", prop.maxThreadsDim[0]);
    printf("    y = %d\n", prop.maxThreadsDim[1]);
    printf("    z = %d\n", prop.maxThreadsDim[2]);
    printf("  maxThreadsDim: %d\n", prop.maxThreadsDim[3]);
    printf("  maxGridSize: %d\n", prop.maxGridSize[3]);
    printf("    x = %d\n", prop.maxGridSize[0]);
    printf("    y = %d\n", prop.maxGridSize[1]);
    printf("    z = %d\n", prop.maxGridSize[2]);

    printf("  warpSize: %d\n", prop.warpSize);
    printf("  memPitch: %d\n", prop.memPitch);
    printf("  Memory Clock Rate (KHz): %d\n", prop.memoryClockRate);
    printf("  Memory Bus Width (bits): %d\n", prop.memoryBusWidth);
    printf("  Peak Memory Bandwidth (GB/s): %f\n\n", 2.0*prop.memoryClockRate*(prop.memoryBusWidth/8)/1.0e6);
  }
}

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

                                        # End of file scope inline assembly
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI0_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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
	xorl	%r15d, %r15d
	leaq	52(%rsp), %rbx
	movl	%r15d, (%rbx)
	leaq	48(%rsp), %r14
	movl	%r15d, (%r14)
	movq	%rbx, %rdi
	callq	hipDriverGetVersion
	movq	%r14, %rdi
	callq	hipRuntimeGetVersion
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	leaq	44(%rsp), %rbx
	movq	%rbx, %rdi
	callq	hipGetDeviceCount
	cmpl	%r15d, (%rbx)
	jle	.LBB0_37
# %bb.1:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit.lr.ph
	leaq	24(%rsp), %rbx
	xorl	%ebp, %ebp
.LBB0_2:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
                                        # =>This Inner Loop Header: Depth=1
	leaq	56(%rsp), %rdi
	movl	%ebp, %esi
	callq	hipGetDevicePropertiesR0600
	movl	444(%rsp), %r14d
	movl	416(%rsp), %r12d
	movl	420(%rsp), %r13d
	movq	%rbx, 8(%rsp)
	movl	$.L.str.1, %esi
	movl	$.L.str.1, %edx
	leaq	8(%rsp), %rdi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	leal	-1(%r12), %eax
	cmpl	$7, %eax
	ja	.LBB0_27
# %bb.3:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	jmpq	*.LJTI0_0(,%rax,8)
.LBB0_4:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$8, %r15d
	movq	16(%rsp), %rdx
.Ltmp14:
	movl	$.L.str.2, %ecx
	movl	$5, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp15:
	jmp	.LBB0_29
.LBB0_27:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.3, %edi
	jmp	.LBB0_28
.LBB0_16:                               #   in Loop: Header=BB0_2 Depth=1
	testl	$-3, %r13d
	jne	.LBB0_17
# %bb.18:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$384, %ebx                      # imm = 0x180
	movq	16(%rsp), %rdx
.Ltmp2:
	movl	$.L.str.8, %ecx
	movl	$5, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp3:
	jmp	.LBB0_19
.LBB0_8:                                #   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsp), %rdx
.Ltmp12:
	movl	$.L.str.3, %ecx
	movl	$5, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp13:
# %bb.9:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit38
                                        #   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	setne	%r15b
	shll	$4, %r15d
	orl	$32, %r15d
	jmp	.LBB0_29
.LBB0_23:                               #   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsp), %rdx
.Ltmp0:
	movl	$.L.str.10, %ecx
	movl	$6, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp1:
# %bb.24:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit44
                                        #   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	.LBB0_26
# %bb.25:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$64, %r15d
	jmp	.LBB0_29
.LBB0_10:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$192, %r15d
	movq	16(%rsp), %rdx
.Ltmp10:
	movl	$.L.str.4, %ecx
	movl	$6, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp11:
	jmp	.LBB0_29
.LBB0_11:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$128, %r15d
	movq	16(%rsp), %rdx
.Ltmp8:
	movl	$.L.str.5, %ecx
	movl	$7, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp9:
	jmp	.LBB0_29
.LBB0_12:                               #   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsp), %rdx
.Ltmp6:
	movl	$.L.str.6, %ecx
	movl	$6, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp7:
# %bb.13:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit41
                                        #   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r13), %eax
	movl	$128, %r15d
	cmpl	$2, %eax
	jb	.LBB0_29
# %bb.14:                               #   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	.LBB0_15
.LBB0_26:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.2, %edi
.LBB0_28:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	callq	puts@PLT
	xorl	%r15d, %r15d
.LBB0_29:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	movl	$.L.str.12, %edi
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.13, %edi
	leaq	56(%rsp), %rsi
	xorl	%eax, %eax
	callq	printf
.Ltmp16:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.14, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp17:
# %bb.30:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsp), %rsi
	movq	16(%rsp), %rdx
.Ltmp18:
	movl	$_ZSt4cout, %edi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp19:
# %bb.31:                               # %_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
.Ltmp20:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp21:
# %bb.32:                               # %.noexc
                                        #   in Loop: Header=BB0_2 Depth=1
.Ltmp22:
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
.Ltmp23:
# %bb.33:                               # %.noexc48
                                        #   in Loop: Header=BB0_2 Depth=1
.Ltmp24:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp25:
# %bb.34:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	movl	$.L.str.15, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.16, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	%r15d, %ecx
	imull	%r14d, %ecx
	movl	$.L.str.17, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	printf
	movq	344(%rsp), %rsi
	shrq	$20, %rsi
	movl	$.L.str.18, %edi
	xorl	%eax, %eax
	callq	printf
	movq	408(%rsp), %rsi
	shrq	$10, %rsi
	movl	$.L.str.19, %edi
	xorl	%eax, %eax
	callq	printf
	movq	696(%rsp), %rsi
	movl	$.L.str.20, %edi
	xorl	%eax, %eax
	callq	printf
	movl	704(%rsp), %esi
	movl	$.L.str.21, %edi
	xorl	%eax, %eax
	callq	printf
	movl	680(%rsp), %esi
	movl	$.L.str.22, %edi
	xorl	%eax, %eax
	callq	printf
	movq	352(%rsp), %rsi
	movl	$.L.str.23, %edi
	xorl	%eax, %eax
	callq	printf
	movl	360(%rsp), %esi
	movl	$.L.str.24, %edi
	xorl	%eax, %eax
	callq	printf
	movl	376(%rsp), %esi
	movl	$.L.str.25, %edi
	xorl	%eax, %eax
	callq	printf
	movl	380(%rsp), %esi
	movl	$.L.str.26, %edi
	xorl	%eax, %eax
	callq	printf
	movl	384(%rsp), %esi
	movl	$.L.str.27, %edi
	xorl	%eax, %eax
	callq	printf
	movl	388(%rsp), %esi
	movl	$.L.str.28, %edi
	xorl	%eax, %eax
	callq	printf
	movl	392(%rsp), %esi
	movl	$.L.str.29, %edi
	xorl	%eax, %eax
	callq	printf
	movl	404(%rsp), %esi
	movl	$.L.str.30, %edi
	xorl	%eax, %eax
	callq	printf
	movl	392(%rsp), %esi
	movl	$.L.str.26, %edi
	xorl	%eax, %eax
	callq	printf
	movl	396(%rsp), %esi
	movl	$.L.str.27, %edi
	xorl	%eax, %eax
	callq	printf
	movl	400(%rsp), %esi
	movl	$.L.str.28, %edi
	xorl	%eax, %eax
	callq	printf
	movl	364(%rsp), %esi
	movl	$.L.str.31, %edi
	xorl	%eax, %eax
	callq	printf
	movq	368(%rsp), %rsi
	movl	$.L.str.32, %edi
	xorl	%eax, %eax
	callq	printf
	movl	664(%rsp), %esi
	movl	$.L.str.33, %edi
	xorl	%eax, %eax
	callq	printf
	movl	668(%rsp), %esi
	movl	$.L.str.34, %edi
	xorl	%eax, %eax
	callq	printf
	cvtsi2sdl	664(%rsp), %xmm1
	addsd	%xmm1, %xmm1
	movl	668(%rsp), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cvtsi2sd	%ecx, %xmm0
	mulsd	%xmm1, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movl	$.L.str.35, %edi
	movb	$1, %al
	callq	printf
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rbx
	cmpq	%rbx, %rdi
	je	.LBB0_36
# %bb.35:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i45
                                        #   in Loop: Header=BB0_2 Depth=1
	callq	_ZdlPv
.LBB0_36:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit47
                                        #   in Loop: Header=BB0_2 Depth=1
	incl	%ebp
	cmpl	44(%rsp), %ebp
	jl	.LBB0_2
	jmp	.LBB0_37
.LBB0_17:                               #   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
.LBB0_19:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit42
                                        #   in Loop: Header=BB0_2 Depth=1
	movl	$64, %r15d
	testl	%r13d, %r13d
	je	.LBB0_29
# %bb.20:                               # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc.exit42
                                        #   in Loop: Header=BB0_2 Depth=1
	cmpl	$5, %r13d
	jne	.LBB0_22
# %bb.21:                               #   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsp), %rdx
.Ltmp4:
	movl	$.L.str.9, %ecx
	movl	$6, %r8d
	leaq	8(%rsp), %rdi
	xorl	%esi, %esi
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm
.Ltmp5:
	jmp	.LBB0_29
.LBB0_22:                               #   in Loop: Header=BB0_2 Depth=1
	movl	$.Lstr.2, %edi
	callq	puts@PLT
	movl	%ebx, %r15d
	jmp	.LBB0_29
.LBB0_15:                               #   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	shll	$6, %r15d
	jmp	.LBB0_29
.LBB0_37:                               # %._crit_edge
	xorl	%eax, %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
.LBB0_5:
	.cfi_def_cfa_offset 1584
.Ltmp26:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	leaq	24(%rsp), %rax
	cmpq	%rax, %rdi
	je	.LBB0_7
# %bb.6:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB0_7:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
	.section	.rodata,"a",@progbits
	.p2align	3, 0x0
.LJTI0_0:
	.quad	.LBB0_4
	.quad	.LBB0_8
	.quad	.LBB0_10
	.quad	.LBB0_27
	.quad	.LBB0_11
	.quad	.LBB0_12
	.quad	.LBB0_16
	.quad	.LBB0_23
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp14-.Lfunc_begin0          #   Call between .Lfunc_begin0 and .Ltmp14
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp14-.Lfunc_begin0          # >> Call Site 2 <<
	.uleb128 .Ltmp5-.Ltmp14                 #   Call between .Ltmp14 and .Ltmp5
	.uleb128 .Ltmp26-.Lfunc_begin0          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Lfunc_end0-.Ltmp5             #   Call between .Ltmp5 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,"axG",@progbits,_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,comdat
	.weak	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag # -- Begin function _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.p2align	1, 0x90
	.type	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag,@function
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag: # @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subq	%rsi, %r14
	movq	%r14, (%rsp)
	cmpq	$15, %r14
	jbe	.LBB1_1
# %bb.2:
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm
	movq	%rax, (%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 16(%rbx)
	jmp	.LBB1_3
.LBB1_1:                                # %._crit_edge
	movq	(%rbx), %rax
.LBB1_3:
	testq	%r14, %r14
	je	.LBB1_7
# %bb.4:
	cmpq	$1, %r14
	jne	.LBB1_6
# %bb.5:
	movb	(%r15), %cl
	movb	%cl, (%rax)
	jmp	.LBB1_7
.LBB1_6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memcpy@PLT
.LBB1_7:                                # %_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev.exit
	movq	(%rsp), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag, .Lfunc_end1-_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Driver Version: %d\n Runtime Version: %d\n"
	.size	.L.str, 41

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.zero	1
	.size	.L.str.1, 1

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

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

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"KEPLER"
	.size	.L.str.4, 7

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"MAXWELL"
	.size	.L.str.5, 8

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

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

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"TURING"
	.size	.L.str.9, 7

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"AMPERE"
	.size	.L.str.10, 7

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"Device Number: %d\n"
	.size	.L.str.12, 19

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"  Device name: %s\n"
	.size	.L.str.13, 19

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"  Architecture: "
	.size	.L.str.14, 17

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

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"  MultiProccessors: %d\n"
	.size	.L.str.16, 24

	.type	.L.str.17,@object               # @.str.17
.L.str.17:
	.asciz	"  CUDA Cores (%dx%d): %d\n"
	.size	.L.str.17, 26

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"  GlobalMemory (total): %zu MiB\n"
	.size	.L.str.18, 33

	.type	.L.str.19,@object               # @.str.19
.L.str.19:
	.asciz	"  ConstMemory (total): %zu KiB\n"
	.size	.L.str.19, 32

	.type	.L.str.20,@object               # @.str.20
.L.str.20:
	.asciz	"  sharedMemPerMultiprocessor: %zu\n"
	.size	.L.str.20, 35

	.type	.L.str.21,@object               # @.str.21
.L.str.21:
	.asciz	"  regsPerMultiprocessor: %d\n"
	.size	.L.str.21, 29

	.type	.L.str.22,@object               # @.str.22
.L.str.22:
	.asciz	"  maxThreadsPerMultiProcessor: %d\n"
	.size	.L.str.22, 35

	.type	.L.str.23,@object               # @.str.23
.L.str.23:
	.asciz	"  sharedMemPerBlock: %zu\n"
	.size	.L.str.23, 26

	.type	.L.str.24,@object               # @.str.24
.L.str.24:
	.asciz	"  regsPerBlock: %d\n"
	.size	.L.str.24, 20

	.type	.L.str.25,@object               # @.str.25
.L.str.25:
	.asciz	"  maxThreadsPerBlock: %d\n"
	.size	.L.str.25, 26

	.type	.L.str.26,@object               # @.str.26
.L.str.26:
	.asciz	"    x = %d\n"
	.size	.L.str.26, 12

	.type	.L.str.27,@object               # @.str.27
.L.str.27:
	.asciz	"    y = %d\n"
	.size	.L.str.27, 12

	.type	.L.str.28,@object               # @.str.28
.L.str.28:
	.asciz	"    z = %d\n"
	.size	.L.str.28, 12

	.type	.L.str.29,@object               # @.str.29
.L.str.29:
	.asciz	"  maxThreadsDim: %d\n"
	.size	.L.str.29, 21

	.type	.L.str.30,@object               # @.str.30
.L.str.30:
	.asciz	"  maxGridSize: %d\n"
	.size	.L.str.30, 19

	.type	.L.str.31,@object               # @.str.31
.L.str.31:
	.asciz	"  warpSize: %d\n"
	.size	.L.str.31, 16

	.type	.L.str.32,@object               # @.str.32
.L.str.32:
	.asciz	"  memPitch: %d\n"
	.size	.L.str.32, 16

	.type	.L.str.33,@object               # @.str.33
.L.str.33:
	.asciz	"  Memory Clock Rate (KHz): %d\n"
	.size	.L.str.33, 31

	.type	.L.str.34,@object               # @.str.34
.L.str.34:
	.asciz	"  Memory Bus Width (bits): %d\n"
	.size	.L.str.34, 31

	.type	.L.str.35,@object               # @.str.35
.L.str.35:
	.asciz	"  Peak Memory Bandwidth (GB/s): %f\n\n"
	.size	.L.str.35, 37

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr.2,@object                 # @str.2
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr.2:
	.asciz	"Unknown device type"
	.size	.Lstr.2, 20

	.type	.Lstr.3,@object                 # @str.3
.Lstr.3:
	.asciz	"!!!!!dispositivo desconocido!!!!!"
	.size	.Lstr.3, 34

	.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 __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.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
