mic-scc-support.texi 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @c -*-texinfo-*-
  2. @c This file is part of the StarPU Handbook.
  3. @c Copyright (C) 2013 Universit@'e de Bordeaux 1
  4. @c See the file starpu.texi for copying conditions.
  5. @section Compilation
  6. SCC support just needs the presence of the RCCE library.
  7. MIC support actually needs two compilations of StarPU, one for the host and one for
  8. the device. The @code{super-configure} script can be used to achieve this: it basically
  9. calls @code{configure} from @code{build_mic} and @code{build_host}, then @code{make} and
  10. @code{make install}.
  11. @c TODO: move to configuration section ?
  12. It can be parameterized with the following environment variables:
  13. @table @asis
  14. @item @code{MIC_HOST}
  15. Defines the value of the @code{--host} parameter passed to @code{configure} for the
  16. cross-compilation. The current default is @code{x86_64-k1om-linux}.
  17. @item @code{MIC_CC_PATH}
  18. Defines the path to the MIC cross-compiler. The current default is @code{/usr/linux-k1om-4.7/bin/}.
  19. @item @code{COI_DIR}
  20. Defines the path to the COI library. The current default is @code{/opt/intel/mic/coi}
  21. @end table
  22. @section Launching programs
  23. SCC programs are started through RCCE
  24. MIC programs are started from the host. StarPU automatically
  25. starts the same program on MIC devices. It however needs to get
  26. the MIC-cross-built binary. It will look for the file given by the
  27. @code{STARPU_MIC_SINK_PROGRAM_NAME} environment variable or in the directory
  28. given by the @code{STARPU_MIC_SINK_PROGRAM_PATH} environment variable, or in
  29. the @code{mic_sink_program_path} field of the @code{starpu_config} structure.
  30. It will also look in the current directory for the same binary name plus a
  31. @code{-mic} or @code{_mic} suffix.