starpu.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2009-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. #ifndef __STARPU_H__
  17. #define __STARPU_H__
  18. #include <stdlib.h>
  19. #ifndef _MSC_VER
  20. #include <stdint.h>
  21. #else
  22. #include <windows.h>
  23. typedef unsigned char uint8_t;
  24. typedef unsigned short uint16_t;
  25. typedef unsigned int uint32_t;
  26. typedef unsigned long long uint64_t;
  27. typedef UINT_PTR uintptr_t;
  28. typedef char int8_t;
  29. typedef short int16_t;
  30. typedef int int32_t;
  31. typedef long long int64_t;
  32. typedef INT_PTR intptr_t;
  33. #endif
  34. #include <starpu_config.h>
  35. #ifdef STARPU_HAVE_WINDOWS
  36. #include <windows.h>
  37. #endif
  38. #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
  39. #include <starpu_opencl.h>
  40. #endif
  41. #include <starpu_thread.h>
  42. #include <starpu_thread_util.h>
  43. #include <starpu_util.h>
  44. #include <starpu_data.h>
  45. #include <starpu_helper.h>
  46. #include <starpu_disk.h>
  47. #include <starpu_data_interfaces.h>
  48. #include <starpu_data_filters.h>
  49. #include <starpu_stdlib.h>
  50. #include <starpu_task_bundle.h>
  51. #include <starpu_task_dep.h>
  52. #include <starpu_task.h>
  53. #include <starpu_worker.h>
  54. #include <starpu_perfmodel.h>
  55. #include <starpu_worker.h>
  56. #ifndef BUILDING_STARPU
  57. #include <starpu_task_list.h>
  58. #endif
  59. #include <starpu_task_util.h>
  60. #include <starpu_scheduler.h>
  61. #include <starpu_sched_ctx.h>
  62. #include <starpu_expert.h>
  63. #include <starpu_rand.h>
  64. #include <starpu_cuda.h>
  65. #include <starpu_cublas.h>
  66. #include <starpu_cusparse.h>
  67. #include <starpu_bound.h>
  68. #include <starpu_hash.h>
  69. #include <starpu_profiling.h>
  70. #include <starpu_fxt.h>
  71. #include <starpu_driver.h>
  72. #include <starpu_tree.h>
  73. #include <starpu_openmp.h>
  74. #include <starpu_simgrid_wrap.h>
  75. #include <starpu_bitmap.h>
  76. #include <starpu_clusters.h>
  77. #include <starpu_perf_monitoring.h>
  78. #include <starpu_perf_steering.h>
  79. #include <starpu_fpga.h>
  80. #ifdef __cplusplus
  81. extern "C"
  82. {
  83. #endif
  84. /**
  85. @defgroup API_Initialization_and_Termination Initialization and Termination
  86. @{
  87. */
  88. /**
  89. Structure passed to the starpu_init() function to configure StarPU.
  90. It has to be initialized with starpu_conf_init(). When the default
  91. value is used, StarPU automatically selects the number of
  92. processing units and takes the default scheduling policy. The
  93. environment variables overwrite the equivalent parameters unless
  94. starpu_conf::precedence_over_environment_variables is set.
  95. */
  96. struct starpu_conf
  97. {
  98. /**
  99. @private
  100. Will be initialized by starpu_conf_init(). Should not be
  101. set by hand.
  102. */
  103. int magic;
  104. /**
  105. @private
  106. Tell starpu_init() if MPI will be initialized later.
  107. */
  108. int will_use_mpi;
  109. /**
  110. Name of the scheduling policy. This can also be specified
  111. with the environment variable \ref STARPU_SCHED. (default =
  112. <c>NULL</c>).
  113. */
  114. const char *sched_policy_name;
  115. /**
  116. Definition of the scheduling policy. This field is ignored
  117. if starpu_conf::sched_policy_name is set.
  118. (default = <c>NULL</c>)
  119. */
  120. struct starpu_sched_policy *sched_policy;
  121. /**
  122. Callback function that can later be used by the scheduler.
  123. The scheduler can retrieve this function by calling
  124. starpu_sched_ctx_get_sched_policy_callback()
  125. */
  126. void (*sched_policy_callback)(unsigned);
  127. /**
  128. For all parameters specified in this structure that can
  129. also be set with environment variables, by default,
  130. StarPU chooses the value of the environment variable
  131. against the value set in starpu_conf. Setting the parameter
  132. starpu_conf::precedence_over_environment_variables to 1 allows to give precedence
  133. to the value set in the structure over the environment
  134. variable.
  135. */
  136. int precedence_over_environment_variables;
  137. /**
  138. Number of CPU cores that StarPU can use. This can also be
  139. specified with the environment variable \ref STARPU_NCPU.
  140. (default = \c -1)
  141. */
  142. int ncpus;
  143. /**
  144. Number of CPU cores to that StarPU should leave aside. They can then
  145. be used by application threads, by calling starpu_get_next_bindid() to
  146. get their ID, and starpu_bind_thread_on() to bind the current thread to them.
  147. */
  148. int reserve_ncpus;
  149. /**
  150. Number of CUDA devices that StarPU can use. This can also
  151. be specified with the environment variable \ref
  152. STARPU_NCUDA.
  153. (default = \c -1)
  154. */
  155. int ncuda;
  156. /**
  157. Number of OpenCL devices that StarPU can use. This can also
  158. be specified with the environment variable \ref
  159. STARPU_NOPENCL.
  160. (default = \c -1)
  161. */
  162. int nopencl;
  163. /**
  164. Number of FPGA devices that StarPU can use. This can also
  165. be specified with the environment variable \ref
  166. STARPU_NFPGA.
  167. (default = -1)
  168. */
  169. int nfpga;
  170. /**
  171. Number of MPI Master Slave devices that StarPU can use.
  172. This can also be specified with the environment variable
  173. \ref STARPU_NMPI_MS.
  174. (default = \c -1)
  175. */
  176. int nmpi_ms;
  177. /**
  178. If this flag is set, the starpu_conf::workers_bindid array
  179. indicates where the different workers are bound, otherwise
  180. StarPU automatically selects where to bind the different
  181. workers. This can also be specified with the environment
  182. variable \ref STARPU_WORKERS_CPUID.
  183. (default = \c 0)
  184. */
  185. unsigned use_explicit_workers_bindid;
  186. /**
  187. If the starpu_conf::use_explicit_workers_bindid flag is
  188. set, this array indicates where to bind the different
  189. workers. The i-th entry of the starpu_conf::workers_bindid
  190. indicates the logical identifier of the processor which
  191. should execute the i-th worker. Note that the logical
  192. ordering of the CPUs is either determined by the OS, or
  193. provided by the \c hwloc library in case it is available.
  194. */
  195. unsigned workers_bindid[STARPU_NMAXWORKERS];
  196. /**
  197. If this flag is set, the CUDA workers will be attached to
  198. the CUDA devices specified in the
  199. starpu_conf::workers_cuda_gpuid array. Otherwise, StarPU
  200. affects the CUDA devices in a round-robin fashion. This can
  201. also be specified with the environment variable \ref
  202. STARPU_WORKERS_CUDAID.
  203. (default = \c 0)
  204. */
  205. unsigned use_explicit_workers_cuda_gpuid;
  206. /**
  207. If the starpu_conf::use_explicit_workers_cuda_gpuid flag is
  208. set, this array contains the logical identifiers of the
  209. CUDA devices (as used by \c cudaGetDevice()).
  210. */
  211. unsigned workers_cuda_gpuid[STARPU_NMAXWORKERS];
  212. /**
  213. If this flag is set, the OpenCL workers will be attached to
  214. the OpenCL devices specified in the
  215. starpu_conf::workers_opencl_gpuid array. Otherwise, StarPU
  216. affects the OpenCL devices in a round-robin fashion. This
  217. can also be specified with the environment variable \ref
  218. STARPU_WORKERS_OPENCLID.
  219. (default = \c 0)
  220. */
  221. unsigned use_explicit_workers_opencl_gpuid;
  222. /**
  223. If the starpu_conf::use_explicit_workers_opencl_gpuid flag
  224. is set, this array contains the logical identifiers of the
  225. OpenCL devices to be used.
  226. */
  227. unsigned workers_opencl_gpuid[STARPU_NMAXWORKERS];
  228. /**
  229. If this flag is set, the FPGA workers will be attached to
  230. the FPGA devices specified in the
  231. starpu_conf::workers_fpga_deviceid array. Otherwise, StarPU
  232. affects the FPGA devices in a round-robin fashion. This
  233. can also be specified with the environment variable \ref
  234. STARPU_WORKERS_FPGAID.
  235. (default = 0)
  236. */
  237. unsigned use_explicit_workers_fpga_deviceid;
  238. /**
  239. If the starpu_conf::use_explicit_workers_fpga_deviceid flag
  240. is set, this array contains the logical identifiers of the
  241. FPGA devices to be used.
  242. */
  243. unsigned workers_fpga_deviceid[STARPU_NMAXWORKERS];
  244. #ifdef STARPU_USE_FPGA
  245. /**
  246. This allows to specify the Maxeler file(s) to be loaded on FPGAs.
  247. This is an array of starpu_max_load, the last of which shall have
  248. file set to NULL. In order to use all available devices,
  249. starpu_max_load::engine_id_pattern can be set to "*", but only the
  250. last non-NULL entry can be set so.
  251. If this is not set, it is assumed that the basic static SLiC
  252. interface is used.
  253. */
  254. struct starpu_max_load *fpga_load;
  255. #else
  256. void *fpga_load;
  257. #endif
  258. /**
  259. If this flag is set, the MPI Master Slave workers will be
  260. attached to the MPI Master Slave devices specified in the
  261. array starpu_conf::workers_mpi_ms_deviceid. Otherwise,
  262. StarPU affects the MPI Master Slave devices in a
  263. round-robin fashion.
  264. (default = \c 0)
  265. */
  266. unsigned use_explicit_workers_mpi_ms_deviceid;
  267. /**
  268. If the flag
  269. starpu_conf::use_explicit_workers_mpi_ms_deviceid is set,
  270. the array contains the logical identifiers of the MPI
  271. Master Slave devices to be used.
  272. */
  273. unsigned workers_mpi_ms_deviceid[STARPU_NMAXWORKERS];
  274. /**
  275. If this flag is set, StarPU will recalibrate the bus. If
  276. this value is equal to -1, the default value is used. This
  277. can also be specified with the environment variable \ref
  278. STARPU_BUS_CALIBRATE.
  279. (default = \c 0)
  280. */
  281. int bus_calibrate;
  282. /**
  283. If this flag is set, StarPU will calibrate the performance
  284. models when executing tasks. If this value is equal to -1,
  285. the default value is used. If the value is equal to 1, it
  286. will force continuing calibration. If the value is equal to
  287. 2, the existing performance models will be overwritten.
  288. This can also be specified with the environment variable
  289. \ref STARPU_CALIBRATE.
  290. (default = \c 0)
  291. */
  292. int calibrate;
  293. /**
  294. By default, StarPU executes parallel tasks concurrently.
  295. Some parallel libraries (e.g. most OpenMP implementations)
  296. however do not support concurrent calls to parallel code.
  297. In such case, setting this flag makes StarPU only start one
  298. parallel task at a time (but other CPU and GPU tasks are
  299. not affected and can be run concurrently). The parallel
  300. task scheduler will however still try varying combined
  301. worker sizes to look for the most efficient ones.
  302. This can also be specified with the environment variable
  303. \ref STARPU_SINGLE_COMBINED_WORKER.
  304. (default = \c 0)
  305. */
  306. int single_combined_worker;
  307. /**
  308. This flag should be set to 1 to disable asynchronous copies
  309. between CPUs and all accelerators.
  310. The AMD implementation of OpenCL is known to fail when
  311. copying data asynchronously. When using this
  312. implementation, it is therefore necessary to disable
  313. asynchronous data transfers.
  314. This can also be specified with the environment variable
  315. \ref STARPU_DISABLE_ASYNCHRONOUS_COPY.
  316. This can also be specified at compilation time by giving to
  317. the configure script the option \ref
  318. disable-asynchronous-copy "--disable-asynchronous-copy".
  319. (default = \c 0)
  320. */
  321. int disable_asynchronous_copy;
  322. /**
  323. This flag should be set to 1 to disable asynchronous copies
  324. between CPUs and CUDA accelerators.
  325. This can also be specified with the environment variable
  326. \ref STARPU_DISABLE_ASYNCHRONOUS_CUDA_COPY.
  327. This can also be specified at compilation time by giving to
  328. the configure script the option \ref
  329. disable-asynchronous-cuda-copy
  330. "--disable-asynchronous-cuda-copy".
  331. (default = \c 0)
  332. */
  333. int disable_asynchronous_cuda_copy;
  334. /**
  335. This flag should be set to 1 to disable asynchronous copies
  336. between CPUs and OpenCL accelerators.
  337. The AMD implementation of OpenCL is known to fail when
  338. copying data asynchronously. When using this
  339. implementation, it is therefore necessary to disable
  340. asynchronous data transfers.
  341. This can also be specified with the environment variable
  342. \ref STARPU_DISABLE_ASYNCHRONOUS_OPENCL_COPY.
  343. This can also be specified at compilation time by giving to
  344. the configure script the option \ref
  345. disable-asynchronous-opencl-copy
  346. "--disable-asynchronous-opencl-copy".
  347. (default = \c 0)
  348. */
  349. int disable_asynchronous_opencl_copy;
  350. /**
  351. This flag should be set to 1 to disable asynchronous copies
  352. between CPUs and MPI Master Slave devices.
  353. This can also be specified with the environment variable
  354. \ref STARPU_DISABLE_ASYNCHRONOUS_MPI_MS_COPY.
  355. This can also be specified at compilation time by giving to
  356. the configure script the option \ref
  357. disable-asynchronous-mpi-master-slave-copy
  358. "--disable-asynchronous-mpi-master-slave-copy".
  359. (default = \c 0).
  360. */
  361. int disable_asynchronous_mpi_ms_copy;
  362. /**
  363. This flag should be set to 1 to disable asynchronous copies
  364. between CPUs and FPGA devices.
  365. This can also be specified with the environment variable
  366. \ref STARPU_DISABLE_ASYNCHRONOUS_FPGA_COPY.
  367. This can also be specified at compilation time by giving to
  368. the configure script the option \ref
  369. disable-asynchronous-fpga-copy
  370. "--disable-asynchronous-fpga-copy".
  371. (default = 0).
  372. */
  373. int disable_asynchronous_fpga_copy;
  374. /**
  375. Enable CUDA/OpenGL interoperation on these CUDA devices.
  376. This can be set to an array of CUDA device identifiers for
  377. which \c cudaGLSetGLDevice() should be called instead of \c
  378. cudaSetDevice(). Its size is specified by the
  379. starpu_conf::n_cuda_opengl_interoperability field below
  380. (default = <c>NULL</c>)
  381. */
  382. unsigned *cuda_opengl_interoperability;
  383. /**
  384. Size of the array starpu_conf::cuda_opengl_interoperability
  385. */
  386. unsigned n_cuda_opengl_interoperability;
  387. /**
  388. Array of drivers that should not be launched by StarPU. The
  389. application will run in one of its own threads.
  390. (default = <c>NULL</c>)
  391. */
  392. struct starpu_driver *not_launched_drivers;
  393. /**
  394. The number of StarPU drivers that should not be launched by
  395. StarPU, i.e number of elements of the array
  396. starpu_conf::not_launched_drivers.
  397. (default = \c 0)
  398. */
  399. unsigned n_not_launched_drivers;
  400. /**
  401. Specify the buffer size used for FxT tracing. Starting from
  402. FxT version 0.2.12, the buffer will automatically be
  403. flushed when it fills in, but it may still be interesting
  404. to specify a bigger value to avoid any flushing (which
  405. would disturb the trace).
  406. */
  407. uint64_t trace_buffer_size;
  408. /**
  409. Set the mininum priority used by priorities-aware
  410. schedulers.
  411. This also can be specified with the environment variable \ref
  412. STARPU_MIN_PRIO
  413. */
  414. int global_sched_ctx_min_priority;
  415. /**
  416. Set the maxinum priority used by priorities-aware
  417. schedulers.
  418. This also can be specified with the environment variable \ref
  419. STARPU_MAX_PRIO
  420. */
  421. int global_sched_ctx_max_priority;
  422. #ifdef STARPU_WORKER_CALLBACKS
  423. void (*callback_worker_going_to_sleep)(unsigned workerid);
  424. void (*callback_worker_waking_up)(unsigned workerid);
  425. #endif
  426. /**
  427. Specify if StarPU should catch \c SIGINT, \c SIGSEGV and \c SIGTRAP
  428. signals to make sure final actions (e.g dumping FxT trace
  429. files) are done even though the application has crashed. By
  430. default (value = \c 1), signals are catched. It should be
  431. disabled on systems which already catch these signals for
  432. their own needs (e.g JVM)
  433. This can also be specified with the environment variable
  434. \ref STARPU_CATCH_SIGNALS.
  435. */
  436. int catch_signals;
  437. /**
  438. Specify whether StarPU should automatically start to collect
  439. performance counters after initialization
  440. */
  441. unsigned start_perf_counter_collection;
  442. /**
  443. Minimum spinning backoff of drivers (default = \c 1)
  444. */
  445. unsigned driver_spinning_backoff_min;
  446. /**
  447. Maximum spinning backoff of drivers. (default = \c 32)
  448. */
  449. unsigned driver_spinning_backoff_max;
  450. /**
  451. Specify if CUDA workers should do only fast allocations
  452. when running the datawizard progress of
  453. other memory nodes. This will pass the interval value
  454. _STARPU_DATAWIZARD_ONLY_FAST_ALLOC to the allocation method.
  455. Default value is 0, allowing CUDA workers to do slow
  456. allocations.
  457. This can also be specified with the environment variable
  458. \ref STARPU_CUDA_ONLY_FAST_ALLOC_OTHER_MEMNODES.
  459. */
  460. int cuda_only_fast_alloc_other_memnodes;
  461. };
  462. /**
  463. Initialize the \p conf structure with the default values. In case
  464. some configuration parameters are already specified through
  465. environment variables, starpu_conf_init() initializes the fields of
  466. \p conf according to the environment variables.
  467. For instance if \ref STARPU_CALIBRATE is set, its value is put in
  468. the field starpu_conf::calibrate of \p conf.
  469. Upon successful completion, this function returns 0. Otherwise,
  470. <c>-EINVAL</c> indicates that the argument was <c>NULL</c>.
  471. */
  472. int starpu_conf_init(struct starpu_conf *conf);
  473. /**
  474. Set fields of \p conf so that no worker is enabled, i.e. set
  475. starpu_conf::ncpus = 0, starpu_conf::ncuda = 0, etc.
  476. This allows to portably enable only a given type of worker:
  477. <br/>
  478. <c>
  479. starpu_conf_noworker(&conf);<br/>
  480. conf.ncpus = -1;
  481. </c>
  482. */
  483. int starpu_conf_noworker(struct starpu_conf *conf);
  484. /**
  485. StarPU initialization method, must be called prior to any other
  486. StarPU call. It is possible to specify StarPU’s configuration (e.g.
  487. scheduling policy, number of cores, ...) by passing a
  488. non-<c>NULL</c> \p conf. Default configuration is used if \p conf
  489. is <c>NULL</c>. Upon successful completion, this function returns
  490. 0. Otherwise, <c>-ENODEV</c> indicates that no worker was available
  491. (and thus StarPU was not initialized).
  492. */
  493. int starpu_init(struct starpu_conf *conf) STARPU_WARN_UNUSED_RESULT;
  494. /**
  495. Similar to starpu_init(), but also take the \p argc and \p argv as
  496. defined by the application, which is necessary when running in
  497. Simgrid mode or MPI Master Slave mode.
  498. Do not call starpu_init() and starpu_initialize() in the same
  499. program.
  500. */
  501. int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv);
  502. /**
  503. Return 1 if StarPU is already initialized.
  504. */
  505. int starpu_is_initialized(void);
  506. /**
  507. Wait for starpu_init() call to finish.
  508. */
  509. void starpu_wait_initialized(void);
  510. /**
  511. StarPU termination method, must be called at the end of the
  512. application: statistics and other post-mortem debugging information
  513. are not guaranteed to be available until this method has been
  514. called.
  515. */
  516. void starpu_shutdown(void);
  517. /**
  518. Suspend the processing of new tasks by workers. It can be used in a
  519. program where StarPU is used during only a part of the execution.
  520. Without this call, the workers continue to poll for new tasks in a
  521. tight loop, wasting CPU time. The symmetric call to starpu_resume()
  522. should be used to unfreeze the workers.
  523. */
  524. void starpu_pause(void);
  525. /**
  526. Symmetrical call to starpu_pause(), used to resume the workers
  527. polling for new tasks.
  528. */
  529. void starpu_resume(void);
  530. /**
  531. Return !0 if task processing by workers is currently paused, 0 otherwise.
  532. */
  533. int starpu_is_paused(void);
  534. /**
  535. Value to be passed to starpu_get_next_bindid() and
  536. starpu_bind_thread_on() when binding a thread which will
  537. significantly eat CPU time, and should thus have its own dedicated
  538. CPU.
  539. */
  540. #define STARPU_THREAD_ACTIVE (1 << 0)
  541. /**
  542. Return a PU binding ID which can be used to bind threads with
  543. starpu_bind_thread_on(). \p flags can be set to
  544. ::STARPU_THREAD_ACTIVE or 0. When \p npreferred is set to non-zero,
  545. \p preferred is an array of size \p npreferred in which a
  546. preference of PU binding IDs can be set. By default StarPU will
  547. return the first PU available for binding.
  548. */
  549. unsigned starpu_get_next_bindid(unsigned flags, unsigned *preferred, unsigned npreferred);
  550. /**
  551. Bind the calling thread on the given \p cpuid (which should have
  552. been obtained with starpu_get_next_bindid()).
  553. Return -1 if a thread was already bound to this PU (but binding
  554. will still have been done, and a warning will have been printed),
  555. so the caller can tell the user how to avoid the issue.
  556. \p name should be set to a unique string so that different calls
  557. with the same name for the same \p cpuid does not produce a warning.
  558. */
  559. int starpu_bind_thread_on(int cpuid, unsigned flags, const char *name);
  560. /**
  561. Print a description of the topology on \p f.
  562. */
  563. void starpu_topology_print(FILE *f);
  564. /**
  565. Return 1 if asynchronous data transfers between CPU and
  566. accelerators are disabled.
  567. */
  568. int starpu_asynchronous_copy_disabled(void);
  569. /**
  570. Return 1 if asynchronous data transfers between CPU and CUDA
  571. accelerators are disabled.
  572. */
  573. int starpu_asynchronous_cuda_copy_disabled(void);
  574. /**
  575. Return 1 if asynchronous data transfers between CPU and OpenCL
  576. accelerators are disabled.
  577. */
  578. int starpu_asynchronous_opencl_copy_disabled(void);
  579. /**
  580. Return 1 if asynchronous data transfers between CPU and FPGA
  581. devices are disabled.
  582. */
  583. int starpu_asynchronous_fpga_copy_disabled(void);
  584. /**
  585. Return 1 if asynchronous data transfers between CPU and MPI Slave
  586. devices are disabled.
  587. */
  588. int starpu_asynchronous_mpi_ms_copy_disabled(void);
  589. /**
  590. Call starpu_profiling_bus_helper_display_summary() and
  591. starpu_profiling_worker_helper_display_summary()
  592. */
  593. void starpu_display_stats(void);
  594. /** @} */
  595. /**
  596. @defgroup API_Versioning Versioning
  597. @{
  598. */
  599. /**
  600. Return as 3 integers the version of StarPU used when running the
  601. application.
  602. */
  603. void starpu_get_version(int *major, int *minor, int *release);
  604. /** @} */
  605. #ifdef __cplusplus
  606. }
  607. #endif
  608. #include "starpu_deprecated_api.h"
  609. #endif /* __STARPU_H__ */