Peano
Loading...
Searching...
No Matches
tarch.h
Go to the documentation of this file.
1
// This file is part of the Peano project. For conditions of distribution and
2
// use, please see the copyright notice at www.peano-framework.org
3
#pragma once
4
34
namespace
tarch
{
35
enum class
MemoryUsageFormat
{
36
MByte
37
};
38
46
int
getMemoryUsage
(
MemoryUsageFormat
format);
47
int
getTotalMemory
(
MemoryUsageFormat
format);
48
int
getFreeMemory
(
MemoryUsageFormat
format);
49
}
50
63
#if defined(UseManualInlining)
64
#define InlineMethod __attribute__((always_inline))
65
#else
66
#define InlineMethod
67
#endif
tarch
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition
accelerator.h:19
tarch::MemoryUsageFormat
MemoryUsageFormat
Definition
tarch.h:35
tarch::MemoryUsageFormat::MByte
@ MByte
tarch::getTotalMemory
int getTotalMemory(MemoryUsageFormat format)
tarch::getMemoryUsage
int getMemoryUsage(MemoryUsageFormat format)
Method for getting the application's memory footprint.
tarch::getFreeMemory
int getFreeMemory(MemoryUsageFormat format)
src
tarch
tarch.h
Generated on Sat Mar 7 2026 07:25:07 for Peano by
1.10.0