Skip to content

Instantly share code, notes, and snippets.

@lidangzzz
Last active May 27, 2021 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lidangzzz/fb4b5d4b68aa9cfb5a43c7aa83a284f8 to your computer and use it in GitHub Desktop.
Save lidangzzz/fb4b5d4b68aa9cfb5a43c7aa83a284f8 to your computer and use it in GitHub Desktop.
x = random(1000,1000)
tic()
y = x*x
toc()
x.mode = "gpu"
tic()
y = x*x
toc()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment