Merge pull request #639 from rosslwheeler/bug_fixes/windows_clean_up

Add unistd.h to fix Windows cuDNN build
This commit is contained in:
Andrej 2024-06-25 11:23:31 -07:00 committed by GitHub
commit 1f49cc1c03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View file

@ -4,6 +4,7 @@
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <math.h>

View file

@ -7,6 +7,7 @@
#ifndef UTILS_H
#define UTILS_H
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -1,11 +1,6 @@
/*
GPT-2 Transformer Neural Net training loop. See README.md for usage.
*/
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>