mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-04 19:44:23 +08:00
[Misc] Cleanup duplicated flags. (#6081)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
This commit is contained in:
committed by
GitHub
parent
9711d75fda
commit
ffd8edeb2a
3
.gitignore
vendored
3
.gitignore
vendored
@@ -162,9 +162,8 @@ cscope.*
|
||||
# asv
|
||||
.asv
|
||||
|
||||
config.cmake
|
||||
.ycm_extra_conf.py
|
||||
**.png
|
||||
|
||||
# model file
|
||||
*.pth
|
||||
*.pth
|
||||
|
||||
@@ -10,18 +10,8 @@ include(cmake/util/Util.cmake)
|
||||
include(cmake/util/MshadowUtil.cmake)
|
||||
include(cmake/util/FindCUDA.cmake)
|
||||
|
||||
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config.cmake)
|
||||
include(${CMAKE_CURRENT_BINARY_DIR}/config.cmake)
|
||||
else()
|
||||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/config.cmake)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# NOTE: do not modify this file to change option values.
|
||||
# You can create a config.cmake at build folder
|
||||
# and add set(OPTION VALUE) to override these build options.
|
||||
# Alernatively, use cmake -DOPTION=VALUE through command-line.
|
||||
# Use bash script/build_dgl.sh -e '-DOPTION=VALUE' through command-line.
|
||||
dgl_option(USE_CUDA "Build with CUDA" OFF)
|
||||
dgl_option(USE_OPENMP "Build with OpenMP" ON)
|
||||
dgl_option(USE_LIBXSMM "Build with LIBXSMM library optimization" ON)
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Template custom cmake configuration for compiling
|
||||
#
|
||||
# This file is used to override the build options in build.
|
||||
# If you want to change the configuration, please use the following
|
||||
# steps. Assume you are on the root directory. First copy the this
|
||||
# file so that any local changes will be ignored by git
|
||||
#
|
||||
# $ mkdir build
|
||||
# $ cp cmake/config.cmake build
|
||||
#
|
||||
# Next modify the according entries, and then compile by
|
||||
#
|
||||
# $ cd build
|
||||
# $ cmake ..
|
||||
#
|
||||
# Then buld in parallel with 8 threads
|
||||
#
|
||||
# $ make -j8
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
#---------------------------------------------
|
||||
# Backend runtimes.
|
||||
#---------------------------------------------
|
||||
|
||||
# Whether enable CUDA during compile,
|
||||
#
|
||||
# Possible values:
|
||||
# - ON: enable CUDA with cmake's auto search
|
||||
# - OFF: disable CUDA
|
||||
# - /path/to/cuda: use specific path to cuda toolkit
|
||||
set(USE_CUDA OFF)
|
||||
|
||||
#---------------------------------------------
|
||||
# Misc.
|
||||
#---------------------------------------------
|
||||
# Whether to build cpp unittest executables.
|
||||
set(BUILD_CPP_TEST OFF)
|
||||
|
||||
# Whether to enable OpenMP.
|
||||
set(USE_OPENMP ON)
|
||||
|
||||
# Whether to build PyTorch plugins.
|
||||
set(BUILD_TORCH ON)
|
||||
|
||||
# Whether to build DGL sparse library.
|
||||
set(BUILD_SPARSE ON)
|
||||
@@ -166,11 +166,6 @@ in VS2019 x64 Native tools command prompt.
|
||||
CD ..\python
|
||||
python setup.py install
|
||||
|
||||
Compilation Flags
|
||||
`````````````````
|
||||
|
||||
See `config.cmake <https://github.com/dmlc/dgl/blob/master/cmake/config.cmake>`_.
|
||||
|
||||
|
||||
.. _backends:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user