You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.example.cmake 1.5 kB

4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ######################
  2. ### Set targets ######
  3. ######################
  4. # hetu main version, choose from (mkl, gpu, all)
  5. # if using mkl (for CPU) or all, OpenMP(*), mkl required
  6. # if using gpu or all, OpenMP(*), CUDA(*), CUDNN(*) required
  7. set(HETU_VERSION "all")
  8. # whether to compile allreduce module
  9. # nccl(*), openmpi required
  10. set(HETU_ALLREDUCE ON)
  11. # whether to compile ps module
  12. # protobuf(*), zeromq required
  13. set(HETU_PS ON)
  14. # whether to compile geometric module (for GNNs)
  15. # pybind11(*), metis(*) required
  16. set(HETU_GEOMETRIC OFF)
  17. # whether to compile cache module (for PS)
  18. # to enable this, you must turn HETU_PS on
  19. # pybind11(*) required
  20. set(HETU_CACHE ON)
  21. # whether to compile Hetu ML Module
  22. set(HETU_ML OFF)
  23. set(HETU_PARALLEL_ML OFF)
  24. ######################
  25. ### Set paths ########
  26. ######################
  27. # CUDA version >= 10.1
  28. set(CUDAToolkit_ROOT /usr/local/cuda)
  29. # NCCL version >= 2.8
  30. set(NCCL_ROOT $ENV{CONDA_PREFIX})
  31. set(CUDNN_ROOT)
  32. # MPI version >= 3.1 (OpenMPI version >= 4.0.3)
  33. # if valid version not found, we'll download and compile it in time (openmpi-4.0.3)
  34. set(MPI_HOME $ENV{CONDA_PREFIX})
  35. # MKL 1.6.1, MKL_ROOT: root directory of mkl, MKL_BUILD: build directory of mkl
  36. # if not found, we'll download and compile it in time
  37. set(MKL_ROOT $ENV{CONDA_PREFIX})
  38. set(MKL_BUILD $ENV{CONDA_PREFIX})
  39. # ZMQ 4.3.2, ZMQ_ROOT: root directory of zeromq, ZMQ_BUILD: build directory of zeromq
  40. # if not found, we'll download and compile it in time
  41. set(ZMQ_ROOT $ENV{CONDA_PREFIX})
  42. set(ZMQ_BUILD $ENV{CONDA_PREFIX})