Skip to content

Instantly share code, notes, and snippets.

@mortvest
Last active July 1, 2021 14:58
Show Gist options
  • Save mortvest/a318c4031f579d08dd1f306452a3e635 to your computer and use it in GitHub Desktop.
Save mortvest/a318c4031f579d08dd1f306452a3e635 to your computer and use it in GitHub Desktop.
entry main [m] (xxx: [m]i64): [m]i64 =
map (\i -> xxx[100 + i]) xxx
import numpy as np
import _test2
from futhark_ffi import Futhark
test2 = Futhark(_test2)
res = test2.main(np.arange(100))
print(test2.from_futhark(res))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment