Unverified Commit 27d3af01 authored by Jinjing Zhou's avatar Jinjing Zhou Committed by GitHub
Browse files

Fix benchmark problem (#3762)

* fix

* fix bench

* fix

* Update bench_rgcn.py

* try fix

* fix wrong fix

* Update bench_rgcn.py
parent 44638b93
...@@ -107,9 +107,10 @@ pipeline { ...@@ -107,9 +107,10 @@ pipeline {
stages { stages {
stage('Regression Test Trigger') { stage('Regression Test Trigger') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-lint.yaml' label 'linux-benchmark-node'
defaultContainer 'dgl-ci-lint' image 'dgllib/dgl-ci-lint'
alwaysPull true
} }
} }
when { triggeredBy 'IssueCommentCause' } when { triggeredBy 'IssueCommentCause' }
......
...@@ -41,7 +41,11 @@ class RGCN(nn.Module): ...@@ -41,7 +41,11 @@ class RGCN(nn.Module):
def track_time(data, use_type_count): def track_time(data, use_type_count):
# args # args
if data == 'aifb': if data == 'aifb':
if dgl.__version__.startswith("0.8"):
num_bases = None
else:
num_bases = -1 num_bases = -1
l2norm = 0. l2norm = 0.
elif data == 'am': elif data == 'am':
num_bases = 40 num_bases = 40
......
...@@ -251,7 +251,7 @@ class PinsageDataset: ...@@ -251,7 +251,7 @@ class PinsageDataset:
def load_nowplaying_rs(): def load_nowplaying_rs():
import torchtext import torchtext.legacy as torchtext
# follow examples/pytorch/pinsage/README to create nowplaying_rs.pkl # follow examples/pytorch/pinsage/README to create nowplaying_rs.pkl
name = 'nowplaying_rs.pkl' name = 'nowplaying_rs.pkl'
dataset_dir = os.path.join(os.getcwd(), 'dataset') dataset_dir = os.path.join(os.getcwd(), 'dataset')
......
...@@ -55,14 +55,14 @@ if [[ $DEVICE == "cpu" ]]; then ...@@ -55,14 +55,14 @@ if [[ $DEVICE == "cpu" ]]; then
--rm \ --rm \
$DOCKER_MOUNT_OPT \ $DOCKER_MOUNT_OPT \
$DOCKER_ENV_OPT \ $DOCKER_ENV_OPT \
--shm-size="4g" \ --shm-size="16g" \
--hostname=$MACHINE -dit public.ecr.aws/s1o7b3d9/benchmakrk_pyg_dgl:cu111_torch181_pyg170 /bin/bash --hostname=$MACHINE -dit public.ecr.aws/s1o7b3d9/benchmakrk_pyg_dgl:cu111_torch181_pyg170 /bin/bash
else else
docker run --name dgl-reg \ docker run --name dgl-reg \
--rm --gpus all \ --rm --gpus all \
$DOCKER_MOUNT_OPT \ $DOCKER_MOUNT_OPT \
$DOCKER_ENV_OPT \ $DOCKER_ENV_OPT \
--shm-size="4g" \ --shm-size="16g" \
--hostname=$MACHINE -dit public.ecr.aws/s1o7b3d9/benchmakrk_pyg_dgl:cu111_torch181_pyg170 /bin/bash --hostname=$MACHINE -dit public.ecr.aws/s1o7b3d9/benchmakrk_pyg_dgl:cu111_torch181_pyg170 /bin/bash
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment