Coder Social home page Coder Social logo

Comments (6)

joeylitalien avatar joeylitalien commented on August 15, 2024

+1, I would really appreciate it because I cannot get this to work whatever I try.

from cutlass.

Peter9606 avatar Peter9606 commented on August 15, 2024

I've been reading cutlass doc and source code for couple of weeks, but still don't get it. I'm thinking it probably because 1) too many use of compilation time concept 2) there are many "shape"s, which might not be easily understood without pictures.
So my suggestion is will you please add more figures to help people to understand the concept and your design?

from cutlass.

hwu36 avatar hwu36 commented on August 15, 2024

CUTLASS is a header library. Essentially just need to include all the header files and compile with one nvcc line

nvcc -Ipath_to_/cutlass/include -Ipath_to_/cutlass/examples/common -Ipath_to/build/include -Ipath_to/cutlass/tools/util/include -isystem=path_to/cuda/include -O3 -DNDEBUG -Xcompiler=-fPIE -DCUTLASS_ENABLE_TENSOR_CORE_MMA=1 -Xcompiler=-Wconversion -Xcompiler=-fno-strict-aliasing -gencode=arch=compute_75,code=[sm_75,compute_75] -std=c++11 -x cu -c path_to_cu -o path_to_binary

You can try below command to see an example

make 08_turing_tensorop_gemm VERBOSE=1

from cutlass.

hwu36 avatar hwu36 commented on August 15, 2024

@Peter9606 , below two GTC talks should be helpful

https://developer.nvidia.com/gtc/2020/video/s21745-vid
https://on-demand.gputechconf.com/gtc/2018/presentation/s8854-cutlass-software-primitives-for-dense-linear-algebra-at-all-levels-and-scales-within-cuda.pdf

Most of the complication comes from address calculation. Dumping the load/store addresses from the device can help you understand.

examples/03_visualize_layout is also a tool help you visualize the layout for you.

If you could let me know your goal (such as tensor core or not, sm number, data type, mainloop or epilogue, etc.), I can give you more specific help.

from cutlass.

Peter9606 avatar Peter9606 commented on August 15, 2024

@hwu36 The slides from GTC2020 really helps. Thank you!

Actually I'm thinking of leveraging cutlass to efficiently move memory between GMEM, SMEM and registers and accelerate computing on CUDA cores regards to deep learning, because cutlass is decomposable. Sure, I'll pop up specific question.

from cutlass.

hwu36 avatar hwu36 commented on August 15, 2024

the link i send out includes 2020 video and 2018 slides.

2018 slides talk more about the overview of the gemm computation in cuda. 2020 video focuses more on tensor core computations.

from cutlass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.