pytorch3d/.circleci/build_count.py
Jeremy Reizenstein 4872a2c4de wheels with cuda
Summary:
The main pytorch wheels on PyPI support CUDA 10.2. Here we make pytorch3d's wheels do the same, instead of being cpu only. This should ultimately make life easier in colab.

Also a little script to count builds, which can be useful for nightly jobs.

Reviewed By: gkioxari

Differential Revision: D22924321

fbshipit-source-id: d6cea9bfbab49bcb0080f65608066c553ea8bb4d
2020-08-04 15:23:28 -07:00

30 lines
538 B
Python

#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
"""
Print the number of nightly builds
"""
from collections import Counter
import yaml
conf = yaml.safe_load(open("config.yml"))
jobs = conf["workflows"]["build_and_test"]["jobs"]
def jobtype(job):
if isinstance(job, str):
return job
if len(job) == 1:
[name] = job.keys()
return name
return "MULTIPLE PARTS"
for i, j in Counter(map(jobtype, jobs)).items():
print(i, j)
print()
print(len(jobs))