forked from stepfun-ai/StepMesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.hpp
More file actions
27 lines (23 loc) · 642 Bytes
/
util.hpp
File metadata and controls
27 lines (23 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright (c) 2025, StepFun Authors. All rights reserved. */
#include <torch/extension.h>
#include <sys/shm.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <pybind11/stl.h>
#include <unordered_map>
#include <vector>
#include <cassert>
#include <iostream>
#include <mutex>
#include "ps/ps.h"
#ifndef UTIL_H_
typedef std::tuple<uint64_t, std::vector<torch::Tensor>, std::vector<uint64_t>>
ServerDataBatch;
#define UTIL_H_
typedef std::tuple<uint64_t, std::vector<torch::Tensor>, std::vector<uint64_t>>
ServerDataBatch;
#endif // UTIL_H_