Skip to content

Commit

Permalink
GPU: Workaround for reoccuring HIP problem parsing host-code during d…
Browse files Browse the repository at this point in the history
…evice compilation
  • Loading branch information
davidrohr committed Dec 11, 2020
1 parent 4e37ae8 commit ba96502
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GPU/Common/GPUCommonLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

#include "GPUCommonDef.h"

#if defined(GPUCA_GPUCODE_DEVICE)
#if defined(GPUCA_GPUCODE_DEVICE) || defined(__HIPCC__)
namespace o2::gpu::detail
{
struct DummyLogger {
template <typename... Args>
GPUd() DummyLogger& operator<<(Args... args)
GPUhd() DummyLogger& operator<<(Args... args)
{
return *this;
}
Expand All @@ -34,7 +34,7 @@ struct DummyLogger {
#define LOGF(...)
#define LOGP(...)

#elif defined(GPUCA_GPUCODE_DEVICE)
#elif defined(GPUCA_GPUCODE_DEVICE) || defined(__HIPCC__)
#define LOG(...) o2::gpu::detail::DummyLogger()
//#define LOG(...) static_assert(false, "LOG(...) << ... unsupported in GPU code");
#define LOGF(type, string, ...) \
Expand Down

0 comments on commit ba96502

Please sign in to comment.