summaryrefslogtreecommitdiff
path: root/cuda/nix-python-devenv/hello.py
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-09-22 16:41:50 +0700
committerpolwex <polwex@sortug.com>2025-09-22 16:41:50 +0700
commitec7479951bf8842a77e65b346e3a2586d2e09a72 (patch)
tree0892afc2c613f748956c9e6298b8d2f9cdfbf71e /cuda/nix-python-devenv/hello.py
PYTHON CUDA SOLVED FOREVAHHEADmaster
Diffstat (limited to 'cuda/nix-python-devenv/hello.py')
-rw-r--r--cuda/nix-python-devenv/hello.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/cuda/nix-python-devenv/hello.py b/cuda/nix-python-devenv/hello.py
new file mode 100644
index 0000000..9f27d8a
--- /dev/null
+++ b/cuda/nix-python-devenv/hello.py
@@ -0,0 +1,12 @@
+import numpy as np
+
+
+def main():
+ print("Hello from nix-python-devenv!")
+ print("As you can see, C bindings are correct, because numpy works:")
+ print("a =", a := np.array([1, 2, 3]))
+ print("mean(a) =", a.mean())
+
+
+if __name__ == "__main__":
+ main()