Add cmake and fix OMP
- Add cmake build rules.
- Fix OMP compilation error in VS2022.
- OpenMP can be turn off on windows.
I don't think I'll add cmake to the project. What is cmake fixing here that can't be done in our Makefile?
Also - we already have a CMake PR https://github.com/karpathy/llm.c/pull/59
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)