Created
October 21, 2022 11:38
-
-
Save gmarkall/126b70577862e380e615821aeff87d90 to your computer and use it in GitHub Desktop.
Example using an intrinsic defined for the CUDA target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@cuda.jit('void()') | |
def f(): | |
print("1. Clock value is", cuda_clock64()) | |
print("2. Clock value is", cuda_clock64()) | |
# Example output: | |
# 1. Clock value is 6670192 | |
# 2. Clock value is 6723668 | |
f[1, 1]() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment