#include <cstdio>
#include <cstdlib>
#include <vector>

std::vector< cudaDeviceProp > get_cuda_device() {
    std::vector< cudaDeviceProp > devices;
    int count = -1;
    cudaGetDeviceCount( & count);
    for ( int i = 0; i < count; ++i) {
        cudaDeviceProp prop;
        cudaGetDeviceProperties( & prop, i);
        devices.push_back( prop);
    }
    return devices;
}

int main() {
    std::vector< cudaDeviceProp > devs = get_cuda_device();
    for ( cudaDeviceProp dev: devs) {
        int block_8x8 = 8*8;
        int block_16x16 = 16*16;
        int block_32x32 = 32*32;

        auto sm_device = dev.multiProcessorCount;
        auto warp_size = dev.warpSize;
        auto threads_sm = dev.maxThreadsPerMultiProcessor;
        auto threads_block = dev.maxThreadsPerBlock;
        auto registers_sm = dev.regsPerMultiprocessor;
        auto shared_mem_sm = dev.sharedMemPerMultiprocessor;
        auto shared_mem_block = dev.sharedMemPerBlock;

        std::printf("SMs pro device: %d\n", sm_device);
        std::printf("max. threads pro SM: %d\n", threads_sm);
        std::printf("registers pro SM: %d\n", registers_sm);
        std::printf("shared memory pro SM: %d kB\n", shared_mem_sm / 1024);
        std::printf("max. threads pro block: %d\n", threads_block);
        std::printf("max. shared memory pro block: %d kB\n", shared_mem_block / 1024);
        std::printf("threads pro warp: %d\n", warp_size);
        std::printf("\n");

        auto fn = [threads_sm,warp_size,registers_sm,shared_mem_sm](int threads_block){
                int blocks_sm = threads_sm / threads_block;
                int warps_block = threads_block / warp_size;
                int shared_mem_block = shared_mem_sm / blocks_sm;

                std::printf("threads pro block: %d\n", threads_block);
                std::printf("blocks pro SM: %d\n", blocks_sm);
                std::printf("warps pro block: %d\n", warps_block);
                std::printf("shared memory pro block: %d kB\n", shared_mem_block / 1024);
                std::printf("\n");
        };

        fn( block_8x8);
        fn( block_16x16);
        fn( block_32x32);
    }
    return EXIT_SUCCESS;
}

	.file	"tmpxft_002451af_00000000-6_device.cudafe1.cpp"
	.text
#APP

	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"threads pro block: %d\n"
.LC1:
	.string	"blocks pro SM: %d\n"
.LC2:
	.string	"warps pro block: %d\n"
.LC3:
	.string	"shared memory pro block: %d kB\n"
.LC4:
	.string	"\n"
#NO_APP
	.text
	.align 2
	.type	_ZZ4mainENKUliE_clEi, @function
_ZZ4mainENKUliE_clEi:
.LFB2915:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movl	(%rdi), %eax
	cltd
	idivl	%esi
	movslq	%eax, %rcx
	movl	%esi, %eax
	cltd
	movq	%rcx, %rbx
	idivl	4(%rdi)
	xorl	%edx, %edx
	movl	%eax, %r15d
	movq	16(%rdi), %rax
	movl	$2, %edi
	divq	%rcx
	movl	%esi, %edx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %r14
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebx, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	movl	%r15d, %edx
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movl	%r14d, %eax
	movl	$1024, %ecx
	leaq	.LC3(%rip), %rsi
	cltd
	movl	$2, %edi
	idivl	%ecx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_def_cfa_offset 24
	leaq	.LC4(%rip), %rsi
	popq	%r14
	.cfi_def_cfa_offset 16
	movl	$2, %edi
	xorl	%eax, %eax
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE2915:
	.size	_ZZ4mainENKUliE_clEi, .-_ZZ4mainENKUliE_clEi
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2918:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2918:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2941:
	.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
.LFE2941:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI14cudaDevicePropSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev
	.type	_ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev, @function
_ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev:
.LFB2999:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L6
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L6:
	ret
	.cfi_endproc
.LFE2999:
	.size	_ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev, .-_ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev
	.weak	_ZNSt6vectorI14cudaDevicePropSaIS0_EED1Ev
	.set	_ZNSt6vectorI14cudaDevicePropSaIS0_EED1Ev,_ZNSt6vectorI14cudaDevicePropSaIS0_EED2Ev
	.section	.rodata._ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_.str1.1,"aMS",@progbits,1
.LC5:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.type	_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, @function
_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_:
.LFB3062:
	.cfi_startproc
	endbr64
	movabsq	$-9151873028817141887, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %rbp
	movq	(%rdi), %r12
	movq	%rsi, (%rsp)
	movq	%rdx, %rsi
	movabsq	$8937376004704240, %rdx
	movq	%rbp, %rbx
	subq	%r12, %rbx
	sarq	$3, %rbx
	imulq	%rax, %rbx
	cmpq	%rdx, %rbx
	jne	.L10
	leaq	.LC5(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L10:
	cmpq	%r12, %rbp
	movl	$1, %eax
	movq	(%rsp), %r15
	movq	%rdi, %r14
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r12, %r15
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L20
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	je	.L15
	movabsq	$8937376004704240, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L14
.L20:
	movq	%rdx, %rbx
.L14:
	imulq	$1032, %rbx, %rdi
	movq	%rsi, 8(%rsp)
	call	_Znwm@PLT
	movq	8(%rsp), %rsi
	movq	%rax, %r13
.L15:
	leaq	0(%r13,%r15), %rdi
	movl	$258, %ecx
	rep movsl
	testq	%r15, %r15
	jle	.L16
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	memmove@PLT
.L16:
	movq	(%rsp), %rcx
	leaq	1032(%r13,%r15), %rax
	subq	%rcx, %rbp
	testq	%rbp, %rbp
	jle	.L17
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movq	%rbp, %rcx
	rep movsb
.L17:
	addq	%rax, %rbp
	testq	%r12, %r12
	je	.L18
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	subq	%r12, %rsi
	call	_ZdlPvm@PLT
.L18:
	imulq	$1032, %rbx, %rbx
	movq	%r13, (%r14)
	movq	%rbp, 8(%r14)
	leaq	0(%r13,%rbx), %r9
	movq	%r9, 16(%r14)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3062:
	.size	_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .-_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.text
	.globl	_Z15get_cuda_devicev
	.type	_Z15get_cuda_devicev, @function
_Z15get_cuda_devicev:
.LFB2896:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2896
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	subq	$1056, %rsp
	.cfi_def_cfa_offset 1088
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	xorl	%eax, %eax
	movl	$-1, 12(%rsp)
	movq	%rax, (%rdi)
	movq	%rax, 8(%rdi)
	movq	%rax, 16(%rdi)
	leaq	12(%rsp), %rdi
.LEHB0:
	call	cudaGetDeviceCount@PLT
	xorl	%ebp, %ebp
	leaq	16(%rsp), %r12
.L28:
	cmpl	%ebp, 12(%rsp)
	jle	.L41
	movl	%ebp, %esi
	movq	%r12, %rdi
	call	cudaGetDeviceProperties_v2@PLT
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	je	.L29
	movl	$258, %ecx
	movq	%rax, %rdi
	movq	%r12, %rsi
	rep movsl
	addq	$1032, 8(%rbx)
	jmp	.L30
.L29:
	movq	%r12, %rdx
	movq	%rax, %rsi
	movq	%rbx, %rdi
	call	_ZNSt6vectorI14cudaDevicePropSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LEHE0:
.L30:
	incl	%ebp
	jmp	.L28
.L36:
	endbr64
	movq	%rax, %rbp
.L32:
	movq	%rbx, %rdi
	call	_ZNSt6vectorI14cudaDevicePropSaIS0_EED1Ev
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	movq	%rbp, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L41:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	je	.L34
.L40:
	call	__stack_chk_fail@PLT
.L34:
	addq	$1056, %rsp
	.cfi_def_cfa_offset 32
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2896:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA2896:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2896-.LLSDACSB2896
.LLSDACSB2896:
	.uleb128 .LEHB0-.LFB2896
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L36-.LFB2896
	.uleb128 0
	.uleb128 .LEHB1-.LFB2896
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE2896:
	.text
	.size	_Z15get_cuda_devicev, .-_Z15get_cuda_devicev
	.section	.rodata.str1.1
.LC6:
	.string	"SMs pro device: %d\n"
.LC7:
	.string	"max. threads pro SM: %d\n"
.LC8:
	.string	"registers pro SM: %d\n"
.LC9:
	.string	"shared memory pro SM: %d kB\n"
.LC10:
	.string	"max. threads pro block: %d\n"
.LC11:
	.string	"max. shared memory pro block: %d kB\n"
.LC12:
	.string	"threads pro warp: %d\n"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB2914:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA2914
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB2:
	call	_Z15get_cuda_devicev
.LEHE2:
	movq	48(%rsp), %rax
	movq	40(%rsp), %rbx
	movq	%rax, 24(%rsp)
.L43:
	cmpq	%rbx, 24(%rsp)
	je	.L51
	movl	320(%rbx), %eax
	movl	388(%rbx), %edx
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	movq	296(%rbx), %rbp
	movl	308(%rbx), %r14d
	movl	%eax, 20(%rsp)
	xorl	%eax, %eax
	movl	624(%rbx), %r15d
	movq	640(%rbx), %r12
	movl	648(%rbx), %r13d
.LEHB3:
	call	__printf_chk@PLT
	movl	%r15d, %edx
	leaq	.LC7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edx
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rdx
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	shrq	$10, %rdx
	call	__printf_chk@PLT
	movl	20(%rsp), %edx
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdx
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	shrq	$10, %rdx
	call	__printf_chk@PLT
	movl	%r14d, %edx
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	.LC4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	64(%rsp), %rbp
	movl	$64, %esi
	movl	%r15d, 64(%rsp)
	movq	%rbp, %rdi
	movl	%r14d, 68(%rsp)
	movl	%r13d, 72(%rsp)
	movq	%r12, 80(%rsp)
	call	_ZZ4mainENKUliE_clEi
	movl	$256, %esi
	movq	%rbp, %rdi
	call	_ZZ4mainENKUliE_clEi
	movl	$1024, %esi
	movq	%rbp, %rdi
	call	_ZZ4mainENKUliE_clEi
.LEHE3:
	addq	$1032, %rbx
	jmp	.L43
.L51:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorI14cudaDevicePropSaIS0_EED1Ev
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L47
	jmp	.L49
.L48:
	endbr64
	movq	%rax, %rbx
.L45:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorI14cudaDevicePropSaIS0_EED1Ev
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L49:
	call	__stack_chk_fail@PLT
.L47:
	addq	$104, %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
.LFE2914:
	.section	.gcc_except_table
.LLSDA2914:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE2914-.LLSDACSB2914
.LLSDACSB2914:
	.uleb128 .LEHB2-.LFB2914
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB3-.LFB2914
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L48-.LFB2914
	.uleb128 0
	.uleb128 .LEHB4-.LFB2914
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE2914:
	.section	.text.startup
	.size	main, .-main
	.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
	.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 <cstdio>
#include <cstdlib>
#include <vector>

std::vector< hipDeviceProp_t > get_cuda_device() {
    std::vector< hipDeviceProp_t > devices;
    int count = -1;
    hipGetDeviceCount( & count);
    for ( int i = 0; i < count; ++i) {
        hipDeviceProp_t prop;
        hipGetDeviceProperties( & prop, i);
        devices.push_back( prop);
    }
    return devices;
}

int main() {
    std::vector< hipDeviceProp_t > devs = get_cuda_device();
    for ( hipDeviceProp_t dev: devs) {
        int block_8x8 = 8*8;
        int block_16x16 = 16*16;
        int block_32x32 = 32*32;

        auto sm_device = dev.multiProcessorCount;
        auto warp_size = dev.warpSize;
        auto threads_sm = dev.maxThreadsPerMultiProcessor;
        auto threads_block = dev.maxThreadsPerBlock;
        auto registers_sm = dev.regsPerMultiprocessor;
        auto shared_mem_sm = dev.sharedMemPerMultiprocessor;
        auto shared_mem_block = dev.sharedMemPerBlock;

        std::printf("SMs pro device: %d\n", sm_device);
        std::printf("max. threads pro SM: %d\n", threads_sm);
        std::printf("registers pro SM: %d\n", registers_sm);
        std::printf("shared memory pro SM: %d kB\n", shared_mem_sm / 1024);
        std::printf("max. threads pro block: %d\n", threads_block);
        std::printf("max. shared memory pro block: %d kB\n", shared_mem_block / 1024);
        std::printf("threads pro warp: %d\n", warp_size);
        std::printf("\n");

        auto fn = [threads_sm,warp_size,registers_sm,shared_mem_sm](int threads_block){
                int blocks_sm = threads_sm / threads_block;
                int warps_block = threads_block / warp_size;
                int shared_mem_block = shared_mem_sm / blocks_sm;

                std::printf("threads pro block: %d\n", threads_block);
                std::printf("blocks pro SM: %d\n", blocks_sm);
                std::printf("warps pro block: %d\n", warps_block);
                std::printf("shared memory pro block: %d kB\n", shared_mem_block / 1024);
                std::printf("\n");
        };

        fn( block_8x8);
        fn( block_16x16);
        fn( block_32x32);
    }
    return EXIT_SUCCESS;
}

	.text
	.file	"device.hip"
	.globl	_Z15get_cuda_devicev            # -- Begin function _Z15get_cuda_devicev
	.type	_Z15get_cuda_devicev,@function
_Z15get_cuda_devicev:                   # @_Z15get_cuda_devicev
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:                                # %.preheader
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$1480, %rsp                     # imm = 0x5C8
	.cfi_def_cfa_offset 1520
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	leaq	4(%rsp), %r14
	movl	$-1, (%r14)
	movq	%r14, %rdi
	callq	hipGetDeviceCount
	cmpl	$0, (%r14)
	jle	.LBB0_7
# %bb.1:                                # %.lr.ph
	xorl	%ebp, %ebp
	leaq	8(%rsp), %r14
.LBB0_2:                                # =>This Inner Loop Header: Depth=1
.Ltmp0:
	movq	%r14, %rdi
	movl	%ebp, %esi
	callq	hipGetDevicePropertiesR0600
.Ltmp1:
# %bb.3:                                #   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r15
	cmpq	16(%rbx), %r15
	je	.LBB0_5
# %bb.4:                                #   in Loop: Header=BB0_2 Depth=1
	movl	$1472, %edx                     # imm = 0x5C0
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	memcpy@PLT
	addq	$1472, %r15                     # imm = 0x5C0
	movq	%r15, 8(%rbx)
	jmp	.LBB0_6
.LBB0_5:                                #   in Loop: Header=BB0_2 Depth=1
.Ltmp2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp3:
.LBB0_6:                                # %_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE9push_backERKS0_.exit
                                        #   in Loop: Header=BB0_2 Depth=1
	incl	%ebp
	cmpl	4(%rsp), %ebp
	jl	.LBB0_2
.LBB0_7:                                # %._crit_edge
	movq	%rbx, %rax
	addq	$1480, %rsp                     # imm = 0x5C8
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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_8:
	.cfi_def_cfa_offset 1520
.Ltmp4:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB0_10
# %bb.9:
	callq	_ZdlPv
.LBB0_10:                               # %_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	_Z15get_cuda_devicev, .Lfunc_end0-_Z15get_cuda_devicev
	.cfi_endproc
	.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 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp1-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp2-.Ltmp1                  #   Call between .Ltmp1 and .Ltmp2
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp2-.Lfunc_begin0           # >> Call Site 4 <<
	.uleb128 .Ltmp3-.Ltmp2                  #   Call between .Ltmp2 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 5 <<
	.uleb128 .Lfunc_end0-.Ltmp3             #   Call between .Ltmp3 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.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	$56, %rsp
	.cfi_def_cfa_offset 112
	.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	32(%rsp), %r14
	movq	%r14, %rdi
	callq	_Z15get_cuda_devicev
	movq	(%r14), %rbx
	movq	8(%r14), %rax
	cmpq	%rax, %rbx
	je	.LBB1_4
# %bb.1:
	movq	%rax, 24(%rsp)                  # 8-byte Spill
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movl	624(%rbx), %r13d
	movl	$1023, %eax                     # imm = 0x3FF
	addl	%r13d, %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	movl	%eax, 20(%rsp)                  # 4-byte Spill
	leal	255(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	movl	%eax, 16(%rsp)                  # 4-byte Spill
	leal	63(%r13), %r12d
	testl	%r13d, %r13d
	movq	296(%rbx), %r15
	movl	308(%rbx), %eax
	movl	%eax, 12(%rsp)                  # 4-byte Spill
	movl	320(%rbx), %eax
	movl	%eax, 8(%rsp)                   # 4-byte Spill
	movl	388(%rbx), %esi
	movq	640(%rbx), %rbp
	movl	648(%rbx), %r14d
	cmovnsl	%r13d, %r12d
	movl	$.L.str, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.1, %edi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.2, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	movq	%rbp, %r13
	movq	%rbp, %rsi
	shrq	$10, %rsi
	movl	$.L.str.3, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.4, %edi
	movl	8(%rsp), %esi                   # 4-byte Reload
	xorl	%eax, %eax
	callq	printf
	shrq	$10, %r15
	movl	$.L.str.5, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.6, %edi
	movl	12(%rsp), %ebp                  # 4-byte Reload
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$10, %edi
	callq	putchar@PLT
	sarl	$6, %r12d
	movslq	%r12d, %r14
	movl	$64, %eax
	xorl	%edx, %edx
	idivl	%ebp
	movl	%eax, %r15d
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %r12
	movl	$.L.str.8, %edi
	movl	$64, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.9, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.10, %edi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$1023, %eax                     # imm = 0x3FF
	leal	(%r12,%rax), %esi
	testl	%r12d, %r12d
	cmovnsl	%r12d, %esi
	sarl	$10, %esi
	movl	$.L.str.11, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$10, %edi
	callq	putchar@PLT
	movl	16(%rsp), %eax                  # 4-byte Reload
	sarl	$8, %eax
	movslq	%eax, %r14
	movl	$256, %eax                      # imm = 0x100
	xorl	%edx, %edx
	idivl	%ebp
	movl	%eax, %r15d
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %r12
	movl	$.L.str.8, %edi
	movl	$256, %esi                      # imm = 0x100
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.9, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.10, %edi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$1023, %eax                     # imm = 0x3FF
	leal	(%r12,%rax), %esi
	testl	%r12d, %r12d
	cmovnsl	%r12d, %esi
	sarl	$10, %esi
	movl	$.L.str.11, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$10, %edi
	callq	putchar@PLT
	movl	20(%rsp), %ecx                  # 4-byte Reload
	sarl	$10, %ecx
	movl	$1024, %eax                     # imm = 0x400
	xorl	%edx, %edx
	idivl	%ebp
	movl	%eax, %ebp
	movslq	%ecx, %r14
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %r15
	movl	$.L.str.8, %edi
	movl	$1024, %esi                     # imm = 0x400
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.9, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.10, %edi
	movl	%ebp, %esi
	xorl	%eax, %eax
	callq	printf
	movl	$1023, %eax                     # imm = 0x3FF
	leal	(%r15,%rax), %esi
	testl	%r15d, %r15d
	cmovnsl	%r15d, %esi
	sarl	$10, %esi
	movl	$.L.str.11, %edi
	xorl	%eax, %eax
	callq	printf
	movl	$10, %edi
	callq	putchar@PLT
	movq	24(%rsp), %rax                  # 8-byte Reload
	addq	$1472, %rbx                     # imm = 0x5C0
	cmpq	%rax, %rbx
	jne	.LBB1_2
# %bb.3:                                # %._crit_edge.loopexit
	movq	32(%rsp), %rbx
.LBB1_4:                                # %._crit_edge
	testq	%rbx, %rbx
	je	.LBB1_6
# %bb.5:
	movq	%rbx, %rdi
	callq	_ZdlPv
.LBB1_6:                                # %_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EED2Ev.exit
	xorl	%eax, %eax
	addq	$56, %rsp
	.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_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.weak	_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # -- Begin function _ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,@function
_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_: # @_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.12, %edx
	callq	_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc
	movq	(%rbx), %r13
	movq	8(%rbx), %r15
	movq	%r12, 8(%rsp)                   # 8-byte Spill
	subq	%r13, %r12
	movq	%r12, %rcx
	sarq	$6, %rcx
	movabsq	$-3208129404123400281, %r14     # imm = 0xD37A6F4DE9BD37A7
	imulq	%rcx, %r14
	testq	%rax, %rax
	movq	%rax, 16(%rsp)                  # 8-byte Spill
	je	.LBB2_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv
	movq	%rax, %rbp
	jmp	.LBB2_3
.LBB2_1:
	xorl	%ebp, %ebp
.LBB2_3:                                # %_ZNSt12_Vector_baseI20hipDeviceProp_tR0600SaIS0_EE11_M_allocateEm.exit
	imulq	$1472, %r14, %rdi               # imm = 0x5C0
	addq	%rbp, %rdi
	movl	$1472, %edx                     # imm = 0x5C0
	movq	(%rsp), %rsi                    # 8-byte Reload
	callq	memcpy@PLT
	testq	%r12, %r12
	jle	.LBB2_5
# %bb.4:
	movq	%rbp, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	memmove@PLT
.LBB2_5:                                # %_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit
	addq	%rbp, %r12
	addq	$1472, %r12                     # imm = 0x5C0
	movq	8(%rsp), %rsi                   # 8-byte Reload
	subq	%rsi, %r15
	testq	%r15, %r15
	jle	.LBB2_7
# %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	memmove@PLT
.LBB2_7:                                # %_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit16
	testq	%r13, %r13
	je	.LBB2_9
# %bb.8:
	movq	%r13, %rdi
	callq	_ZdlPv
.LBB2_9:                                # %_ZNSt12_Vector_baseI20hipDeviceProp_tR0600SaIS0_EE13_M_deallocateEPS0_m.exit
	addq	%r15, %r12
	movq	%rbp, (%rbx)
	movq	%r12, 8(%rbx)
	imulq	$1472, 16(%rsp), %rax           # 8-byte Folded Reload
                                        # imm = 0x5C0
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.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_end2:
	.size	_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .Lfunc_end2-_ZNSt6vectorI20hipDeviceProp_tR0600SaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$6265877742428516, %rcx         # imm = 0x1642C8590B2164
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$6, %rax
	movabsq	$-3208129404123400281, %rdi     # imm = 0xD37A6F4DE9BD37A7
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB3_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB3_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end3:
	.size	_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc, .Lfunc_end3-_ZNKSt6vectorI20hipDeviceProp_tR0600SaIS0_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv,@function
_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv: # @_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$6265877742428517, %rax         # imm = 0x1642C8590B2165
	cmpq	%rax, %rsi
	jae	.LBB4_1
# %bb.3:
	imulq	$1472, %rsi, %rdi               # imm = 0x5C0
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB4_1:
	.cfi_def_cfa_offset 16
	movabsq	$12531755484857033, %rax        # imm = 0x2C8590B21642C9
	cmpq	%rax, %rsi
	jb	.LBB4_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB4_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end4:
	.size	_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv, .Lfunc_end4-_ZNSt15__new_allocatorI20hipDeviceProp_tR0600E8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"SMs pro device: %d\n"
	.size	.L.str, 20

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"max. threads pro SM: %d\n"
	.size	.L.str.1, 25

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"registers pro SM: %d\n"
	.size	.L.str.2, 22

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"shared memory pro SM: %d kB\n"
	.size	.L.str.3, 29

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"max. threads pro block: %d\n"
	.size	.L.str.4, 28

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"max. shared memory pro block: %d kB\n"
	.size	.L.str.5, 37

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"threads pro warp: %d\n"
	.size	.L.str.6, 22

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"threads pro block: %d\n"
	.size	.L.str.8, 23

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"blocks pro SM: %d\n"
	.size	.L.str.9, 19

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"warps pro block: %d\n"
	.size	.L.str.10, 21

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"shared memory pro block: %d kB\n"
	.size	.L.str.11, 32

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.12, 26

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

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.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
