-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.c
39 lines (33 loc) · 1.04 KB
/
version.c
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
// =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2016, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the COPYING file for details.
//
// This software was created at the Indiana University Center for Research in
// Extreme Scale Technologies (CREST).
// =============================================================================
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <hpx/hpx.h>
#include <libhpx/libhpx.h>
void hpx_print_version(void) {
printf("HPX version %s\n", HPX_VERSION);
}
void libhpx_print_version(void) {
printf("libhpx version %s\n", LIBHPX_VERSION);
}
static const int _libhpx_version[3] = {
LIBHPX_MAJOR_VERSION,
LIBHPX_MINOR_VERSION,
LIBHPX_PATCH_VERSION
};
void libhpx_get_version(int version[3]) {
memcpy(version, _libhpx_version, 3 * sizeof(int));
}