Skip to content

Commit

Permalink
Drop version hard-coding from YCM conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Mar 6, 2024
1 parent 72a76ee commit ae8a7bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

CONDA_PREFIX = os.environ["CONDA_PREFIX"]
NVJITLINK_DIR = Path(__file__).parent
VER = sys.version_info
PYTHON_INCLUDE_NAME = "python3.10" # Not ideal
PYTHON_VERSION = sys.version_info
PYTHON_INCLUDE_NAME = "python%d.%d" % PYTHON_VERSION

CONDA_INCLUDE_DIR = Path(CONDA_PREFIX, "include")
PYTHON_INCLUDE_DIR = Path(CONDA_INCLUDE_DIR, PYTHON_INCLUDE_NAME)
NVJITLINK_INCLUDE_DIR = Path(NVJITLINK_DIR, "include")
CUDA_INCLUDE_DIR = "/usr/local/cuda-12.0/include"
CUDA_INCLUDE_DIR = "/usr/local/cuda/include"

flags = [
"--cuda-gpu-arch=sm_50",
Expand Down

0 comments on commit ae8a7bc

Please sign in to comment.