#include <iostream>
#include <sstream>
#include <iomanip>
#include <typeinfo>
#include <boost/program_options.hpp>
#include <vector>
#include <string>
#include <cmath>
Go to the source code of this file.
|
| namespace | o2 |
| | a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
|
| |
| namespace | o2::benchmark |
| |
|
| #define | KNRM "\x1B[0m" |
| |
| #define | KRED "\x1B[31m" |
| |
| #define | KGRN "\x1B[32m" |
| |
| #define | KYEL "\x1B[33m" |
| |
| #define | configLU "\x1B[34m" |
| |
| #define | KMAG "\x1B[35m" |
| |
| #define | KCYN "\x1B[36m" |
| |
| #define | KWHT "\x1B[37m" |
| |
| #define | GB (1024 * 1024 * 1024) |
| |
| #define | failed(...) |
| |
|
| enum class | Test {
Read
, Write
, Copy
, RandomRead
,
RandomWrite
, RandomCopy
} |
| |
| enum class | Mode { Sequential
, Concurrent
, Distributed
} |
| |
| enum class | KernelConfig { Single
, Multi
, All
, Manual
} |
| |
|
| template<typename T > |
| void | discardResult (const T &) |
| |
| std::ostream & | operator<< (std::ostream &os, Test test) |
| |
| std::ostream & | operator<< (std::ostream &os, Mode mode) |
| |
| std::ostream & | operator<< (std::ostream &os, KernelConfig config) |
| |
| template<class T > |
| std::string | getType () |
| |
| std::string | getTestName (Mode mode, Test test, KernelConfig blocks) |
| |
| template<class chunk_t > |
| chunk_t * | getCustomPtr (chunk_t *scratchPtr, float startGB) |
| |
| float | computeThroughput (Test test, float result, float chunkSizeGB, int32_t ntests) |
| |
| template<class chunk_t > |
| size_t | getBufferCapacity (float chunkSizeGB, int32_t prime) |
| |
| bool | is_prime (const int32_t n) |
| |
◆ configLU
| #define configLU "\x1B[34m" |
◆ failed
Value: printf(
"%serror: ",
KRED); \
printf(__VA_ARGS__); \
printf("\n"); \
printf(
"error: TEST FAILED\n%s",
KNRM); \
exit(EXIT_FAILURE);
Definition at line 42 of file Utils.h.
◆ GB
| #define GB (1024 * 1024 * 1024) |
◆ KCYN
◆ KGRN
◆ KMAG
◆ KNRM
◆ KRED
◆ KWHT
◆ KYEL
◆ KernelConfig
| Enumerator |
|---|
| Single | |
| Multi | |
| All | |
| Manual | |
Definition at line 111 of file Utils.h.
◆ Mode
| Enumerator |
|---|
| Sequential | |
| Concurrent | |
| Distributed | |
Definition at line 89 of file Utils.h.
◆ Test
| Enumerator |
|---|
| Read | |
| Write | |
| Copy | |
| RandomRead | |
| RandomWrite | |
| RandomCopy | |
Definition at line 55 of file Utils.h.
◆ computeThroughput()
| float computeThroughput |
( |
Test |
test, |
|
|
float |
result, |
|
|
float |
chunkSizeGB, |
|
|
int32_t |
ntests |
|
) |
| |
|
inline |
◆ discardResult()
template<typename T >
| void discardResult |
( |
const T & |
| ) |
|
◆ getBufferCapacity()
template<class chunk_t >
| size_t getBufferCapacity |
( |
float |
chunkSizeGB, |
|
|
int32_t |
prime |
|
) |
| |
|
inline |
◆ getCustomPtr()
template<class chunk_t >
| chunk_t * getCustomPtr |
( |
chunk_t * |
scratchPtr, |
|
|
float |
startGB |
|
) |
| |
|
inline |
◆ getTestName()
◆ getType()
◆ is_prime()
| bool is_prime |
( |
const int32_t |
n | ) |
|
|
inline |
◆ operator<<() [1/3]
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
KernelConfig |
config |
|
) |
| |
|
inline |
◆ operator<<() [2/3]
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
Mode |
mode |
|
) |
| |
|
inline |
◆ operator<<() [3/3]
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
Test |
test |
|
) |
| |
|
inline |