diff --git a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp --- a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp +++ b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp @@ -1321,11 +1321,9 @@ host_device_env.DeviceNum = device_id; host_device_env.DebugKind = 0; host_device_env.DynamicMemSize = 0; -#ifdef OMPTARGET_DEBUG if (char *envStr = getenv("LIBOMPTARGET_DEVICE_RTL_DEBUG")) { host_device_env.DebugKind = std::stoi(envStr); } -#endif int rc = get_symbol_info_without_loading((char *)image->ImageStart, img_size, sym(), &si); diff --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp --- a/openmp/libomptarget/plugins/cuda/src/rtl.cpp +++ b/openmp/libomptarget/plugins/cuda/src/rtl.cpp @@ -892,10 +892,8 @@ static_cast(DeviceId), static_cast(DynamicMemorySize)}; -#ifdef OMPTARGET_DEBUG if (const char *EnvStr = getenv("LIBOMPTARGET_DEVICE_RTL_DEBUG")) DeviceEnv.DebugKind = std::stoi(EnvStr); -#endif const char *DeviceEnvName = "omptarget_device_environment"; CUdeviceptr DeviceEnvPtr;