omniprobe icon indicating copy to clipboard operation
omniprobe copied to clipboard

Compiler crash when using `thrust::device_vector`

Open mawad-amd opened this issue 1 year ago • 2 comments

Code:

//thrust_example.hip
#include "dh_comms_dev.h"

#include <thrust/device_vector.h>

int main() {
    thrust::device_vector<float> d_out(1);
}

Compile with

hipcc -Wno-unused-result\
        -I /opt/logduration/include/kerneldb\
        -I /opt/logduration/include/dh_comms\
        -I /opt/rocm/include/hsa -fgpu-rdc\
        -fpass-plugin=/opt/logduration/lib/libAMDGCNMemTraceHip.so\
        -O3 -g -o thrust_example thrust_example.hip

I get the following crash:

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /opt/rocm-6.3.2/lib/llvm/bin/clang-18 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -dumpdir thrust_example- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name thrust_example.hip -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -fcuda-is-device -fcuda-allow-variadic-functions -fvisibility=hidden -fapply-global-visibility-to-externs -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_wavefrontsize64_on.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_isa_version_90a.bc -mlink-builtin-bitcode /opt/rocm-6.3.2/lib/llvm/lib/clang/18/lib/amdgcn/bitcode/oclc_abi_version_500.bc -target-cpu gfx90a -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb -mllvm -amdgpu-spill-cfi-saved-regs -gheterogeneous-dwarf=diexpr -fdebug-compilation-dir=/work1/amd/muhaawad/git/amd/audacious/maestro/bugs -resource-dir /opt/rocm-6.3.2/lib/llvm/lib/clang/18 -internal-isystem /opt/rocm-6.3.2/lib/llvm/lib/clang/18/include/cuda_wrappers -idirafter /opt/rocm-6.3.2/lib/llvm/bin/../../../include -include __clang_hip_runtime_wrapper.h -I /opt/logduration/include/kerneldb -I /opt/logduration/include/dh_comms -I /opt/rocm/include/hsa -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/x86_64-linux-gnu/c++/11 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/backward -internal-isystem /opt/rocm-6.3.2/lib/llvm/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/rocm-6.3.2/lib/llvm/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-unused-result -fdeprecated-macro -fno-autolink -ferror-limit 19 -fhip-new-launch-api -fgpu-rdc -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -fpass-plugin=/opt/logduration/lib/libAMDGCNMemTraceHip.so -cuid=39a2dfc489a9c8d0 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/thrust_example-gfx90a-45c16d.bc -x hip thrust_example.hip
1.      <eof> parser at end of file
2.      Optimizer
 #0 0x000055b0c48f8610 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x25a6610)
 #1 0x000055b0c48f5bde SignalHandler(int) Signals.cpp:0:0
 #2 0x00007f275a669520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x00007f275a5e449c llvm::DILocation::getLine() const /opt/rocm/llvm/include/llvm/IR/DebugInfoMetadata.h:1969:37
 #4 0x00007f275a5dcf1c void InjectInstrumentationFunction<llvm::LoadInst>(llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void, true>, false, false> const&, llvm::Function const&, llvm::Module&, unsigned int&, llvm::Value*, bool) /root/logduration/external/instrument-amdgpu-kernels/lib/AMDGCNMemTraceHip.cpp:82:44
 #5 0x00007f275a5d2e0d (anonymous namespace)::AMDGCNMemTraceHip::runOnModule(llvm::Module&) /root/logduration/external/instrument-amdgpu-kernels/lib/AMDGCNMemTraceHip.cpp:166:11
 #6 0x00007f275a5d2410 (anonymous namespace)::AMDGCNMemTraceHip::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /root/logduration/external/instrument-amdgpu-kernels/lib/../include/AMDGCNMemTraceHip.h:14:10
 #7 0x00007f275a5d2334 llvm::detail::PassModel<llvm::Module, (anonymous namespace)::AMDGCNMemTraceHip, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /opt/rocm/llvm/include/llvm/IR/PassManagerInternal.h:89:17
 #8 0x000055b0c42e40b7 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x1f920b7)
 #9 0x000055b0c4b4ca02 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) BackendUtil.cpp:0:0
#10 0x000055b0c4b4fcc3 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x27fdcc3)
#11 0x000055b0c5115d14 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x2dc3d14)
#12 0x000055b0c6998c69 clang::ParseAST(clang::Sema&, bool, bool) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x4646c69)
#13 0x000055b0c53cdf31 clang::FrontendAction::Execute() (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x307bf31)
#14 0x000055b0c534ab59 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x2ff8b59)
#15 0x000055b0c54919a8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0x313f9a8)
#16 0x000055b0c30035c0 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0xcb15c0)
#17 0x000055b0c2ffbb2d ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#18 0x000055b0c2fff553 clang_main(int, char**, llvm::ToolContext const&) (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0xcad553)
#19 0x000055b0c2f3a55b main (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0xbe855b)
#20 0x00007f275a650d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#21 0x00007f275a650e40 call_init ./csu/../csu/libc-start.c:128:20
#22 0x00007f275a650e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#23 0x000055b0c2ffa965 _start (/opt/rocm-6.3.2/lib/llvm/bin/clang-18+0xca8965)
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/lib/llvm/bin
Configuration file: /opt/rocm-6.3.2/lib/llvm/bin/clang++.cfg
clang++: note: diagnostic msg: Error generating preprocessed source(s).
failed to execute:/opt/rocm/lib/llvm/bin/clang++  --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --driver-mode=g++ --hip-link --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a --offload-arch=gfx90a  -Wno-unused-result -I /opt/logduration/include/kerneldb -I /opt/logduration/include/dh_comms -I /opt/rocm/include/hsa -fgpu-rdc -fpass-plugin=/opt/logduration/lib/libAMDGCNMemTraceHip.so -O3 -g -o "thrust_example" -x hip thrust_example.hip

I can provide more details on the environment, let me know.

mawad-amd avatar Feb 27 '25 20:02 mawad-amd

Figured out what this is. It turns out that loads and/or stores in Thrust code don't always have debug information associated. If that happens, in the instrumentation code, the pointer to the debug info is a null pointer. Subsequent dereferencing of that pointer caused the crash.

I fixed that by checking the pointer, and if it is null, setting the source file to "", and the line and column to zero. With that change, compilation succeeds:

[rvanoo@snell:~/tmp/thrust] $ hipcc -Wno-unused-result -fgpu-rdc -fpass-plugin=/home/rvanoo/.local/lib/libAMDGCNSubmitAddressMessages-rocm.so -O3 -g -o thrust_example thrust_example.hip Linking device module from /home/rvanoo/.local/lib/dh_comms_dev.bc into GPU module Injecting Mem Trace Function Into AMDGPU Kernel: __amd_crk__ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_Pv <unknown source file>:0:0 0 __amd_crk__ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_Pv <unknown source file>:0:0 CONSTANT LOAD Injecting Mem Trace Function Into AMDGPU Kernel: __amd_crk__ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_Pv <unknown source file>:0:0 1 __amd_crk__ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_Pv <unknown source file>:0:0 CONSTANT LOAD Injecting Mem Trace Function Into AMDGPU Kernel: __amd_crk__ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_Pv /opt/rocm-6.3.1/lib/llvm/bin/../../../include/thrust/system/hip/detail/uninitialized_fill.h:65:13 2 __amd_crk__ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_Pv /opt/rocm-6.3.1/lib/llvm/bin/../../../include/thrust/system/hip/detail/uninitialized_fill.h:65:13 FLAT STORE

(note the name change for the instrumentation plugin).

I don't quite understand why no debug info would be available for some loads/stores, since Thrust is a header-only library. May or may not have to do with the heavy use of templates by Thrust.

Changes will soon be available in a repository near you.

rwvo avatar Mar 10 '25 21:03 rwvo

Yeah, I just noticed the missing mapping in KernelDB (note the parallel_for.h:0) but some lines have their correct mapping. Not sure what is going on in here. I will ask Keith too.

[INFO]: [src/nexus.cpp:87] Kernel: void thrust::hip_rocprim::__parallel_for::kernel<256u, thrust::hip_rocprim::__uninitialized_fill::functor<thrust::device_ptr<float>, float>, unsigned long, 1u>(thrust::hip_rocprim::__uninitialized_fill::functor<thrust::device_ptr<float>, float>, unsigned long, unsigned long)
[INFO]: [src/nexus.cpp:88] Number of lines: 3
[INFO]: [src/nexus.cpp:89] Filename: /opt/rocm-6.3.1/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h
[INFO]: [src/nexus.cpp:94] /opt/rocm-6.3.1/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:0 ->   s_load_dwordx2 s[2:3], s[4:5], 0x0                         // 000000002354: C0060082 00000000 
[INFO]: [src/nexus.cpp:94] /opt/rocm-6.3.1/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:0 ->   s_load_dword s6, s[4:5], 0x8                               // 00000000235C: C0020182 00000008 
[INFO]: [src/nexus.cpp:94] /opt/rocm-6.3.1/lib/llvm/bin/../../../include/thrust/system/hip/detail/uninitialized_fill.h:65 ->    flat_store_dword v[0:1], v2                                // 000000002388: DC700000 00000200 
[INFO]: [src/nexus.cpp:94] /opt/rocm-6.3.1/lib/llvm/bin/../../../include/hip/amd_detail/amd_hip_runtime.h:270 ->        s_load_dwordx4 s[8:11], s[4:5], 0x10                       // 000000002300: C00A0202 00000010 

Also, the GCN assembly compiler output (from --savetemps) contains the correct mapping:

	.section	.text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_,"axG",@progbits,_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_,comdat
	.protected	_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_ ; -- Begin function _ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_
	.globl	_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_
	.p2align	8
	.type	_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_,@function
_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_: ; @_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_
.Lfunc_begin1:
	.cfi_startproc
; %bb.0:
	.cfi_escape 0x0f, 0x04, 0x30, 0x36, 0xe9, 0x02 ; 
	.cfi_undefined 16
	.loc	23 270 116 prologue_end         ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/hip/amd_detail/amd_hip_runtime.h:270:116
	s_load_dwordx4 s[8:11], s[4:5], 0x10
.Ltmp9:
	.file	25 "/opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail" "parallel_for.h"
	.loc	25 63 37                        ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:63:37
	s_lshl_b32 s0, s6, 8
	.loc	25 66 13                        ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:66:13
	v_mov_b32_e32 v2, 0x100
	v_mov_b32_e32 v3, 0
	.loc	25 64 49                        ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:64:49
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s10
	s_addc_u32 s1, 0, s11
	s_sub_u32 s2, s8, s0
	s_subb_u32 s3, s9, s1
	.loc	25 66 13                        ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:66:13
	v_cmp_lt_u64_e32 vcc, s[2:3], v[2:3]
	s_and_b64 s[6:7], vcc, exec
	s_cselect_b32 s6, s2, 0x100
.Ltmp10:
	.loc	25 68 26                        ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:68:26
	s_cmpk_eq_i32 s6, 0x100
	s_cselect_b64 s[2:3], -1, 0
	v_cmp_gt_u32_e32 vcc, s6, v0
.Ltmp11:
	.loc	25 68 12 is_stmt 0              ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:68:12
	s_or_b64 s[2:3], s[2:3], vcc
	s_and_saveexec_b64 s[6:7], s[2:3]
	s_cbranch_execz .LBB1_2
; %bb.1:                                ; %.critedge24.sink.split
	.loc	25 0 12                         ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:0:12
	s_load_dwordx2 s[2:3], s[4:5], 0x0
	s_load_dword s6, s[4:5], 0x8
.Ltmp12:
	.loc	16 205 54 is_stmt 1             ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/iterator/iterator_adaptor.h:205:54
	s_lshl_b64 s[0:1], s[0:1], 2
	v_lshlrev_b32_e32 v0, 2, v0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	v_mov_b32_e32 v1, s1
	v_add_co_u32_e32 v0, vcc, s0, v0
	v_addc_co_u32_e32 v1, vcc, 0, v1, vcc
.Ltmp13:
	.file	26 "/opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail" "uninitialized_fill.h"
	.loc	26 65 13                        ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/uninitialized_fill.h:65:13
	v_mov_b32_e32 v2, s6
	flat_store_dword v[0:1], v2
.Ltmp14:
.LBB1_2:                                ; %.critedge24
	.loc	25 87 5                         ; /opt/rocm-6.3.2/lib/llvm/bin/../../../include/thrust/system/hip/detail/parallel_for.h:87:5
	s_endpgm
.Ltmp15:
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 32
		.amdhsa_user_sgpr_count 6
		.amdhsa_user_sgpr_private_segment_buffer 1
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_flat_scratch_init 0
		.amdhsa_user_sgpr_kernarg_preload_length  0
		.amdhsa_user_sgpr_kernarg_preload_offset  0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_system_sgpr_private_segment_wavefront_offset 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 4
		.amdhsa_next_free_sgpr 12
		.amdhsa_accum_offset 4
		.amdhsa_reserve_flat_scratch 0
		.amdhsa_reserve_xnack_mask 1
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_tg_split 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_,"axG",@progbits,_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_,comdat
.Lfunc_end1:
	.size	_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_, .Lfunc_end1-_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIfEEfEEmLj1EEEvT0_T1_S9_
	.cfi_endproc
	.file	27 "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits" "stl_iterator_base_types.h"
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; NumSgprs: 16
; NumVgprs: 4
; NumAgprs: 0
; TotalNumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 16
; NumVGPRsForWavesPerEU: 4
; AccumOffset: 4
; Occupancy: 8
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 6
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
; COMPUTE_PGM_RSRC3_GFX90A:ACCUM_OFFSET: 0
; COMPUTE_PGM_RSRC3_GFX90A:TG_SPLIT: 0

mawad-amd avatar Mar 11 '25 17:03 mawad-amd