mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Fix compiling with cuda and active mem-tracer
This commit is contained in:
parent
73822401f1
commit
a2d9455627
@ -35,7 +35,7 @@ namespace ngcore
|
|||||||
|
|
||||||
class MemoryTracer
|
class MemoryTracer
|
||||||
{
|
{
|
||||||
#ifdef NETGEN_TRACE_MEMORY
|
#if defined(NETGEN_TRACE_MEMORY) && !defined(__CUDA_ARCH__)
|
||||||
NGCORE_API static std::vector<std::string> names;
|
NGCORE_API static std::vector<std::string> names;
|
||||||
NGCORE_API static std::vector<int> parents;
|
NGCORE_API static std::vector<int> parents;
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ namespace ngcore
|
|||||||
|
|
||||||
static const std::vector<std::string> & GetNames() { return names; }
|
static const std::vector<std::string> & GetNames() { return names; }
|
||||||
static const std::vector<int> & GetParents() { return parents; }
|
static const std::vector<int> & GetParents() { return parents; }
|
||||||
#else // NETGEN_TRACE_MEMORY
|
#else // defined(NETGEN_TRACE_MEMORY) && !defined(__CUDA_ARCH__)
|
||||||
public:
|
public:
|
||||||
MemoryTracer() {}
|
MemoryTracer() {}
|
||||||
MemoryTracer( std::string /* name */ ) {}
|
MemoryTracer( std::string /* name */ ) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user