- #define DECLARE_CYCED(postfix_name, f) \
- __device__ __forceinline__ Cycles cyced_##postfix_name() \
- { \
- const uint64_t start_cycle = clock64(); \
- f; \
- const uint64_t stop_cycle = clock64(); \
- return { stop_cycle - start_cycle }; \
- }
- #define DECLARE_TIMED(postfix_name, f) \
- __device__ __forceinline__ NS timed_##postfix_name() \
- { \
- uint64_t start_time = globaltimer(); \
- f; \
- uint64_t stop_time = globaltimer(); \
- return { stop_time - start_time }; \
- }
Untitled
Posted by Anonymous on Thu 21st May 2026 02:04
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
kpaste.net RSS