TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

FastGPT: Faster than PyTorch in 300 lines of Fortran

51 pointsby chlabout 2 years ago

4 comments

frankreyesabout 2 years ago
Fortran can produce faster code than C or C++ because it forces functions to not be aliasing for different arguments. <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;146159&#x2F;is-fortran-easier-to-optimize-than-c-for-heavy-calculations#146186" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;146159&#x2F;is-fortran-easier...</a>
certikabout 2 years ago
The author here. I am happy to answer any questions.
评论 #35168424 未加载
评论 #35166187 未加载
评论 #35165069 未加载
lostmsuabout 2 years ago
They use OpenBLAS. PyTorch is slower presumably due to its poor threading. Nothing special about Fortran here, any language without a global lock would have the same result.
jiehongabout 2 years ago
Very nice to see Fortran in that space!<p>That page doesn’t display very well on mobile though (header seems correct, but text is too wide and you need to zoom out. Safari mobile)
评论 #35172102 未加载