chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright (c) 2019 by Contributors
|
||||
* @file runtime/config.h
|
||||
* @brief DGL runtime config
|
||||
*/
|
||||
|
||||
#ifndef DGL_RUNTIME_CONFIG_H_
|
||||
#define DGL_RUNTIME_CONFIG_H_
|
||||
|
||||
namespace dgl {
|
||||
namespace runtime {
|
||||
|
||||
class Config {
|
||||
public:
|
||||
static Config* Global() {
|
||||
static Config config;
|
||||
return &config;
|
||||
}
|
||||
|
||||
// Enabling or disable use libxsmm for Spmm
|
||||
void EnableLibxsmm(bool);
|
||||
bool IsLibxsmmAvailable() const;
|
||||
|
||||
private:
|
||||
Config();
|
||||
bool libxsmm_;
|
||||
};
|
||||
|
||||
} // namespace runtime
|
||||
} // namespace dgl
|
||||
|
||||
#endif // DGL_RUNTIME_CONFIG_H_
|
||||
Reference in New Issue
Block a user