Skip to content

Commit

Permalink
chore: Moved macros to core/utils
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Dixit <a.dixit91@gmail.com>
  • Loading branch information
andi4191 committed Aug 10, 2022
1 parent 5c646a3 commit ad7c081
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/conversion/conversionctx/ConversionCtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
#include <cuda_runtime.h>
#include "core/util/prelude.h"

#define DLA_SRAM_SIZE 1048576
#define DLA_LOCAL_DRAM_SIZE 1073741824
#define DLA_GLOBAL_DRAM_SIZE 536870912

namespace torch_tensorrt {
namespace core {
namespace conversion {
Expand Down
5 changes: 5 additions & 0 deletions core/util/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

#define GET_MACRO(_1, _2, NAME, ...) NAME

// DLA Memory related macros
#define DLA_SRAM_SIZE 1048576
#define DLA_LOCAL_DRAM_SIZE 1073741824
#define DLA_GLOBAL_DRAM_SIZE 536870912

#define TORCHTRT_LOG(l, sev, msg) \
do { \
std::stringstream ss{}; \
Expand Down

0 comments on commit ad7c081

Please sign in to comment.