Blame include/memkind/internal/memkind_bandwidth.h
|
Packit Service |
7f3b24 |
// SPDX-License-Identifier: BSD-2-Clause
|
|
Packit Service |
7f3b24 |
/* Copyright (C) 2019 - 2020 Intel Corporation. */
|
|
Packit |
345191 |
|
|
Packit |
345191 |
#pragma once
|
|
Packit |
345191 |
#ifdef __cplusplus
|
|
Packit |
345191 |
extern "C" {
|
|
Packit |
345191 |
#endif
|
|
Packit |
345191 |
|
|
Packit |
345191 |
#include <memkind/internal/vec.h>
|
|
Packit |
345191 |
#include <numa.h>
|
|
Packit |
345191 |
#include <stdbool.h>
|
|
Packit |
345191 |
|
|
Packit |
345191 |
struct vec_cpu_node;
|
|
Packit |
345191 |
|
|
Packit |
345191 |
typedef int (*get_node_bitmask)(struct bitmask *);
|
|
Packit |
345191 |
typedef int (*fill_bandwidth_values)(int *);
|
|
Packit |
345191 |
|
|
Packit |
345191 |
int bandwidth_fill(int *bandwidth, get_node_bitmask get_bitmask);
|
|
Packit |
345191 |
int set_closest_numanode(fill_bandwidth_values fill, const char *env,
|
|
Packit |
345191 |
struct vec_cpu_node **closest_numanode, int num_cpu, bool is_single_node);
|
|
Packit |
345191 |
void set_bitmask_for_all_closest_numanodes(unsigned long *nodemask,
|
|
Packit |
345191 |
unsigned long maxnode, const struct vec_cpu_node *closest_numanode,
|
|
Packit |
345191 |
int num_cpu);
|
|
Packit |
345191 |
int set_bitmask_for_current_closest_numanode(unsigned long *nodemask,
|
|
Packit |
345191 |
unsigned long maxnode, const struct vec_cpu_node *closest_numanode,
|
|
Packit |
345191 |
int num_cpu);
|
|
Packit |
345191 |
|
|
Packit |
345191 |
#ifdef __cplusplus
|
|
Packit |
345191 |
}
|
|
Packit |
345191 |
#endif
|