|
@@ -20,10 +20,6 @@
|
|
|
|
|
|
#include <starpu.h>
|
|
|
|
|
|
-#ifdef STARPU_HAVE_HWLOC
|
|
|
-#include <hwloc.h>
|
|
|
-#endif
|
|
|
-
|
|
|
#ifdef __cplusplus
|
|
|
extern "C"
|
|
|
{
|
|
@@ -31,38 +27,6 @@ extern "C"
|
|
|
|
|
|
struct starpu_task;
|
|
|
|
|
|
-struct starpu_machine_topology
|
|
|
-{
|
|
|
- unsigned nworkers;
|
|
|
-
|
|
|
- unsigned ncombinedworkers;
|
|
|
-
|
|
|
- unsigned nsched_ctxs;
|
|
|
-#ifdef STARPU_HAVE_HWLOC
|
|
|
- hwloc_topology_t hwtopology;
|
|
|
-#else
|
|
|
- /* We maintain ABI compatibility with and without hwloc */
|
|
|
- void *dummy;
|
|
|
-#endif
|
|
|
-
|
|
|
- unsigned nhwcpus;
|
|
|
- unsigned nhwcudagpus;
|
|
|
- unsigned nhwopenclgpus;
|
|
|
-
|
|
|
- unsigned ncpus;
|
|
|
- unsigned ncudagpus;
|
|
|
- unsigned nopenclgpus;
|
|
|
-
|
|
|
- /* Where to bind workers ? */
|
|
|
- unsigned workers_bindid[STARPU_NMAXWORKERS];
|
|
|
-
|
|
|
- /* Which GPU(s) do we use for CUDA ? */
|
|
|
- unsigned workers_cuda_gpuid[STARPU_NMAXWORKERS];
|
|
|
-
|
|
|
- /* Which GPU(s) do we use for OpenCL ? */
|
|
|
- unsigned workers_opencl_gpuid[STARPU_NMAXWORKERS];
|
|
|
-};
|
|
|
-
|
|
|
/* This structure contains all the methods that implement a scheduling policy.
|
|
|
* An application may specify which scheduling strategy in the "sched_policy"
|
|
|
* field of the starpu_conf structure passed to the starpu_init function. */
|