[Issue]: load_unload_reload_test
test fails: "Option 'disassemble' registered more than once"
#109
Labels
load_unload_reload_test
test fails: "Option 'disassemble' registered more than once"
#109
Problem Description
Hi,
I'm trying to achieve 100% test rate on roctracer, one test fails.
Participants:
This code fails on a second iteration in
hsa_init
:roctracer/test/hsa/load_unload_reload.cpp
Lines 38 to 49 in d5bbc8a
with error
: CommandLine Error: Option 'disassemble' registered more than once!
and backtrace:So what happens is that comgr-objdump.cpp registers command-line options in global vars, and attempt to reload comgr fails, as these options are never unregistered.
Searching for similar issues, miopen encountered a similar issue long time ago (even without reloading) and as a workaround they disabled second hipInit: ROCm/ROCm-CompilerSupport#30.
The issue does not reproduce when
LD_PRELOAD=./libroctracer_tool.so
is not used (so that seems to be result ofdlopen
-ed libraries).Could you provide a fix for this test or remove it (if it is obsolete)? Thanks!
Operating System
Gentoo
CPU
GPU
ROCm Version
ROCm 6.3.0
ROCm Component
roctracer
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: