Skip to content

CMAKE_BUILD_TYPE and CUDA_SDK_ROOT_DIR #18

@jamesdalg

Description

@jamesdalg

I am attempting to install openmm-tensorflow and am getting a prompt in ccmake about the build type and the CUDA_SDK_ROOT_DIR.

                                                     Page 1 of 1
 **CMAKE_BUILD_TYPE**                *
 CMAKE_INSTALL_PREFIX             /usr/local/openmm
 CUDA_HOST_COMPILER               /usr/bin/cc
 **CUDA_SDK_ROOT_DIR**                CUDA_SDK_ROOT_DIR-NOTFOUND
 CUDA_TOOLKIT_ROOT_DIR            /usr/local/cuda-12.2
 CUDA_USE_STATIC_CUDA_RUNTIME     ON
 CUDA_rt_LIBRARY                  /usr/lib/x86_64-linux-gnu/librt.a
 NN_BUILD_CUDA_LIB                ON
 NN_BUILD_OPENCL_LIB              ON
 NN_BUILD_PYTHON_WRAPPERS         ON
 OPENCL_INCLUDE_DIR               /usr/include
 OPENCL_LIBRARY                   /usr/lib/x86_64-linux-gnu/libOpenCL.so
 OPENMM_DIR                       /usr/local/openmm
 PYTHON_EXECUTABLE                /home/jd/mambaforge/envs/openmmtensorflow/bin/python
 SWIG_EXECUTABLE                  /usr/bin/swig
 TENSORFLOW_DIR                   /usr/local


I have configured my environment as the following:

(openmmtensorflow) jd@oban:/code/openmm/openmm_plugins/openmm-tensorflow/build$ conda env export
name: openmmtensorflow
channels:
  - nvidia  - conda-forge
  - omnia
  - bioconda
  - defaults
  - anaconda
  - hcc
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=2_gnu
  - absl-py=2.0.0=pyhd8ed1ab_0
  - aiohttp=3.9.1=py311h459d7ec_0
  - aiosignal=1.3.1=pyhd8ed1ab_0
  - astunparse=1.6.3=pyhd8ed1ab_0
  - attrs=23.2.0=pyh71513ae_0
  - blinker=1.7.0=pyhd8ed1ab_0
  - brotli-python=1.1.0=py311hb755f60_1
  - bzip2=1.0.8=hd590300_5
  - c-ares=1.25.0=hd590300_0
  - ca-certificates=2023.11.17=hbcca054_0
  - cached-property=1.5.2=hd8ed1ab_1
  - cached_property=1.5.2=pyha770c72_1
  - cachetools=5.3.2=pyhd8ed1ab_0
  - certifi=2023.11.17=pyhd8ed1ab_0
  - cffi=1.16.0=py311hb3a22ac_0
  - charset-normalizer=3.3.2=pyhd8ed1ab_0
  - click=8.1.7=unix_pyh707e725_0
  - cryptography=41.0.7=py311hcb13ee4_1
  - cuda-version=11.7=h67201e3_2
  - cudatoolkit=11.7.0=hd8887f6_10
  - cudnn=8.8.0.121=hcdd5f01_4
  - flatbuffers=23.5.26=h59595ed_1
  - frozenlist=1.4.1=py311h459d7ec_0
  - gast=0.5.4=pyhd8ed1ab_0
  - giflib=5.2.1=h0b41bf4_3
  - google-auth=2.26.1=pyhca7485f_0
  - google-auth-oauthlib=1.0.0=pyhd8ed1ab_1
  - google-pasta=0.2.0=pyh8c360ce_0
  - grpcio=1.54.3=py311hcafe171_0
  - h5py=3.10.0=nompi_py311hebc2b07_101
  - hdf5=1.14.3=nompi_h4f84152_100
  - icu=73.2=h59595ed_0
  - idna=3.6=pyhd8ed1ab_0
  - importlib-metadata=7.0.1=pyha770c72_0
  - keras=2.13.1=pyhd8ed1ab_0
  - keyutils=1.6.1=h166bdaf_0
  - krb5=1.21.2=h659d440_0
  - ld_impl_linux-64=2.40=h41732ed_0
  - libabseil=20230125.3=cxx17_h59595ed_0
  - libaec=1.1.2=h59595ed_1
  - libblas=3.9.0=20_linux64_openblas
  - libcblas=3.9.0=20_linux64_openblas
  - libcurl=8.5.0=hca28451_0
  - libedit=3.1.20191231=he28a2e2_2
  - libev=4.33=hd590300_2
  - libexpat=2.5.0=hcb278e6_1
  - libffi=3.4.2=h7f98852_5
  - libgcc-ng=13.2.0=h807b86a_3
  - libgfortran-ng=13.2.0=h69a702a_3
  - libgfortran5=13.2.0=ha4646dd_3
  - libgomp=13.2.0=h807b86a_3
  - libgrpc=1.54.3=hb20ce57_0
  - libjpeg-turbo=3.0.0=hd590300_1
  - liblapack=3.9.0=20_linux64_openblas
  - libnghttp2=1.58.0=h47da74e_1
  - libnsl=2.0.1=hd590300_0
  - libopenblas=0.3.25=pthreads_h413a1c8_0
  - libpng=1.6.39=h753d276_0
  - libprotobuf=3.21.12=hfc55251_2
  - libsqlite=3.44.2=h2797004_0
  - libssh2=1.11.0=h0841786_0
  - libstdcxx-ng=13.2.0=h7e041cc_3
  - libuuid=2.38.1=h0b41bf4_0
  - libxcrypt=4.4.36=hd590300_1
  - libzlib=1.2.13=hd590300_5
  - markdown=3.5.1=pyhd8ed1ab_0
  - markupsafe=2.1.3=py311h459d7ec_1
  - multidict=6.0.4=py311h459d7ec_1
  - nccl=2.19.4.1=h0800d71_0
  - ncurses=6.4=h59595ed_2
  - numpy=1.26.3=py311h64a7726_0
  - oauthlib=3.2.2=pyhd8ed1ab_0
  - ocl-icd=2.3.1=h7f98852_0
  - ocl-icd-system=1.0.0=1
  - openmm=8.1.0=py311h6f6ebe4_1
  - openssl=3.2.0=hd590300_1
  - opt_einsum=3.3.0=pyhc1e730c_2
  - packaging=23.2=pyhd8ed1ab_0
  - pip=23.3.2=pyhd8ed1ab_0
  - protobuf=4.21.12=py311hcafe171_0
  - pyasn1=0.5.1=pyhd8ed1ab_0
  - pyasn1-modules=0.3.0=pyhd8ed1ab_0
  - pycparser=2.21=pyhd8ed1ab_0
  - pyjwt=2.8.0=pyhd8ed1ab_0
  - pyopenssl=23.3.0=pyhd8ed1ab_0
  - pysocks=1.7.1=pyha2e5f31_6
  - python=3.11.7=hab00c5b_1_cpython
  - python-flatbuffers=23.5.26=pyhd8ed1ab_0
  - python_abi=3.11=4_cp311
  - pyu2f=0.1.5=pyhd8ed1ab_0
  - re2=2023.03.02=h8c504da_0
  - readline=8.2=h8228510_1
  - requests=2.31.0=pyhd8ed1ab_0
  - requests-oauthlib=1.3.1=pyhd8ed1ab_0
  - rsa=4.9=pyhd8ed1ab_0
  - scipy=1.11.4=py311h64a7726_0
  - setuptools=69.0.3=pyhd8ed1ab_0
  - six=1.16.0=pyh6c4a22f_0
  - snappy=1.1.10=h9fff704_0
  - tensorboard=2.13.0=pyhd8ed1ab_0
  - tensorboard-data-server=0.7.0=py311h63ff55d_1
  - tensorflow=2.13.1=cuda112py311h693fce6_1
  - tensorflow-base=2.13.1=cuda112py311h8bdbb6c_1
  - tensorflow-estimator=2.13.1=cuda112py311h0d913ca_1
  - termcolor=2.4.0=pyhd8ed1ab_0
  - tk=8.6.13=noxft_h4845f30_101
  - typing_extensions=4.5.0=pyha770c72_0
  - tzdata=2023d=h0c530f3_0
  - urllib3=2.1.0=pyhd8ed1ab_0
  - werkzeug=3.0.1=pyhd8ed1ab_0
  - wheel=0.42.0=pyhd8ed1ab_0
  - wrapt=1.16.0=py311h459d7ec_0
  - xz=5.2.6=h166bdaf_0
  - yarl=1.9.3=py311h459d7ec_0
  - zipp=3.17.0=pyhd8ed1ab_0
  - zlib=1.2.13=hd590300_5
  - zstd=1.5.5=hfc55251_0
prefix: /home/jd/mambaforge/envs/openmmtensorflow

What precisely needs to be set in these two fields?
CMAKE_BUILD_TYPE
CUDA_SDK_ROOT_DIR

To clarify, I have created a build dir in /code/openmm/openmm_plugins/openmm-tensorflow/build after just cloning the repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions