#define _BSD_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <sys/time.h>

#include <iostream>
#include <cstdio>

using namespace std;

#define cudaSucceeded(ans) { cudaAssert((ans), __FILE__, __LINE__); }

inline void cudaAssert(cudaError_t code, const char *file, int line, bool abort=true)
{
  if (code != cudaSuccess) {
    std::cerr << "cudaAssert failed: "
              << cudaGetErrorString(code)
              << file << ":" << line
              << std::endl;
    if (abort) {
      exit(code);
    }
  }
}

int useconds() {
  struct timeval t;
  gettimeofday(&t, NULL);
  return t.tv_sec*1000000+t.tv_usec;
}

int main() {
  for (int i = 1; i < 1<<30; i *= 2) {
    int *mem;
    const int num_tries = 100;
    int time = 0;
    int min_time = 0x7FFFFFFF;
    int max_time = 0;
    for (int j = 0; j < num_tries; j++) {
      int start = useconds();
      cudaSucceeded(cudaMalloc(&mem, i));
      cudaSucceeded(cudaMemset(mem, 0, 0));
      cudaSucceeded(cudaDeviceSynchronize());
      int aft = useconds();
      int this_time = aft-start;
      time += this_time;
      min_time = min_time < this_time ? min_time : this_time;
      max_time = max_time < this_time ? this_time : max_time;
      cudaSucceeded(cudaFree(mem));
    }
    printf("%d bytes; average: %dus; min: %dus; max: %dus\n", i, time/num_tries, min_time, max_time);
  }
}

	.file	"tmpxft_00250fb7_00000000-6_allocs.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3640:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3640:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata._Z10cudaAssert9cudaErrorPKcib.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cudaAssert failed: "
.LC1:
	.string	":"
	.section	.text._Z10cudaAssert9cudaErrorPKcib,"axG",@progbits,_Z10cudaAssert9cudaErrorPKcib,comdat
	.weak	_Z10cudaAssert9cudaErrorPKcib
	.type	_Z10cudaAssert9cudaErrorPKcib, @function
_Z10cudaAssert9cudaErrorPKcib:
.LFB3635:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L8
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	leaq	.LC0(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%edx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	%edi, %ebx
	leaq	_ZSt4cerr(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%ebx, %edi
	movq	%rax, %r14
	call	cudaGetErrorString@PLT
	movq	%r14, %rdi
	movq	%rax, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r13, %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movl	%r12d, %esi
	movq	%rax, %rdi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	testb	%bpl, %bpl
	je	.L2
	movl	%ebx, %edi
	call	exit@PLT
.L2:
	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
.L8:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE3635:
	.size	_Z10cudaAssert9cudaErrorPKcib, .-_Z10cudaAssert9cudaErrorPKcib
	.text
	.globl	_Z8usecondsv
	.type	_Z8usecondsv, @function
_Z8usecondsv:
.LFB3636:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdi
	call	gettimeofday@PLT
	imull	$1000000, 8(%rsp), %eax
	addl	16(%rsp), %eax
	movq	24(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3636:
	.size	_Z8usecondsv, .-_Z8usecondsv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/diku-dk/futhark-website/master/static/allocs.cu"
.LC3:
	.string	"%d bytes; average: %dus; min: %dus; max: %dus\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3637:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$30, %r14d
	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
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
.L16:
	movslq	%ebp, %rax
	movl	$100, %r15d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%rax, (%rsp)
	movl	$2147483647, %r12d
.L17:
	call	_Z8usecondsv
	movq	(%rsp), %rsi
	leaq	16(%rsp), %rdi
	movl	%eax, 12(%rsp)
	call	cudaMalloc@PLT
	movl	$1, %ecx
	movl	$44, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z10cudaAssert9cudaErrorPKcib
	movq	16(%rsp), %rdi
	xorl	%edx, %edx
	xorl	%esi, %esi
	call	cudaMemset@PLT
	movl	$1, %ecx
	movl	$45, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z10cudaAssert9cudaErrorPKcib
	call	cudaDeviceSynchronize@PLT
	movl	$1, %ecx
	movl	$46, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z10cudaAssert9cudaErrorPKcib
	call	_Z8usecondsv
	movl	12(%rsp), %r10d
	movq	16(%rsp), %rdi
	subl	%r10d, %eax
	addl	%eax, %ebx
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	call	cudaFree@PLT
	movl	$1, %ecx
	movl	$52, %edx
	movl	%eax, %edi
	leaq	.LC2(%rip), %rsi
	call	_Z10cudaAssert9cudaErrorPKcib
	decl	%r15d
	jne	.L17
	movl	%ebx, %eax
	movl	$100, %ecx
	movl	%r13d, %r9d
	movl	%r12d, %r8d
	cltd
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	idivl	%ecx
	movl	%ebp, %edx
	addl	%ebp, %ebp
	movl	%eax, %ecx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	decl	%r14d
	jne	.L16
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	addq	$40, %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
.LFE3637:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3663:
	.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
.LFE3663:
	.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:

#define _BSD_SOURCE

#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <sys/time.h>

#include <iostream>
#include <cstdio>

using namespace std;

#define cudaSucceeded(ans) { cudaAssert((ans), __FILE__, __LINE__); }

inline void cudaAssert(hipError_t code, const char *file, int line, bool abort=true)
{
  if (code != hipSuccess) {
    std::cerr << "cudaAssert failed: "
              << hipGetErrorString(code)
              << file << ":" << line
              << std::endl;
    if (abort) {
      exit(code);
    }
  }
}

int useconds() {
  struct timeval t;
  gettimeofday(&t, NULL);
  return t.tv_sec*1000000+t.tv_usec;
}

int main() {
  for (int i = 1; i < 1<<30; i *= 2) {
    int *mem;
    const int num_tries = 100;
    int time = 0;
    int min_time = 0x7FFFFFFF;
    int max_time = 0;
    for (int j = 0; j < num_tries; j++) {
      int start = useconds();
      cudaSucceeded(hipMalloc(&mem, i));
      cudaSucceeded(hipMemset(mem, 0, 0));
      cudaSucceeded(hipDeviceSynchronize());
      int aft = useconds();
      int this_time = aft-start;
      time += this_time;
      min_time = min_time < this_time ? min_time : this_time;
      max_time = max_time < this_time ? this_time : max_time;
      cudaSucceeded(hipFree(mem));
    }
    printf("%d bytes; average: %dus; min: %dus; max: %dus\n", i, time/num_tries, min_time, max_time);
  }
}

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

                                        # End of file scope inline assembly
	.globl	_Z8usecondsv                    # -- Begin function _Z8usecondsv
	.type	_Z8usecondsv,@function
_Z8usecondsv:                           # @_Z8usecondsv
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	imull	$1000000, (%rbx), %eax          # imm = 0xF4240
	addl	8(%rbx), %eax
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z8usecondsv, .Lfunc_end0-_Z8usecondsv
	.cfi_endproc
                                        # -- End function
	.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	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$1, %eax
	leaq	24(%rsp), %r15
.LBB1_1:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_2 Depth 2
	movl	%eax, %eax
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movl	$2147483647, %ebp               # imm = 0x7FFFFFFF
	movl	$100, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
.LBB1_2:                                #   Parent Loop BB1_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	%r12d, 4(%rsp)                  # 4-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	%r15, %rbx
	imull	$1000000, 24(%rsp), %r15d       # imm = 0xF4240
	addl	32(%rsp), %r15d
	leaq	16(%rsp), %rdi
	movq	8(%rsp), %rsi                   # 8-byte Reload
	callq	hipMalloc
	movl	$.L.str, %esi
	movl	%eax, %edi
	movl	$46, %edx
	movl	$1, %ecx
	callq	_Z10cudaAssert10hipError_tPKcib
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	hipMemset
	movl	$.L.str, %esi
	movl	%eax, %edi
	movl	$47, %edx
	movl	$1, %ecx
	callq	_Z10cudaAssert10hipError_tPKcib
	callq	hipDeviceSynchronize
	movl	$.L.str, %esi
	movl	%eax, %edi
	movl	$48, %edx
	movl	$1, %ecx
	callq	_Z10cudaAssert10hipError_tPKcib
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	imull	$1000000, 24(%rsp), %r12d       # imm = 0xF4240
	addl	32(%rsp), %r12d
	subl	%r15d, %r12d
	movq	%rbx, %r15
	addl	%r12d, %r13d
	cmpl	%r12d, %ebp
	cmovgel	%r12d, %ebp
	movl	4(%rsp), %eax                   # 4-byte Reload
	cmpl	%r12d, %eax
	cmovgl	%eax, %r12d
	movq	16(%rsp), %rdi
	callq	hipFree
	movl	$.L.str, %esi
	movl	%eax, %edi
	movl	$54, %edx
	movl	$1, %ecx
	callq	_Z10cudaAssert10hipError_tPKcib
	decl	%r14d
	jne	.LBB1_2
# %bb.3:                                #   in Loop: Header=BB1_1 Depth=1
	movslq	%r13d, %rax
	imulq	$1374389535, %rax, %rdx         # imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$37, %rdx
	addl	%eax, %edx
	movl	$.L.str.1, %edi
	movq	8(%rsp), %rbx                   # 8-byte Reload
	movl	%ebx, %esi
                                        # kill: def $edx killed $edx killed $rdx
	movl	%ebp, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	printf
	leal	(%rbx,%rbx), %eax
	cmpl	$536870912, %ebx                # imm = 0x20000000
	jb	.LBB1_1
# %bb.4:
	xorl	%eax, %eax
	addq	$40, %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._Z10cudaAssert10hipError_tPKcib,"axG",@progbits,_Z10cudaAssert10hipError_tPKcib,comdat
	.weak	_Z10cudaAssert10hipError_tPKcib # -- Begin function _Z10cudaAssert10hipError_tPKcib
	.type	_Z10cudaAssert10hipError_tPKcib,@function
_Z10cudaAssert10hipError_tPKcib:        # @_Z10cudaAssert10hipError_tPKcib
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	testl	%edi, %edi
	je	.LBB2_8
# %bb.1:
	movl	%ecx, %ebp
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.2, %esi
	movl	$19, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	%ebx, %edi
	callq	hipGetErrorString
	testq	%rax, %rax
	je	.LBB2_2
# %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	strlen
	movl	$_ZSt4cerr, %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB2_4
.LBB2_2:
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cerr(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.LBB2_4:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
	testq	%r15, %r15
	je	.LBB2_5
# %bb.6:
	movq	%r15, %rdi
	callq	strlen
	movl	$_ZSt4cerr, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	jmp	.LBB2_7
.LBB2_5:
	movq	_ZSt4cerr(%rip), %rax
	movq	-24(%rax), %rax
	leaq	_ZSt4cerr(%rax), %rdi
	movl	32(%rdi), %esi
	orl	$1, %esi
	callq	_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate
.LBB2_7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit6
	movl	$_ZSt4cerr, %edi
	movl	$.L.str.3, %esi
	movl	$1, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cerr, %edi
	movl	%r14d, %esi
	callq	_ZNSolsEi
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	testb	%bpl, %bpl
	jne	.LBB2_9
.LBB2_8:
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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
.LBB2_9:
	.cfi_def_cfa_offset 48
	movl	%ebx, %edi
	callq	exit
.Lfunc_end2:
	.size	_Z10cudaAssert10hipError_tPKcib, .Lfunc_end2-_Z10cudaAssert10hipError_tPKcib
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/diku-dk/futhark-website/master/static/allocs.hip"
	.size	.L.str, 111

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"%d bytes; average: %dus; min: %dus; max: %dus\n"
	.size	.L.str.1, 47

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"cudaAssert failed: "
	.size	.L.str.2, 20

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

	.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 _ZSt4cerr
	.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
