blob: f3297093a267c3a329aec2e305fd11554af3778f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <iostream>
#include <odp_api.h>
#include <odp/helper/odph_api.h>
int main(int argc ODP_UNUSED, const char *argv[] ODP_UNUSED)
{
odp_instance_t inst;
odp_init_global(&inst, NULL, NULL);
odp_init_local(inst, ODP_THREAD_WORKER);
std::cout << "\tODP API version: " << odp_version_api_str() << std::endl;
std::cout << "\tODP implementation version: " << odp_version_impl_str() << std::endl;
odp_term_local();
odp_term_global(inst);
return 0;
}
|