News for hackers. Stuff that matters.
Re:Growing open source from Torch to PyTorch by anonymoushn on Friday August 06, 2021 @01:05AM (#28083513)
People don't usually write the rules of a game or a MCTS to run on the GPU. They write it in Python, Lua, or C. If they write it in Python, then the GPU will idle all the time. If they write it in Lua or C then it will not.
Re:Growing open source from Torch to PyTorch by dklend122 on Friday August 06, 2021 @09:04AM (#28086587)
In Julia it's easy to run the entire thing on CUDA: https://github.com/fabricerosay/AlphaGPU

No C or any other language required because Julia has GPU codegen.

You can also keep MCTS on the CPU and be competitive with cpp despite the code being higher level, easier to read and more generic and composable. See: https://github.com/jonathan-laurent/AlphaZero.jl