-
반응형
헤더 파일에서 중복 정의를 피하기 위함
#define (매크로 함수 이름) (매크로 함수 기능)
#define ADD(a,b) a+b //ex
#define STAGEBLOCK1(index) CUT_BANK_CHECKER( stageBlock1, index )
CUT_BANK_CHECKER( stageBlock1, index )
This is a simple macro that works with some host code when running in emulation mode to help check for bank conflicts in shared memory.
The way it works is you use the CUT_BANK_CHECKER macro when accessing shared memory, the code tracks these accesses, and then you call cutCheckBankAccess which dumps the bank conflict information.
The code is in “common/inc/bank_checker.h”.
extern int num1; // 다른 소스 파일(외부)에 있는 전역 변수 num1을 사용
union 공용체이름 { 자료형 멤버이름; };
반응형'a' 카테고리의 다른 글
[04/04 ~] C++ (0) 2022.04.04 AES 암호화 과정 정리 (0) 2022.04.03 [알고리즘] AES 암호화 알고리즘 (0) 2022.04.01 [GPU] 후퍼(Hopper) 란 (0) 2022.03.30 [c++] C언어와 C++의 다른 부분(bool, 참조자, new/delete) (4) 2022.03.30