On 5/25/25 21:47, A J wrote:
> Hopefully this will bring the power of C\C++ Cuda closer to the Python
> user. The library is not due out until later this year.
> In the past, people could use PyTorch or CuPy to get GPU acceleration
> for NumPy like code.
NumPy is already C/C++ under the covers. And Tensorflow & Keras and many
others are all essentially just Python interface-ed C/C++/Cuda/...
libraries. It depends somewhat on where you get your version from, but
the source code supported even CUDA for many years.
-- Marco
>
>
https://hwbusters.com/news/a-new-era-for-gpu-programming-nvidia-finally-
> adds-native-python-support-to-cuda-millions-of-users-incoming/
>
>
https://developer.nvidia.com/blog/introducing-tile-based-programming-in-
> warp-1-5-0/
>
> On Sunday, May 25, 2025 at 4:44:10 PM UTC-7 Chris Albertson wrote:
>
> I doubt many people directly use Cuda from Python. The way we’d
> do it is to use (say) NumPy to do the math and then NumPy uses the
> fastest way to do the work on that specifc computer. In my case on
> a Mac it might use Apple's “Metal” API and on a PC with Nvidea, then
> you would used CUDA if present of just the Intel vectorized
> instructionsif there was not graphic card.
>
> I think in Python you really need an intermediate layer between you
> and the hardware. For example, if I need to multiply 5 numbers by
> three, a loop is dead-dog slow but this is very fast
>
> A = np.array([1.23, 2.34, 3.45, 4.56, 5.67])
> B = 3.0 * A
>
> Did I just use Cuda on my NVIDIA GPU? Who knows? I can assume it
> was done in the most efficient way on whatever computer it runs on
> and I know 100% that I did not run a for-loop inside an interpreter.
> This is a trivial example, but imagine something more complex with
> 10,000 data points.
>
>
>
>
>> On May 25, 2025, at 1:00 PM, A J <
aj48...@gmail.com> wrote:
>>
>> Good news for the Bot builders that want to use Python, Nvidia
>>
>> now supports CUDA in Python. The CuTile will be more Array
>>
>> oriented than Thread in C\C++.
>>
>>
https://thenewstack.io/nvidia-finally-adds-native-python-support-
>> to-cuda/ <
https://thenewstack.io/nvidia-finally-adds-native-
>> python-support-to-cuda/>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "HomeBrew Robotics Club" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to
hbrobotics+...@googlegroups.com.
>> To view this discussion visit
https://groups.google.com/d/msgid/
>> hbrobotics/5f68e9df-
>> ccc1-4c4e-8cd8-31d13c3a9b4cn%
40googlegroups.com <https://
>>
groups.google.com/d/msgid/hbrobotics/5f68e9df-
>> ccc1-4c4e-8cd8-31d13c3a9b4cn%
40googlegroups.com?
>> utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
hbrobotics+...@googlegroups.com
> <mailto:
hbrobotics+...@googlegroups.com>.
> hbrobotics/a58cb73a-0057-4c61-96fe-3c8b404e435fn%
40googlegroups.com
> <
https://groups.google.com/d/msgid/hbrobotics/
> a58cb73a-0057-4c61-96fe-3c8b404e435fn%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.