Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
memcontrol.h
Go to the documentation of this file.
1 /*Copyright (c) 2011, Edgar Solomonik, all rights reserved.*/
2 
3 #ifndef __MEMCONTROL_H__
4 #define __MEMCONTROL_H__
5 
6 namespace CTF_int {
7  void inc_tot_mem_used(int64_t a);
8  int64_t proc_bytes_used();
9  int64_t proc_bytes_total();
10  int64_t proc_bytes_available();
11  void set_memcap(double cap);
12  void set_mem_size(int64_t size);
13  int get_num_instances();
14 }
15 
16 
17 #endif
void inc_tot_mem_used(int64_t a)
Definition: memcontrol.cxx:80
int64_t proc_bytes_used()
gives total memory used on this MPI process
Definition: memcontrol.cxx:538
void set_memcap(double cap)
sets what fraction of the memory capacity CTF can use
Definition: memcontrol.cxx:118
int64_t proc_bytes_available()
gives total memory available on this MPI process
Definition: memcontrol.cxx:655
int64_t proc_bytes_total()
gives total memory size per MPI process
Definition: memcontrol.cxx:604
void set_mem_size(int64_t size)
sets what fraction of the memory capacity CTF can use
Definition: memcontrol.cxx:110
int get_num_instances()
Definition: memcontrol.cxx:531