aducsdr commited on
Commit
c56c4b5
·
verified ·
1 Parent(s): 9ac3aff

Delete build_apex.sh

Browse files
Files changed (1) hide show
  1. build_apex.sh +0 -45
build_apex.sh DELETED
@@ -1,45 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- # 🧾 Config
5
- # APEX_COMMIT=f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0 # Known stable commit
6
-
7
- echo "🧹 Cleaning any previous apex build..."
8
- rm -rf apex
9
- rm -rf *.egg-info build dist
10
-
11
- echo "📥 Cloning NVIDIA/apex..."
12
- git clone https://github.com/NVIDIA/apex.git
13
- cd apex
14
- # git checkout $APEX_COMMIT
15
-
16
- echo "🛠 Installing build dependencies..."
17
- sudo apt-get update
18
- sudo apt-get install -y \
19
- build-essential \
20
- ninja-build \
21
- python3-dev \
22
- libffi-dev \
23
- libncurses5-dev \
24
- libncursesw5-dev \
25
- libreadline-dev \
26
- libssl-dev \
27
- libsqlite3-dev \
28
- zlib1g-dev \
29
- libbz2-dev \
30
- liblzma-dev \
31
- git
32
-
33
- echo "🐍 Upgrading pip and wheel..."
34
- pip install -U pip setuptools wheel
35
-
36
- echo "🧪 Verifying PyTorch + CUDA availability..."
37
- python -c "import torch; print('PyTorch:', torch.__version__, '| CUDA:', torch.version.cuda)"
38
-
39
- echo "🔧 Building Apex with CUDA and C++ extensions..."
40
- python setup.py bdist_wheel --cuda_ext --cpp_ext
41
-
42
- echo "✅ Done! Built wheel:"
43
- ls -lh dist/*.whl
44
-
45
- cd ..