llm.c
llm.c copied to clipboard
Building on Windows
Minimum set of support files to build on Windows. Use build_msvc.bat in a Visual Studio Command x64 Prompt to build with MSVC.
See #19 for some comments re /fp:fast and /O
https://github.com/karpathy/llm.c/issues/19#issuecomment-2053990872
@azret - thanks but there are still some other changes needed to support OpenMP 5.2. Will create a new PR for this per comments in https://github.com/karpathy/llm.c/pull/118
OpenMP
Yeah. We'll need add the OpenMP option as well. For now just copy this files locally and add it in the build_msvc.bat.
e.g. cl.exe /openmp /O2 /fp:fast /I. /I .\dev\win test_gpt2.c
I'll add the CUDA build scripts later tomorrow. (For now in Visual Studio create a new CUDA project and add the needed files)
@azret - the changes are in the PR already. Just creating a smaller version. Thanks.
Closing this. See #19