Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Windows #133

Closed
wants to merge 6 commits into from
Closed

Building on Windows #133

wants to merge 6 commits into from

Conversation

azret
Copy link
Contributor

@azret azret commented Apr 15, 2024

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

#19 (comment)

@azret azret changed the title Feature/MSVC Building on Windows Apr 15, 2024
@rosslwheeler
Copy link
Contributor

@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 #118

@azret
Copy link
Contributor Author

azret commented Apr 15, 2024

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)

@rosslwheeler
Copy link
Contributor

@azret - the changes are in the PR already. Just creating a smaller version. Thanks.

@azret
Copy link
Contributor Author

azret commented Apr 20, 2024

Closing this. See #19

@azret azret closed this Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants