FasTensor
1.0.0
Transform Supercomputing for AI
src
ft_chunk.h
Go to the documentation of this file.
1
/*
2
****************************
3
4
FasTensor (FT) Copyright (c) 2021, The Regents of the University of
5
California, through Lawrence Berkeley National Laboratory (subject to
6
receipt of any required approvals from the U.S. Dept. of Energy).
7
All rights reserved.
8
9
If you have questions about your rights to use or distribute this software,
10
please contact Berkeley Lab's Intellectual Property Office at
11
[email protected]
.
12
13
NOTICE. This Software was developed under funding from the U.S. Department
14
of Energy and the U.S. Government consequently retains certain rights. As
15
such, the U.S. Government has been granted for itself and others acting on
16
its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
17
Software to reproduce, distribute copies to the public, prepare derivative
18
works, and perform publicly and display publicly, and to permit others to do so.
19
20
21
****************************
22
23
24
*** License Agreement ***
25
26
FasTensor (FT) Copyright (c) 2021, The Regents of the University of
27
California, through Lawrence Berkeley National Laboratory (subject to
28
receipt of any required approvals from the U.S. Dept. of Energy).
29
All rights reserved.
30
31
Redistribution and use in source and binary forms, with or without
32
modification, are permitted provided that the following conditions are met:
33
34
(1) Redistributions of source code must retain the above copyright notice,
35
this list of conditions and the following disclaimer.
36
37
(2) Redistributions in binary form must reproduce the above copyright
38
notice, this list of conditions and the following disclaimer in the
39
documentation and/or other materials provided with the distribution.
40
41
(3) Neither the name of the University of California, Lawrence Berkeley
42
National Laboratory, U.S. Dept. of Energy nor the names of its contributors
43
may be used to endorse or promote products derived from this software
44
without specific prior written permission.
45
46
47
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
48
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
49
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
50
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
51
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
52
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
53
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
54
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
55
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
57
POSSIBILITY OF SUCH DAMAGE.
58
59
You are under no obligation whatsoever to provide any bug fixes, patches,
60
or upgrades to the features, functionality or performance of the source
61
code ("Enhancements") to anyone; however, if you choose to make your
62
Enhancements available either publicly, or directly to Lawrence Berkeley
63
National Laboratory, without imposing a separate written license agreement
64
for such Enhancements, then you hereby grant the following license: a
65
non-exclusive, royalty-free perpetual license to install, use, modify,
66
prepare derivative works, incorporate into other computer software,
67
distribute, and sublicense such enhancements or derivative works thereof,
68
in binary and source code form.
69
*/
70
80
#ifndef AU_CHUNK_H
81
#define AU_CHUNK_H
82
83
#include <vector>
84
85
extern
int
default_total_chunk_cells
;
//It is 1GB in float type
86
93
void
GetDefaultChunkSize
(std::vector<int> &chunk_size_p, std::vector<int> &overlap_size_p);
94
95
#endif
default_total_chunk_cells
int default_total_chunk_cells
Definition:
ft_chunk.cpp:81
GetDefaultChunkSize
void GetDefaultChunkSize(std::vector< int > &chunk_size_p, std::vector< int > &overlap_size_p)
Get the Default chunk size Convert default_total_chunk_cells into chunk_size.
Generated by
1.9.1