GeoscienceAustralia / GeoscienceAustralia/anuga_core

Installation and compilation issues with anuga 3.2.0.dev version.

Open
#286 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
229
Forks
110
Avg merge
1h 38m
Merged PRs (30d)
1

Description

Hello,
I'm having a problem compiling and installing anuga version 3.2.0.dev. I tried installing and compiling in both windows environment and linux environment, both show success without any error report or warning. But there is a problem when I actually use the CUDA method.

from anuga.shallow_water.sw_domain_cuda import nvtxRangePush, nvtxRangePop

ModuleNotFoundError Traceback (most recent call last)
Cell In[3], line 5
1 import anuga
2 import anuga.shallow_water
----> 5 from anuga.shallow_water.sw_domain_cuda import nvtxRangePush, nvtxRangePop

ModuleNotFoundError: No module named 'anuga.shallow_water.sw_domain_cuda'

dir(anuga.shallow_water)
['builtins',
'cached',
'doc',
'file',
'loader',
'name',
'package',
'path',
'spec',
'boundaries',
'checkpoint',
'forcing',
'shallow_water_domain',
'sw_domain_orig_ext',
'sww_interrogate',
'test']

Show compilation success

(anuga_env_3.11)H:\anuga_core>pip install --no-build-isolation -eObtaining file:///H:/anuga_coreChecking if build backend supports build_editable ... donePreparing editable metadata(pyproject.toml)... doneRequirement already satisfied: numpy>=1.24.0 in c:(usersllenovol.condalenvs(anuga_env_3.11\lib\site-packages (from anuga=3.2.0.dev0)(2.2.6)Building wheels for collectedpackages:anugaBuilding editable for anuga(pyproject.toml)... doneCreated wheel for anuga: filenameanuga-3.2.0.dev0-cp311-cp311-win_amd64.whl size=7822 sha256-2b56623eadaf2f0086e36336f095754dc6b05176ae12604501b8bf26d5cd2616Stored in directory: c: Users Lenovo\AppDatalLocallTemplpip-ephem-wheel-cache-4xlp4xzf\wheels(a1 cf\61\79593d87a34e12fb61ab63d77f9791bc76c763bec5acc0fцfa
Successfully built anugaInstalling collected packages:anugaSuccessfully installed anuga-3.2.0.dev

Is it possible to provide a reference to a successful compilation environment, or I did not see a package like cudatoolkit in the environment requirements to run the cuda base, is this similar to the requirements for the GPU, do I need to pay extra attention to anything for running with cuda.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the editable installation on the reported Windows and Linux environments, then check the import of anuga.shallow_water.sw_domain_cuda and the available modules listed under anuga.shallow_water. Done means the CUDA module is importable with documented requirements, or the issue clearly records that the CUDA path is unavailable and what environment is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
hpc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.