From ec7479951bf8842a77e65b346e3a2586d2e09a72 Mon Sep 17 00:00:00 2001 From: polwex Date: Mon, 22 Sep 2025 16:41:50 +0700 Subject: PYTHON CUDA SOLVED FOREVAH --- cuda/nix-python-devenv/hello.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cuda/nix-python-devenv/hello.py (limited to 'cuda/nix-python-devenv/hello.py') 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() -- cgit v1.2.3