mirror of
https://github.com/karpathy/llm.c.git
synced 2026-07-28 20:35:09 -04:00
Move socket header to utils.h
This commit is contained in:
parent
5645bd18b1
commit
d27331cced
2 changed files with 1 additions and 6 deletions
|
|
@ -15,6 +15,7 @@
|
|||
// implementation of dirent for Windows is in dev/unistd.h
|
||||
#ifndef _WIN32
|
||||
#include <dirent.h>
|
||||
#include <arpa/inet.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,12 +5,6 @@ Utilities for ZeRO sharding
|
|||
#ifndef LLMC_ZERO_CUH
|
||||
#define LLMC_ZERO_CUH
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#include <cuda_runtime_api.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue