plastimatch
Loading...
Searching...
No Matches
threading.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _threading_h_
5#define _threading_h_
6
7#include "plmbase_config.h"
8#include <string>
9
10/* GCS: You can't use enum types in mixed C / C++ code, because they
11 are not required to have the same size. Therefore, revert to #defines */
12typedef int Threading;
13#define THREADING_UNKNOWN 0
14#define THREADING_CPU_SINGLE 1
15#define THREADING_CPU_OPENMP 2
16#define THREADING_BROOK 3
17#define THREADING_CUDA 4
18#define THREADING_OPENCL 5
19
20PLMBASE_API Threading threading_parse (const std::string& string);
21PLMBASE_API Threading threading_parse (const char* string);
22
23#endif
#define PLMBASE_API
Definition plmbase_config.h:19
Threading threading_parse(const std::string &string)
Definition threading.cxx:10
int Threading
Definition threading.h:12