Skip to content

Commit

Permalink
circleci config wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yuan committed Jul 27, 2022
1 parent 9ea013a commit c774755
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ gpu_cu114: &gpu_cu114
image: ubuntu-2004-cuda-11.4:202110-01
resource_class: gpu.nvidia.medium

gpu_cu112: &gpu_cu112
environment:
CUDA_VERSION: "11.2"
CUDA_HOME: /usr/local/cuda-11.2
machine:
image: ubuntu-2004-cuda-11.2:202103-01
resource_class: gpu.nvidia.medium

binary_common: &binary_common
parameters:
Expand All @@ -37,11 +44,11 @@ binary_common: &binary_common
cu_version:
description: "CUDA version to build against, in CU format (e.g., cpu or cu100)"
type: string
default: "cu101"
default: "cu102"
wheel_docker_image:
description: "Wheel only: what docker image to use"
type: string
default: "pytorch/manylinux-cuda101"
default: "pytorch/manylinux-cuda102"
environment:
CU_VERSION: << parameters.cu_version >>
PYTHON_VERSION: << parameters.python_version >>
Expand Down Expand Up @@ -305,7 +312,7 @@ jobs:


gpu_tests:
<<: *gpu_cu114
<<: *gpu_cu112

working_directory: ~/xformers

Expand All @@ -317,7 +324,7 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-gpu-114-{{ checksum "requirements-test.txt" }}-{{ checksum ".circleci/config.yml" }}
- cache-key-gpu-112-{{ checksum "requirements-test.txt" }}-{{ checksum ".circleci/config.yml" }}

- <<: *setup_conda
- <<: *install_dep
Expand All @@ -331,7 +338,7 @@ jobs:
- ~/miniconda
- ~/venv

key: cache-key-gpu-114-{{ checksum "requirements-test.txt"}}-{{ checksum ".circleci/config.yml"}}
key: cache-key-gpu-112-{{ checksum "requirements-test.txt"}}-{{ checksum ".circleci/config.yml"}}

- <<: *install_repo

Expand All @@ -347,7 +354,7 @@ jobs:
path: test-results

gpu_experimental_tests:
<<: *gpu_cu114
<<: *gpu_cu112

working_directory: ~/xformers

Expand All @@ -359,7 +366,7 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-gpu-exp-114-{{ checksum "experimental/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
- cache-key-gpu-exp-112-{{ checksum "experimental/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}

- <<: *setup_conda
- <<: *install_dep_exp
Expand All @@ -374,7 +381,7 @@ jobs:
- ~/miniconda
- ~/venv

key: cache-key-gpu-exp-114-{{ checksum "experimental/requirements.txt"}}-{{ checksum ".circleci/config.yml"}}
key: cache-key-gpu-exp-112-{{ checksum "experimental/requirements.txt"}}-{{ checksum ".circleci/config.yml"}}

- <<: *install_experimental_repo
- <<: *run_experimental_unittests
Expand Down
1 change: 1 addition & 0 deletions tests/test_nvfuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from xformers.components.nvfuser.utils import build_nvfused
except ImportError as e:
logging.warning(f"Functorch is not available in test_nvfuser.py. \nError {e}")
xformers._is_functorch_available = False

FUSED_PATTERNS = (
[
Expand Down

0 comments on commit c774755

Please sign in to comment.