Xplace_for_ICCAD/cpp_to_py/gputimer/base.h

27 lines
411 B
C
Raw Permalink Normal View History

2025-05-02 15:27:40 +08:00
#pragma once
namespace gt {
// #define BLOCK_SIZE 512
#define BLOCK_SIZE 512
#define BLOCK_NUMBER(n) (((n) + (BLOCK_SIZE)-1) / BLOCK_SIZE)
// el rf rf: e0 l1 r0 f1
#define NUM_ATTR 4
// using index_type = int64_t;
using index_type = int;
// Overloadded.
template <typename... Ts>
struct Functors : Ts... {
using Ts::operator()... ;
};
template <typename... Ts>
Functors(Ts...) -> Functors<Ts...>;
}