Re:Triton: Open-Source GPU Programming for Neural Networks
by johndough on Thursday July 29, 2021 @12:01PM
(#27998017)
Thanks, that code does indeed work! And it is significantly faster than PyTorch (15 vs 60 milliseconds). Maybe I will use it in the future if AVX512 should become more widespread.
Re:Triton: Open-Source GPU Programming for Neural Networks
by 37ef_ced3 on Monday August 02, 2021 @04:43PM
(#28042363)
The new NN-512 release (version 35) changes the build instructions to suppress GCC's warnings while building the generated code (-w switch):
// To build an object file:
// gcc -c -w -std=c99 -pthread -Ofast -mavx512f Example1.c
Thanks for your feedback.
https://github.com/jonatron/test_nn512
That's a full ResNet50 conversion from the corresponding Caffe protobuf. He also wrote a small script to convert TensorFlow networks.
GCC warns about perfectly valid, correct C. It even warns about switch case fallthough. All of the generated code is fully correct. Turn the warnings off.
Please don't copy and paste from the website! Download the NN-512 executable and run it.
Email me if you still have difficulties.