Skip to content

Instantly share code, notes, and snippets.

@gmarkall
Created October 21, 2022 11:38
Show Gist options
  • Save gmarkall/126b70577862e380e615821aeff87d90 to your computer and use it in GitHub Desktop.
Save gmarkall/126b70577862e380e615821aeff87d90 to your computer and use it in GitHub Desktop.
Example using an intrinsic defined for the CUDA target
@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