forked from heterodb/pg-strom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheterodb_extra.h
42 lines (36 loc) · 1.17 KB
/
heterodb_extra.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* heterodb_extra.h
*
* Definitions of HeteroDB Extra Package
* --
* Copyright 2011-2021 (C) KaiGai Kohei <[email protected]>
* Copyright 2017-2021 (C) HeteroDB,Inc
*
* This software is an extension of PostgreSQL; You can use, copy,
* modify or distribute it under the terms of 'LICENSE' included
* within this package.
*/
#ifndef HETERODB_EXTRA_H
#define HETERODB_EXTRA_H
#define HETERODB_EXTRA_FILENAME "heterodb_extra.so"
#define HETERODB_EXTRA_PATHNAME "/usr/lib64/" HETERODB_EXTRA_FILENAME
#define HETERODB_EXTRA_MAX_GPUS 63
#define HETERODB_LICENSE_PATHNAME "/etc/heterodb.license"
/* fixed length of the license key (2048bits) */
#define HETERODB_LICENSE_KEYLEN 256
#define HETERODB_LICENSE_KEYBITS (8 * HETERODB_LICENSE_KEYLEN)
#define HETERODB_EXTRA_API_VERSION 20240418
/* cufile.c */
typedef struct
{
unsigned long m_offset; /* destination offset from the base address
* base = mgmem + offset */
unsigned int fchunk_id; /* source page index of the file. */
unsigned int nr_pages; /* number of pages to be loaded */
} strom_io_chunk;
typedef struct
{
unsigned int nr_chunks;
strom_io_chunk ioc[1];
} strom_io_vector;
#endif /* HETERODB_EXTRA_H */