russwong / cudatutorial Goto Github PK
View Code? Open in Web Editor NEWA CUDA tutorial to make people learn CUDA program from 0
A CUDA tutorial to make people learn CUDA program from 0
https://github.com/RussWong/CUDATutorial/blob/main/9_gelu.cu#L67
acording to the gelu formula, there should be only two __hmul12 in the outermost layer
and after commenting the original code, the compilation will also fail
i think here is one version of correct codes
//const half2 y2 = __hmul2(__hmul2(__float2half2_rn(0.5F), x2),
// __hadd2(__float2half2_rn(1.0F), __float22half2_rn(tanh_out)));
10_fused_bias_mask_scale_and_add/10_fused_bias_mask_scale_and_add_fp32.cu
bias可能没有初始化
63行声明的functor使用的指针是指向CPU的,不是GPU的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.