llm.c icon indicating copy to clipboard operation
llm.c copied to clipboard

Add cmake and fix OMP

Open avflyer opened this issue 1 year ago • 3 comments

  1. Add cmake build rules.
  2. Fix OMP compilation error in VS2022.
  3. OpenMP can be turn off on windows.

avflyer avatar May 23 '24 17:05 avflyer

I don't think I'll add cmake to the project. What is cmake fixing here that can't be done in our Makefile?

karpathy avatar May 24 '24 22:05 karpathy

Also - we already have a CMake PR https://github.com/karpathy/llm.c/pull/59

rosslwheeler avatar May 24 '24 22:05 rosslwheeler

I don't think I'll add cmake to the project. What is cmake fixing here that can't be done in our Makefile?

Adding cmake is nothing to do with bug fix, it's a combined commit. Cmake could be really helpful for cross-platform development when project grows big and configurations become more and more complicated, and more friendly to those who favor IDEs, like visual studio. But i also respected what you decide here.

By the way, the fix is on another PR (https://github.com/karpathy/llm.c/pull/460)

avflyer avatar May 25 '24 06:05 avflyer