|
47 | 47 | conda create -y --name build_binary python=${{ matrix.python-version }}
|
48 | 48 | conda info
|
49 | 49 | python --version
|
| 50 | + conda run -n build_binary python --version |
| 51 | + conda run -n build_binary \ |
| 52 | + pip install torch --index-url https://download.pytorch.org/whl/nightly/cpu |
| 53 | + conda run -n build_binary \ |
| 54 | + python -c "import torch" |
| 55 | + echo "torch succeeded" |
| 56 | + conda run -n build_binary \ |
| 57 | + python -c "import torch.distributed" |
| 58 | + conda run -n build_binary \ |
| 59 | + pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cpu |
| 60 | + conda run -n build_binary \ |
| 61 | + python -c "import fbgemm_gpu" |
| 62 | + echo "fbgemm_gpu succeeded" |
| 63 | + conda run -n build_binary \ |
| 64 | + pip install -r requirements.txt |
| 65 | + conda run -n build_binary \ |
| 66 | + python setup.py bdist_wheel \ |
| 67 | + --python-tag=${{ matrix.python-tag }} |
| 68 | + conda run -n build_binary \ |
| 69 | + python -c "import torchrec" |
| 70 | + echo "torch.distributed succeeded" |
| 71 | + conda run -n build_binary \ |
| 72 | + python -c "import numpy" |
| 73 | + echo "numpy succeeded" |
50 | 74 | echo "Starting C++ Tests"
|
51 | 75 | conda install -n build_binary -y gxx_linux-64
|
52 | 76 | conda run -n build_binary \
|
|
58 | 82 | conda run -n build_binary cmake \
|
59 | 83 | -DBUILD_TEST=ON \
|
60 | 84 | -DBUILD_REDIS_IO=ON \
|
| 85 | + -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ |
61 | 86 | -DCMAKE_PREFIX_PATH=/opt/conda/envs/build_binary/lib/python${{ matrix.python-version }}/site-packages/torch/share/cmake ..
|
62 | 87 | conda run -n build_binary make -j
|
63 | 88 | conda run -n build_binary ctest -V .
|
0 commit comments