Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
ab851e6
Add compressed clusters to O2 track count print
davidrohr Nov 23, 2026
4a73ed9
Improve ROCm version check, detection of ROCM_PATH, bump minimum vers…
davidrohr Nov 23, 2026
fd4b788
GPU: Remove duplicate math constant
davidrohr Nov 23, 2026
f67efeb
GPU: Remove obsolete TODO on HIP address spaces
davidrohr Nov 23, 2026
68d538b
GPU: Remove obsolete function
davidrohr Nov 23, 2026
21dd9c1
GPU: Remove obsolete workaround for CUDA bug
davidrohr Nov 23, 2026
efa1f9d
GPU: Can use builtins for OpenCL SPIR-V now
davidrohr Nov 23, 2026
87ef8cb
GPU: Fix namespace for gGPUConstantMemBuffer
davidrohr Nov 23, 2026
db10421
GPU: Move some tracking-related code from GPUReconstruction to GPUCha…
davidrohr Nov 23, 2026
3b4762d
GPU: Add overflow check for GPU direct memory
davidrohr Nov 23, 2026
b34a0d3
GPU: Ensure alignment and ordering of GPUParam occupancy struct
davidrohr Nov 23, 2026
7898ea4
GPU: Get rid of gpu_reconstruction_kernels namespace
davidrohr Nov 23, 2026
222a908
GPU: Clean up leftovers from hipify conversion
davidrohr Nov 23, 2026
6fec404
GPU CUDA: Remove pragmas from CUDA warning suppressions, which were f…
davidrohr Nov 23, 2026
7f7bb2f
GPU: Replace workarounds by [[maybe_unused]]
davidrohr Nov 23, 2026
15fb44e
GPU: No need that TPCCompression knows about the merger or constant m…
davidrohr Nov 23, 2026
8b6bf34
GPU TPC: Deduplicate clusterNative state enums
davidrohr Nov 23, 2026
63526e7
GPU HIP: Remove obsolete performance workarounds for compiler issues
davidrohr Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace tpc
* Not for permanent storage.
*/
struct ClusterNative {
// NOTE: These states must match those from GPUTPCGMMergedTrackHit!
// NOTE: These states must match those from GPUTPCGMMergedTrackHit, and we must not add a state beyond 0x8, since 0x10 is already used
enum clusterState { flagSplitPad = 0x1, // Split in pad direction
flagSplitTime = 0x2, // Split in time direction
flagEdge = 0x4, // At edge of TPC sector
Expand Down
3 changes: 2 additions & 1 deletion GPU/Common/GPUCommonConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
#define GPUCOMMONCONSTANTS_H

#include "GPUCommonDef.h"
#include "CommonConstants/MathConstants.h"

namespace o2::gpu::gpu_common_constants
{
static GPUglobalconstexpr() const float kCLight = 0.000299792458f; // TODO: Duplicate of MathConstants, fix this now that we use only OpenCL CPP
static GPUglobalconstexpr() const float kCLight = -o2::constants::math::B2C;
static GPUglobalconstexpr() const float kZeroFieldCut = 0.013f;
} // namespace o2::gpu::gpu_common_constants

Expand Down
10 changes: 1 addition & 9 deletions GPU/Common/GPUCommonDefAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,7 @@
#define GPUhdni() __host__ __device__
#define GPUg() __global__
#define GPUshared() __shared__
#if defined(GPUCA_GPUCODE_DEVICE) && 0 // TODO: Fix for HIP
#define GPUCA_USE_TEMPLATE_ADDRESS_SPACES
#define GPUglobal() __attribute__((address_space(1)))
#define GPUglobalref() GPUglobal()
#define GPUconstantref() __attribute__((address_space(4)))
#define GPUsharedref() __attribute__((address_space(3)))
#else
#define GPUglobal()
#endif
#define GPUglobal()
#define GPUconstant() __constant__
#define GPUconstexpr() constexpr __constant__
#define GPUprivate()
Expand Down
17 changes: 2 additions & 15 deletions GPU/Common/GPUCommonMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ class GPUCommonMath
using half_t = _Float16;
#endif

GPUd() static float2 MakeFloat2(float x, float y); // TODO: Find better appraoch that is constexpr

template <class T>
GPUhd() constexpr static T Min(const T x, const T y)
{
Expand Down Expand Up @@ -289,17 +287,6 @@ GPUdi() constexpr T GPUCommonMath::nextMultipleOf(T val)
} else {
return (val + I - 1) & ~(T)(I - 1);
}
return 0; // BUG: Cuda complains about missing return value with constexpr if
}

GPUdi() float2 GPUCommonMath::MakeFloat2(float x, float y)
{
#if !defined(GPUCA_GPUCODE) || defined(__OPENCL__) || defined(__OPENCL_HOST__) || defined(__METAL__) || defined(__METAL_HOST__) || defined(__CPUDEVICE__)
float2 ret = {x, y};
return ret;
#else
return make_float2(x, y);
#endif // GPUCA_GPUCODE
}

GPUdi() constexpr float GPUCommonMath::Modf(float x, float y) { return GPUCA_CHOICE(fmodf(x, y), fmodf(x, y), fmod(x, y)); }
Expand Down Expand Up @@ -442,7 +429,7 @@ GPUdi() constexpr uint32_t GPUCommonMath::Ctz(uint32_t x)

GPUdi() constexpr uint32_t GPUCommonMath::Popcount(uint32_t x)
{
#if (defined(__GNUC__) || defined(__clang__) || defined(__CUDACC__) || defined(__HIPCC__)) && !defined(__OPENCL__) // TODO: remove OPENCL when reported SPIR-V bug is fixed
#if (defined(__GNUC__) || defined(__clang__) || defined(__CUDACC__) || defined(__HIPCC__))
// use builtin if available
return GPUCA_CHOICE(__builtin_popcount(x), __popc(x), __builtin_popcount(x));
#else
Expand Down Expand Up @@ -482,7 +469,7 @@ GPUdi() constexpr uint32_t GPUCommonMath::Ctz64(uint64_t x)

GPUdi() constexpr uint32_t GPUCommonMath::Popcount64(uint64_t x)
{
#if (defined(__GNUC__) || defined(__clang__) || defined(__CUDACC__) || defined(__HIPCC__)) && !defined(__OPENCL__) // TODO: remove OPENCL when reported SPIR-V bug is fixed
#if (defined(__GNUC__) || defined(__clang__) || defined(__CUDACC__) || defined(__HIPCC__))
// use builtin if available
return GPUCA_CHOICE(__builtin_popcountll(x), __popcll(x), __builtin_popcountll(x));
#else
Expand Down
10 changes: 5 additions & 5 deletions GPU/GPUTracking/Base/GPUConstantMem.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ union GPUConstantMemCopyable {
#if defined(GPUCA_GPUCODE)
static GPUglobalconstexpr() size_t gGPUConstantMemBufferSize = (sizeof(GPUConstantMem) + sizeof(uint4) - 1);
#endif
} // namespace o2::gpu

#if defined(GPUCA_HAS_GLOBAL_SYMBOL_CONSTANT_MEM)
GPUconstant() o2::gpu::GPUConstantMemCopyable gGPUConstantMemBuffer; // TODO: This should go into o2::gpu namespace, but then CUDA or HIP would not find the symbol
#endif // GPUCA_HAS_GLOBAL_SYMBOL_CONSTANT_MEM
namespace o2::gpu
{
extern "C" { // C linkage for the unmangled symbol name that the RTC looks up, the braces make it a definition, not a declaration
GPUconstant() GPUConstantMemCopyable gGPUConstantMemBuffer;
}
#endif

// Must be placed here, to avoid circular header dependency
GPUdi() GPUconstantref() const GPUConstantMem* GPUProcessor::GetConstantMem() const
Expand Down
6 changes: 3 additions & 3 deletions GPU/GPUTracking/Base/GPUParam.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ void GPUParam::SetDefaults(float solenoidBz, bool assumeConstantBz)
{
memset((void*)this, 0, sizeof(*this));
new (&rec) GPUSettingsRec;
occupancyMap = nullptr;
occupancyMapSize = 0;
occupancyTotal = 0;
occupancy.map = nullptr;
occupancy.mapSize = 0;
occupancy.total = 0;

#ifndef GPUCA_RUN2
const float kErrorsY[4] = {0.06, 0.24, 0.12, 0.1};
Expand Down
9 changes: 6 additions & 3 deletions GPU/GPUTracking/Base/GPUParam.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ struct GPUParam_t {
int32_t tpcCutTimeBin;

GPUTPCGMPolynomialField polynomialField; // Polynomial approx. of magnetic field for TPC GM
const uint32_t* occupancyMap; // Ptr to TPC occupancy map
uint32_t occupancyTotal; // Total occupancy in the TPC (nCl / nHbf)
uint32_t occupancyMapSize; // Size of occupancy map

struct occupancyStruct {
const uint32_t* map; // Ptr to TPC occupancy map
uint32_t total; // Total occupancy in the TPC (nCl / nHbf)
uint32_t mapSize; // Size of occupancy map
} occupancy;

protected:
#ifndef GPUCA_RUN2
Expand Down
10 changes: 5 additions & 5 deletions GPU/GPUTracking/Base/GPUParam.inc
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ GPUdi() float GPUParam::GetSystematicClusterErrorIFC2(float x, float y, float z,
GPUdi() float GPUParam::GetSystematicClusterErrorC122(float x, float y, uint8_t sector) const
{
const float dx = x - 83.f;
if (dx > occupancyTotal * rec.tpc.sysClusErrorC12Box) {
if (dx > occupancy.total * rec.tpc.sysClusErrorC12Box) {
return 0.f;
}
constexpr float dEdgeInv = 18.f / CAMath::Pi();
const float dy = (sector == (GPUTPCGeometry::NSECTORS / 2 + 1) ? 0.5f : -0.5f) * (y / x) * dEdgeInv + 0.5f;
const float errC12 = rec.tpc.sysClusErrorC12Norm * occupancyTotal * dy;
const float errC12 = rec.tpc.sysClusErrorC12Norm * occupancy.total * dy;
return errC12 * errC12;
}

Expand Down Expand Up @@ -210,11 +210,11 @@ GPUdi() void GPUParam::UpdateClusterError2ByState(int16_t clusterState, float& E

GPUdi() float GPUParam::GetUnscaledMult(float time) const
{
if (!occupancyMap) {
if (!occupancy.map) {
return 0.f;
}
const uint32_t bin = CAMath::Min<uint32_t>(occupancyMapSize - 1, CAMath::Max(0.f, time / rec.tpc.occupancyMapTimeBins));
return occupancyMap[bin];
const uint32_t bin = CAMath::Min<uint32_t>(occupancy.mapSize - 1, CAMath::Max(0.f, time / rec.tpc.occupancyMapTimeBins));
return occupancy.map[bin];
}

GPUdi() bool GPUParam::rejectEdgeClusterByY(float uncorrectedY, int32_t iRow, float trackSigmaY) const
Expand Down
18 changes: 8 additions & 10 deletions GPU/GPUTracking/Base/GPUReconstruction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ GPUReconstruction::GPUReconstruction(const GPUSettingsDeviceBackend& cfg) : mHos
param().SetDefaults(mGRPSettings.get());
mMemoryScalers.reset(new GPUMemorySizeScalers);
for (uint32_t i = 0; i < NSECTORS; i++) {
processors()->tpcTrackers[i].SetSector(i); // TODO: Move to a better place
processors()->tpcClusterer[i].mISector = i;
#ifdef GPUCA_HAS_ONNX
processors()->tpcNNClusterer[i].mISector = i;
#endif
}
}

Expand Down Expand Up @@ -438,7 +433,7 @@ int32_t GPUReconstruction::InitPhaseAfterDevice()
void GPUReconstruction::WriteConstantParams(int32_t stream)
{
if (IsGPU()) {
const auto threadContext = GetThreadContext();
const auto holdContext = GetThreadContext();
WriteToConstantMemory(ptrDiff(&processors()->param, processors()), &param(), sizeof(param()), stream);
}
}
Expand Down Expand Up @@ -753,20 +748,23 @@ void* GPUReconstruction::AllocateDirectMemory(size_t size, int32_t type)
void*& pool = (type & GPUMemoryResource::MEMORY_GPU) ? mDeviceMemoryPool : mHostMemoryPool;
void*& poolend = (type & GPUMemoryResource::MEMORY_GPU) ? mDeviceMemoryPoolEnd : mHostMemoryPoolEnd;
char* retVal;
if ((type & GPUMemoryResource::MEMORY_STACK)) {
poolend = (char*)poolend - size; // TODO: Implement overflow check
if (size > (size_t)((char*)poolend - (char*)pool)) {
GPUError("Insufficient direct memory: requested %zd, required %td bytes", size, ptrDiff(pool, poolend));
throw std::bad_alloc();
} else if ((type & GPUMemoryResource::MEMORY_STACK)) {
poolend = (char*)poolend - size;
poolend = (char*)poolend - GPUProcessor::getAlignmentMod<constants::GPU_MEMALIGN>(poolend);
retVal = (char*)poolend;
} else {
GPUProcessor::computePointerWithAlignment(pool, retVal, size);
}
if (pool > poolend) {
GPUError("Insufficient unmanaged memory: missing %ld bytes", ptrDiff(pool, poolend));
GPUError("Insufficient direct memory: missing %td bytes", ptrDiff(pool, poolend));
throw std::bad_alloc();
}
UpdateMaxMemoryUsed();
if (GetProcessingSettings().allocDebugLevel >= 2) {
std::cout << "Allocated (unmanaged " << ((type & GPUMemoryResource::MEMORY_GPU) ? "gpu" : "host") << "): " << size << " - available: " << ptrDiff(poolend, pool) << "\n";
std::cout << "Allocated (direct " << ((type & GPUMemoryResource::MEMORY_GPU) ? "gpu" : "host") << "): " << size << " - available: " << ptrDiff(poolend, pool) << "\n";
}
return retVal;
}
Expand Down
13 changes: 5 additions & 8 deletions GPU/GPUTracking/Base/GPUReconstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ struct GPUSettingsRec;
struct GPUSettingsRecDynamic;
struct GPUMemoryReuse;

namespace gpu_reconstruction_kernels
{
struct deviceEvent;
class threadContext;
} // namespace gpu_reconstruction_kernels

class GPUReconstruction
{
protected:
Expand Down Expand Up @@ -140,6 +134,9 @@ class GPUReconstruction
Device = 1,
Auto = -1 };

struct deviceEvent;
struct threadContext;

// Global steering functions
template <class T, typename... Args>
T* AddChain(Args... args);
Expand Down Expand Up @@ -278,7 +275,7 @@ class GPUReconstruction
int32_t InitPhaseAfterDevice();
void WriteConstantParams(int32_t stream = -1);
virtual int32_t ExitDevice() = 0;
virtual size_t WriteToConstantMemory(size_t offset, const void* src, size_t size, int32_t stream = -1, gpu_reconstruction_kernels::deviceEvent* ev = nullptr) = 0;
virtual size_t WriteToConstantMemory(size_t offset, const void* src, size_t size, int32_t stream = -1, deviceEvent* ev = nullptr) = 0;
void UpdateMaxMemoryUsed();
int32_t EnqueuePipeline(bool terminate = false);
GPUChain* GetNextChainInQueue();
Expand All @@ -288,7 +285,7 @@ class GPUReconstruction
virtual int32_t unregisterMemoryForGPU_internal(const void* ptr) = 0;

// Management for GPU thread contexts
virtual std::unique_ptr<gpu_reconstruction_kernels::threadContext> GetThreadContext() = 0;
virtual std::unique_ptr<threadContext> GetThreadContext() = 0;

// Private helpers for library loading
static std::shared_ptr<LibraryLoader>* GetLibraryInstance(DeviceType type, bool verbose);
Expand Down
18 changes: 5 additions & 13 deletions GPU/GPUTracking/Base/GPUReconstructionCPU.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -359,20 +359,12 @@ void GPUReconstructionCPU::UpdateParamOccupancyMap(const uint32_t* mapHost, cons
if (mapHost && mapSize != GPUTPCClusterOccupancyMapBin::getNBins(param())) {
throw std::runtime_error("Updating occupancy map with object of invalid size");
}
param().occupancyMap = mapHost;
param().occupancyMapSize = mapSize;
param().occupancyTotal = occupancyTotal;
param().occupancy.map = mapHost;
param().occupancy.total = occupancyTotal;
param().occupancy.mapSize = mapSize;
if (IsGPU()) {
if (!((size_t)&param().occupancyMapSize - (size_t)&param().occupancyMap == sizeof(param().occupancyMap) + sizeof(param().occupancyTotal) && sizeof(param().occupancyMap) == sizeof(void*) && sizeof(param().occupancyTotal) == sizeof(uint32_t))) { // TODO: Make static assert, and check alignment
throw std::runtime_error("occupancy data not consecutive in GPUParam");
}
struct tmpOccuapncyParam {
const void* ptr;
uint32_t total;
uint32_t size;
};
tmpOccuapncyParam tmp = {mapGPU, occupancyTotal, mapSize};
GPUParam::occupancyStruct tmp = {mapGPU, occupancyTotal, mapSize};
const auto holdContext = GetThreadContext();
WriteToConstantMemory((char*)&processors()->param.occupancyMap - (char*)processors(), &tmp, sizeof(tmp), stream, ev);
WriteToConstantMemory((char*)&processors()->param.occupancy - (char*)processors(), &tmp, sizeof(tmp), stream, ev);
}
}
5 changes: 2 additions & 3 deletions GPU/GPUTracking/Base/GPUReconstructionConvert.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1064,9 +1064,8 @@ inline uint32_t zsEncoderRun<T>::run(std::vector<zsPage>* buffer, std::vector<o2
#endif
bcShiftInFirstHBF = ir ? ir->bc : 0;
int32_t orbitShift = ir ? ir->orbit : 0;
int32_t rawcru = 0;
int32_t rawendpoint = 0;
(void)(rawcru + rawendpoint); // avoid compiler warning
[[maybe_unused]] int32_t rawcru = 0;
[[maybe_unused]] int32_t rawendpoint = 0;
encodeBitsFactor = (1 << (encodeBits - 10));

std::sort(tmpBuffer.begin(), tmpBuffer.end(), [this](const o2::tpc::Digit a, const o2::tpc::Digit b) { return sort(a, b); });
Expand Down
4 changes: 2 additions & 2 deletions GPU/GPUTracking/Base/GPUReconstructionIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ inline size_t GPUReconstruction::ReadData(FILE* fp, const T** entries, S* num, s
return 0;
}
InOutPointerType inType;
size_t r, pos = ftell(fp);
[[maybe_unused]] size_t r;
size_t pos = ftell(fp);
r = fread(&inType, sizeof(inType), 1, fp);
if (r != 1 || inType != type) {
fseek(fp, pos, SEEK_SET);
Expand All @@ -101,7 +102,6 @@ inline size_t GPUReconstruction::ReadData(FILE* fp, const T** entries, S* num, s
}
numTotal += num[i];
}
(void)r;
if (GetProcessingSettings().debugLevel >= 2) {
GPUInfo("Read %zu %s", numTotal, IOTYPENAMES[type]);
}
Expand Down
4 changes: 2 additions & 2 deletions GPU/GPUTracking/Base/GPUReconstructionProcessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ std::unique_ptr<GPUReconstructionProcessing::threadContext> GPUReconstructionPro
return std::make_unique<threadContext>();
}

gpu_reconstruction_kernels::threadContext::threadContext() = default;
gpu_reconstruction_kernels::threadContext::~threadContext() = default;
GPUReconstruction::threadContext::threadContext() = default;
GPUReconstruction::threadContext::~threadContext() = default;

const std::vector<std::string> GPUReconstructionProcessing::mKernelNames = {
#define GPUCA_KRNL(x_class, ...) GPUCA_M_STR(GPUCA_M_KRNL_NAME(x_class)),
Expand Down
13 changes: 2 additions & 11 deletions GPU/GPUTracking/Base/GPUReconstructionProcessing.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ namespace o2::gpu

struct GPUDefParameters;

namespace gpu_reconstruction_kernels // TODO: Get rid of this namespace
{
struct deviceEvent {
struct GPUReconstruction::deviceEvent {
constexpr deviceEvent() = default;
constexpr deviceEvent(std::nullptr_t p) : v(nullptr) {};
template <class T>
Expand All @@ -57,23 +55,16 @@ struct deviceEvent {
void* v = nullptr; // We use only pointers anyway, and since cl_event and cudaEvent_t and hipEvent_t are actually pointers, we can cast them to deviceEvent (void*) this way.
};

class threadContext
{
public:
struct GPUReconstruction::threadContext {
threadContext();
virtual ~threadContext();
};

} // namespace gpu_reconstruction_kernels

class GPUReconstructionProcessing : public GPUReconstruction
{
public:
~GPUReconstructionProcessing() override;

using deviceEvent = gpu_reconstruction_kernels::deviceEvent;
using threadContext = gpu_reconstruction_kernels::threadContext;

struct RecoStepTimerMeta {
HighResTimer timerToGPU;
HighResTimer timerToHost;
Expand Down
6 changes: 1 addition & 5 deletions GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,7 @@ int32_t GPUReconstructionCUDA::InitDevice_Runtime()
}
}

#ifndef __HIPCC__ // CUDA
dummyInitKernel<<<mMultiprocessorCount, 256>>>(mDeviceMemoryBase); // TODO: Can't we just use the CUDA version and hipify will take care of the rest?
#else // HIP
hipLaunchKernelGGL(HIP_KERNEL_NAME(dummyInitKernel), dim3(mMultiprocessorCount), dim3(256), 0, 0, mDeviceMemoryBase);
#endif
dummyInitKernel<<<mMultiprocessorCount, 256>>>(mDeviceMemoryBase);

if (GetProcessingSettings().rtc.enable) {
genAndLoadRTC();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@
#include <cuda_runtime.h>
#include <cuda.h>
#include <cooperative_groups.h>
#pragma GCC diagnostic push // FIXME: Is this still needed?
#pragma GCC diagnostic ignored "-Wshadow"
#include <cub/cub.cuh>
#include <cub/block/block_scan.cuh>
#include <thrust/sort.h>
#include <thrust/execution_policy.h>
#include <thrust/device_ptr.h>
#pragma GCC diagnostic pop
#include <sm_20_atomic_functions.h>
#include <cuda_fp16.h>

Expand Down
4 changes: 1 addition & 3 deletions GPU/GPUTracking/DataCompression/GPUTPCClusterRejection.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ struct GPUTPCClusterRejection {
}

template <bool C, class T = void, class S = void>
GPUdi() static constexpr bool GetRejectionStatus(int32_t attach, bool& physics, T* counts = nullptr, S* mev200 = nullptr)
GPUdi() static constexpr bool GetRejectionStatus(int32_t attach, bool& physics, [[maybe_unused]] T* counts = nullptr, [[maybe_unused]] S* mev200 = nullptr)
{
(void)counts; // FIXME: Avoid incorrect -Wunused-but-set-parameter warning
(void)mev200;
bool retVal = false;
if (attach == 0) {
retVal = false;
Expand Down
Loading