Code Monkey home page Code Monkey logo

pypims's Introduction

Python APIs for hipims

This package provides python APIs for running the open source hydraulic model hipims-cuda. It also includes the hipims-io package for pre-processing and result visualisation. The full documentation is at https://pypims.readthedocs.io/en/latest/.

Installation

Before installing pypims, you need to install Cmake, NVIDIA CUDA Toolkit and the C++ compiler. Cmake can be simply installed by

pip install cmake

The CUDA Toolkit can be downloaded from the NVIDIA website. If you use Linux system, the C++ compiler 'GCC' is usually on the system as default. If you use windows, you should download and install Visual Studio. If there exists several different versions of CUDA Toolkits on your system, cmake may struggle to decide which one to use and return an error. In such a case, you need to define the CUDAToolkit_ROOT environmental varialble. On Linux, this can be done by

export CUDAToolkit_ROOT=<path to your cuda directory>

For example

export CUDAToolkit_ROOT=/usr/local/cuda-10.1

Once the aforementioned dependencies have been properly installed. Installing pypims is straightforward, simple type in the following in your terminal

pip install pypims

Running a demo

The flood simulation engine can be imported by

from pypims import flood

The inputs can be prepared by hipims-io. This package has already been included as part of pypims, you can import it by

from pypims import IO

A quick demonstration to prepare input files with attached sample data contaning the following files:

  • DEM.gz/.asc/.tif (essential file, in projected crs, map unit:m)
  • rain_mask.gz/.asc/.tif (optional file for setting rainfall, having the same crs with DEM)
  • rain_source.csv (optional file for setting rainfall rate in timeseries, unit:m/s]
  • landcover.gz/.asc/.tif (optional file for setting landcover-based parameters, having the same crs with DEM)
import os
from pypims.IO.demo_functions import demo_input
obj_in = demo_input() # create input object
obj_in.write_input_files() # create all input files

Once the inputs have all been prepared, the simulations can be started by

flood.run(obj_in.get_case_folder())

pypims's People

Contributors

mingxiaodong avatar pypims avatar xiaxilin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pypims's Issues

Issue with flood modelling code

Can anyone help with an issue I am having? I am trying to run a flood model using Jupyter Notebook and I am able to run the code as far as setting up the input files. All the input files are created, when the code then moves onto running the model, it just hangs on with an asterisk next to the cell but never actually uses the kernel so doesn't ever run. I have used effectively the same code to run a different model with different data, so I am not sure where the error is. Any quick help would be greatly appreciated!

Picture1
Picture2
Picture3
Picture4
Picture5

Installation issue on remote Linux server

Hi Dr. @xiaxilin

Previously, I have successfully installed the model in my local Linux machine with a single GPU. Then. I would like to test my simulation on a remote Linux server with multiple GPUs. However, I got the following error while I'm trying to install pypims on that remote Linux server (python version == v3.7.16 , gcc == v8.5.0, cuda== v11.8).

error installation log.txt

I am looking forward to hearing from you.

installation issue

My windows system is 11, python 3.7, and Cuda 12, every time I try to run python setup.py install. it reported errors.

Does pypims can be supported on w11, and Cuda 12, or only Cuda 10.1?

Creating a backup takes a long time

For a 3500x3500 grid, creating each backup takes over 30 mins for me. Is there any way to speed it up or turn off backup completely? I understand that I can set a large value of backup interval while setting the runtime. Still, the backup always happens at time 0. If it is possible, I would like to turn off backup completely to make my simulations faster.

Ubuntu install pypims issue

I would like to request help
my system here:
Ubuntu 22.04.2
CUDA Toolkit 10.1
gcc/g++ 10.4
anaconda python 3.7

issue:(atfer running “pip install pypims”)
Collecting pypims
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f114254d350>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /packages/d6/8a/41a89d35ee9c0ff20b8515f33fcbbc76975974247d2efa5c8318cc4b1707/pypims-0.0.3.1.tar.gz
Downloading pypims-0.0.3.1.tar.gz (483 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 483.2/483.2 kB 1.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting numpy
Downloading numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.7/15.7 MB 6.2 MB/s eta 0:00:00
Collecting scipy
Downloading scipy-1.7.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (38.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.1/38.1 MB 6.8 MB/s eta 0:00:00
Collecting matplotlib
Downloading matplotlib-3.5.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.2/11.2 MB 7.2 MB/s eta 0:00:00
Collecting imageio
Downloading imageio-2.31.1-py3-none-any.whl (313 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 313.2/313.2 kB 9.9 MB/s eta 0:00:00
Collecting pandas
Downloading pandas-1.3.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 7.4 MB/s eta 0:00:00
Collecting rasterio
Downloading rasterio-1.2.10-cp37-cp37m-manylinux1_x86_64.whl (19.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.3/19.3 MB 8.2 MB/s eta 0:00:00
Collecting pyshp
Downloading pyshp-2.3.1-py2.py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.5/46.5 kB 19.5 MB/s eta 0:00:00
Collecting fiona
Downloading Fiona-1.9.4.post1-cp37-cp37m-manylinux2014_x86_64.whl (16.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.5/16.5 MB 9.8 MB/s eta 0:00:00
Collecting click-plugins>=1.0
Downloading click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting cligj>=0.5
Downloading cligj-0.7.2-py3-none-any.whl (7.1 kB)
Collecting six
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting click~=8.0
Downloading click-8.1.5-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.1/98.1 kB 31.5 MB/s eta 0:00:00
Requirement already satisfied: certifi in ./anaconda3/envs/python37/lib/python3.7/site-packages (from fiona->pypims) (2022.12.7)
Collecting importlib-metadata
Downloading importlib_metadata-6.7.0-py3-none-any.whl (22 kB)
Collecting attrs>=19.2.0
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 28.6 MB/s eta 0:00:00
Collecting pillow>=8.3.2
Downloading Pillow-9.5.0-cp37-cp37m-manylinux_2_28_x86_64.whl (3.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 10.9 MB/s eta 0:00:00
Collecting packaging>=20.0
Downloading packaging-23.1-py3-none-any.whl (48 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.9/48.9 kB 23.7 MB/s eta 0:00:00
Collecting cycler>=0.10
Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 965.4/965.4 kB 12.5 MB/s eta 0:00:00
Collecting pyparsing>=2.2.1
Downloading pyparsing-3.1.0-py3-none-any.whl (102 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.6/102.6 kB 18.5 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.4.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 6.6 MB/s eta 0:00:00
Collecting python-dateutil>=2.7
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 12.8 MB/s eta 0:00:00
Collecting pytz>=2017.3
Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 10.3 MB/s eta 0:00:00
Collecting snuggs>=1.4.1
Downloading snuggs-1.4.7-py3-none-any.whl (5.4 kB)
Requirement already satisfied: setuptools in ./anaconda3/envs/python37/lib/python3.7/site-packages (from rasterio->pypims) (65.6.3)
Collecting affine
Downloading affine-2.4.0-py3-none-any.whl (15 kB)
Collecting typing-extensions
Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Collecting zipp>=0.5
Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
Building wheels for collected packages: pypims
Building wheel for pypims (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [188 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/pypims
copying pypims/version.py -> build/lib.linux-x86_64-cpython-37/pypims
copying pypims/init.py -> build/lib.linux-x86_64-cpython-37/pypims
creating build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Summary.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/demo_functions.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Boundary.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/init.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/OutputHipims.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Landcover.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/InputHipims.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/rainfall_processing.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/spatial_analysis.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/indep_functions.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/grid_show.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Rainfall.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Raster.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
creating build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/DEM.gz -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/landcover.gz -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/rain_mask.gz -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/rain_source.csv -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
running build_ext
The cuda toolkit root path is /usr/local/cuda-10.1
cmake /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/lib.linux-x86_64-cpython-37/pypims
-- The C compiler identification is GNU 10.4.0
-- The CXX compiler identification is GNU 10.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at pypims/CMakeLists.txt:42:
Syntax Warning in cmake code at column 22

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  -- Looking for pthread.h
  -- Looking for pthread.h - found
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE
  -- Found CUDA: /usr/local/cuda-10.1 (found version "10.1")
  CXX  Flags: -pthread -std=c++11 -fPIC -O3
  NVCC Flags: -arch=sm_35--expt-extended-lambda
  -- Found PythonInterp: /home/gwg/anaconda3/envs/python37/bin/python (found version "3.7.16")
  -- Found PythonLibs: /home/gwg/anaconda3/envs/python37/lib/libpython3.7m.so (found version "3.7.16")
  -- Found PythonLibs: /home/gwg/anaconda3/envs/python37/lib/libpython3.7m.so
  -- pybind11 v2.5.0
  pybind11 : /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/_deps/pybind11_sources-src
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37
  cmake --build . --config Release -- -j16
  [  1%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/utilities/cuda_lib_generated_cuda_device_query.cu.o
  [  3%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gauges_writer.cu.o
  [  5%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/mesh/cuda_lib_generated_cuda_mesh_fv.cu.o
  [  7%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gisascii_writer.cu.o
  [  9%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/gisAsciiField_reader.cc.o
  [ 11%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/field_reader.cc.o
  [ 13%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/gisAsciiMesh_reader.cc.o
  [ 15%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/boundary/boundary.cc.o
  [ 17%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/multi_threading/cuda_lib_generated_cuda_data_bank.cu.o
  [ 19%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/boundary/boundary_func_table.cc.o
  [ 21%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/gmsh_reader.cc.o
  [ 23%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_advection_NSWEs.cu.o
  [ 25%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/calculate_velocity.cc.o
  [ 26%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_erosion_deposition.cu.o
  [ 28%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/ddt.cc.o
  [ 30%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/fluxBalanced_NSWEs.cc.o
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  CMake Error at cuda_lib_generated_cuda_gauges_writer.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/./cuda_lib_generated_cuda_gauges_writer.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:77: pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gauges_writer.cu.o] Error 1
  gmake[2]: *** Waiting for unfinished jobs....
  CMake Error at cuda_lib_generated_cuda_device_query.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/utilities/./cuda_lib_generated_cuda_device_query.cu.o
  
  
  [ 32%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/fluxBalanced_SWEs.cc.o
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:168: pypims/lib/CMakeFiles/cuda_lib.dir/src/utilities/cuda_lib_generated_cuda_device_query.cu.o] Error 1
  [ 34%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/fluxNonUniGravity_SWEs.cc.o
  CMake Error at cuda_lib_generated_cuda_mesh_fv.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/mesh/./cuda_lib_generated_cuda_mesh_fv.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:91: pypims/lib/CMakeFiles/cuda_lib.dir/src/mesh/cuda_lib_generated_cuda_mesh_fv.cu.o] Error 1
  [ 36%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/flux_SWEs.cc.o
  [ 38%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/modify_gravity.cc.o
  CMake Error at cuda_lib_generated_cuda_erosion_deposition.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/./cuda_lib_generated_cuda_erosion_deposition.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:112: pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_erosion_deposition.cu.o] Error 1
  CMake Error at cuda_lib_generated_cuda_gisascii_writer.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/./cuda_lib_generated_cuda_gisascii_writer.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:84: pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gisascii_writer.cu.o] Error 1
  CMake Error at cuda_lib_generated_cuda_advection_NSWEs.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/./cuda_lib_generated_cuda_advection_NSWEs.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:105: pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_advection_NSWEs.cu.o] Error 1
  [ 40%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/modify_gravityAdvanced.cc.o
  [ 42%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/small_depth_filter.cc.o
  [ 44%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/boundary/boundary_funcs.cc.o
  CMake Error at cuda_lib_generated_cuda_data_bank.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/multi_threading/./cuda_lib_generated_cuda_data_bank.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:98: pypims/lib/CMakeFiles/cuda_lib.dir/src/multi_threading/cuda_lib_generated_cuda_data_bank.cu.o] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:178: pypims/lib/CMakeFiles/cuda_lib.dir/all] Error 2
  gmake[1]: *** Waiting for unfinished jobs....
  [ 46%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/element_table.cc.o
  [ 48%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_basic.cc.o
  [ 50%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv.cc.o
  [ 51%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv_cartesian.cc.o
  [ 53%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv_queries.cc.o
  [ 55%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv_reduced.cc.o
  [ 57%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/advection_NSWEs.cc.o
  [ 59%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/friction.cc.o
  [ 61%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/gradient.cc.o
  [ 63%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/limiter.cc.o
  [ 65%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/mohr_columb.cc.o
  [ 67%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/riemann.cc.o
  [ 69%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/adaptive_time_control.cc.o
  [ 71%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/geometry_func.cc.o
  [ 73%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/hilbert.cc.o
  [ 75%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/time_control.cc.o
  [ 76%] Linking CXX static library liblib.a
  [ 76%] Built target lib
  gmake: *** [Makefile:136: all] Error 2
  error: command '/home/gwg/anaconda3/envs/python37/bin/cmake' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pypims
Running setup.py clean for pypims
Failed to build pypims
Installing collected packages: pytz, zipp, typing-extensions, six, pyshp, pyparsing, pillow, packaging, numpy, fonttools, cycler, affine, snuggs, scipy, python-dateutil, kiwisolver, importlib-metadata, imageio, pandas, matplotlib, click, attrs, cligj, click-plugins, rasterio, fiona, pypims
Running setup.py install for pypims ... error
error: subprocess-exited-with-error

× Running setup.py install for pypims did not run successfully.
│ exit code: 1
╰─> [214 lines of output]
running install
/home/gwg/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/pypims
copying pypims/version.py -> build/lib.linux-x86_64-cpython-37/pypims
copying pypims/init.py -> build/lib.linux-x86_64-cpython-37/pypims
creating build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Summary.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/demo_functions.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Boundary.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/init.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/OutputHipims.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Landcover.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/InputHipims.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/rainfall_processing.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/spatial_analysis.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/indep_functions.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/grid_show.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Rainfall.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
copying pypims/IO/Raster.py -> build/lib.linux-x86_64-cpython-37/pypims/IO
creating build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/DEM.gz -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/landcover.gz -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/rain_mask.gz -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
copying pypims/IO/sample/rain_source.csv -> build/lib.linux-x86_64-cpython-37/pypims/IO/sample
running build_ext
The cuda toolkit root path is /usr/local/cuda-10.1
cmake /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/lib.linux-x86_64-cpython-37/pypims
-- The C compiler identification is GNU 10.4.0
-- The CXX compiler identification is GNU 10.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at pypims/CMakeLists.txt:42:
Syntax Warning in cmake code at column 22

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  -- Looking for pthread.h
  -- Looking for pthread.h - found
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE
  -- Found CUDA: /usr/local/cuda-10.1 (found version "10.1")
  CXX  Flags: -pthread -std=c++11 -fPIC -O3
  NVCC Flags: -arch=sm_35--expt-extended-lambda
  -- Found PythonInterp: /home/gwg/anaconda3/envs/python37/bin/python (found version "3.7.16")
  -- Found PythonLibs: /home/gwg/anaconda3/envs/python37/lib/libpython3.7m.so (found version "3.7.16")
  -- Found PythonLibs: /home/gwg/anaconda3/envs/python37/lib/libpython3.7m.so
  -- pybind11 v2.5.0
  pybind11 : /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/_deps/pybind11_sources-src
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37
  cmake --build . --config Release -- -j16
  [  1%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/utilities/cuda_lib_generated_cuda_device_query.cu.o
  [  3%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gauges_writer.cu.o
  [  5%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gisascii_writer.cu.o
  [  7%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/mesh/cuda_lib_generated_cuda_mesh_fv.cu.o
  [  9%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/field_reader.cc.o
  [ 11%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/gisAsciiField_reader.cc.o
  [ 13%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/gisAsciiMesh_reader.cc.o
  [ 15%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_advection_NSWEs.cu.o
  [ 17%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/multi_threading/cuda_lib_generated_cuda_data_bank.cu.o
  [ 19%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_erosion_deposition.cu.o
  [ 21%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/IO/gmsh_reader.cc.o
  [ 23%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_friction.cu.o
  [ 25%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/calculate_velocity.cc.o
  [ 26%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/boundary/boundary_func_table.cc.o
  [ 28%] Building NVCC (Device) object pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_gradient.cu.o
  [ 30%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/boundary/boundary.cc.o
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:83,
                   from <command-line>:
  /usr/local/cuda-10.1/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    129 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
        |  ^~~~~
  CMake Error at cuda_lib_generated_cuda_gauges_writer.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/./cuda_lib_generated_cuda_gauges_writer.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:77: pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gauges_writer.cu.o] Error 1
  gmake[2]: *** Waiting for unfinished jobs....
  [ 32%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/ddt.cc.o
  CMake Error at cuda_lib_generated_cuda_device_query.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/utilities/./cuda_lib_generated_cuda_device_query.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:168: pypims/lib/CMakeFiles/cuda_lib.dir/src/utilities/cuda_lib_generated_cuda_device_query.cu.o] Error 1
  [ 34%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/fluxBalanced_NSWEs.cc.o
  CMake Error at cuda_lib_generated_cuda_mesh_fv.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/mesh/./cuda_lib_generated_cuda_mesh_fv.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:91: pypims/lib/CMakeFiles/cuda_lib.dir/src/mesh/cuda_lib_generated_cuda_mesh_fv.cu.o] Error 1
  [ 36%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/fluxBalanced_SWEs.cc.o
  CMake Error at cuda_lib_generated_cuda_gisascii_writer.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/./cuda_lib_generated_cuda_gisascii_writer.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:84: pypims/lib/CMakeFiles/cuda_lib.dir/src/IO/cuda_lib_generated_cuda_gisascii_writer.cu.o] Error 1
  [ 38%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/fluxNonUniGravity_SWEs.cc.o
  CMake Error at cuda_lib_generated_cuda_advection_NSWEs.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/./cuda_lib_generated_cuda_advection_NSWEs.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:105: pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_advection_NSWEs.cu.o] Error 1
  CMake Error at cuda_lib_generated_cuda_friction.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/./cuda_lib_generated_cuda_friction.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:119: pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_friction.cu.o] Error 1
  [ 40%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/flux_SWEs.cc.o
  [ 42%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/modify_gravity.cc.o
  CMake Error at cuda_lib_generated_cuda_gradient.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/./cuda_lib_generated_cuda_gradient.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:126: pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_gradient.cu.o] Error 1
  CMake Error at cuda_lib_generated_cuda_data_bank.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/multi_threading/./cuda_lib_generated_cuda_data_bank.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:98: pypims/lib/CMakeFiles/cuda_lib.dir/src/multi_threading/cuda_lib_generated_cuda_data_bank.cu.o] Error 1
  CMake Error at cuda_lib_generated_cuda_erosion_deposition.cu.o.Release.cmake:220 (message):
    Error generating
    /tmp/pip-install-ygoc61gj/pypims_60a756a56d5f4846ab696c4eb67862c7/build/temp.linux-x86_64-cpython-37/pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/./cuda_lib_generated_cuda_erosion_deposition.cu.o
  
  
  gmake[2]: *** [pypims/lib/CMakeFiles/cuda_lib.dir/build.make:112: pypims/lib/CMakeFiles/cuda_lib.dir/src/operators/cuda_lib_generated_cuda_erosion_deposition.cu.o] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:178: pypims/lib/CMakeFiles/cuda_lib.dir/all] Error 2
  gmake[1]: *** Waiting for unfinished jobs....
  [ 44%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/modify_gravityAdvanced.cc.o
  [ 46%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/boundary/boundary_funcs.cc.o
  [ 48%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/archived/operator/small_depth_filter.cc.o
  [ 50%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_basic.cc.o
  [ 51%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/element_table.cc.o
  [ 53%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv.cc.o
  [ 55%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv_cartesian.cc.o
  [ 57%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv_queries.cc.o
  [ 59%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/mesh/mesh_fv_reduced.cc.o
  [ 61%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/advection_NSWEs.cc.o
  [ 63%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/friction.cc.o
  [ 65%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/gradient.cc.o
  [ 67%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/limiter.cc.o
  [ 69%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/mohr_columb.cc.o
  [ 71%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/operators/riemann.cc.o
  [ 73%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/adaptive_time_control.cc.o
  [ 75%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/geometry_func.cc.o
  [ 76%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/hilbert.cc.o
  [ 78%] Building CXX object pypims/lib/CMakeFiles/lib.dir/src/utilities/time_control.cc.o
  [ 80%] Linking CXX static library liblib.a
  [ 80%] Built target lib
  gmake: *** [Makefile:136: all] Error 2
  error: command '/home/gwg/anaconda3/envs/python37/bin/cmake' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pypims

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

pypims can't be installed on Windows

Hi, my configurations are as follows:
Platform: Windows 10;
Cuda Version: V11.5.50
GDAL Version: GDAL-3.4.2-cp37-cp37m-win_amd64.whl
Visual Studio Version: VS 2019
python Version:3.7.9
Fiona Version : Fiona-1.8.21-cp37-cp37m-win_amd64.whl
rasterio Version: rasterio-1.2.10-cp37-cp37m-win_amd64.whl
GPU Version: Nvidia GeForce GTX 750.

The output errors are as follows:
pypims-master\build\temp.win-amd64-3.7\Release_deps\pybind11_sources-src\include\pybind11\cast.h(1399):
error: too few arguments for template template parameter "Tuple" [pypims-master\build\temp.win.amd64-3.7\Release\pypims\apps\cudaFloodSolverPybind\lib_flood.vcxproj]

Thanks in advance!

How to include evaporation data in the model?

Hello Pypims team and Dr. @xiaxilin

After testing the tutorial, it all works fine in my system. So, I want to move to my real case study.

In my simulation, I actually need to run long-term period (about 3 years). Then, I want to include my time-series evaporation data in the simulation. So, is it possible to include such data in the model? If yes, how can we do that ?

Execution stuck under virtualization

Hello!

I tried to run the example from tutorial. It starts successfully and the numbers in the log are increasing. However, after it reaches the step equals to the output interval value (900 by default), it falls to infinite repeating of 900.0000:

image
If the output interval == simulation length, then the height is constant and equals to 0.

I can not understand what is wrong. Can you help with this problem?

The code is obtained from master branch (but I also tried the last version from PyPI)
The execution environment is Windows 10 + WSL2.

Code is available in https://colab.research.google.com/drive/1qSNuDnxOMC9_uCV3zX8cDezT0m_GdTNx?usp=sharing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.