Skip to content

Commit

Permalink
add exception for cugraphops (#20)
Browse files Browse the repository at this point in the history
* add exception for cugraphops

* formatting
  • Loading branch information
mnabian authored May 2, 2023
1 parent c49bcaa commit 78d68c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions accompanying_licenses/all_licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@
"Version": "2022.9.2"
},
{
"License": "UNKNOWN",
"LicenseText": "UNKNOWN",
"License": "ISC",
"LicenseText": "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: distro-info\nUpstream-Contact: Benjamin Drung <[email protected]>\n\nFiles: *\nCopyright: 2009-2018, Benjamin Drung <[email protected]>\n 2010-2011, Stefano Rivera <[email protected]>\nLicense: ISC\n\nFiles: shell/*-distro-info.in shell/distro-info-util.sh\nCopyright: 2012 Canonical Ltd.\nLicense: ISC\n\nLicense: ISC\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted, provided that the above\n copyright notice and this permission notice appear in all copies.\n .\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.",
"Name": "distro-info",
"Version": "0.23ubuntu1"
},
Expand Down
9 changes: 9 additions & 0 deletions recipes/gnn/graphcast/train_graphcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
# Instantiate constants, and save to JSON file
C = Constants()

if C.cugraphops_encoder or C.cugraphops_processor or C.cugraphops_decoder:
try:
import pylibcugraphops
except:
raise ImportError(
"pylibcugraphops is not installed. Refer the Dockerfile for instructions"
+ "on how to install this package."
)


class GraphCastTrainer(BaseTrainer):
def __init__(self, wb, dist, rank_zero_logger):
Expand Down
2 changes: 1 addition & 1 deletion recipes/gnn/vortex_shedding/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import wandb as wb
import os

from modulus.models.gnn.meshgraphnet import MeshGraphNet
from modulus.models.meshgraphnet import MeshGraphNet
from modulus.datapipes.gnn.mgn_dataset import MGNDataset


Expand Down

0 comments on commit 78d68c8

Please sign in to comment.