@@ -542,16 +542,16 @@ For CPU-only builds, the ``--cpu_only`` flag needs to be specified.
542
542
543
543
# Build the wheel artifact only
544
544
python setup.py bdist_wheel \
545
- --package_variant =cpu \
545
+ --build-variant =cpu \
546
546
--python-tag=" ${python_tag} " \
547
547
--plat-name=" ${python_plat_name} "
548
548
549
549
# Build and install the library into the Conda environment (GCC)
550
550
python setup.py install \
551
- --package_variant =cpu
551
+ --build-variant =cpu
552
552
553
553
# NOTE: To build the package as part of generating the documentation, use
554
- # `--package_variant =docs` flag instead!
554
+ # `--build-variant =docs` flag instead!
555
555
556
556
To build using Clang + ``libstdc++ `` instead of GCC, simply append the
557
557
``--cxxprefix `` flag:
@@ -562,14 +562,14 @@ To build using Clang + ``libstdc++`` instead of GCC, simply append the
562
562
563
563
# Build the wheel artifact only
564
564
python setup.py bdist_wheel \
565
- --package_variant =cpu \
565
+ --build-variant =cpu \
566
566
--python-tag=" ${python_tag} " \
567
567
--plat-name=" ${python_plat_name} " \
568
568
--cxxprefix=$CONDA_PREFIX
569
569
570
570
# Build and install the library into the Conda environment (Clang)
571
571
python setup.py install \
572
- --package_variant =cpu
572
+ --build-variant =cpu
573
573
--cxxprefix=$CONDA_PREFIX
574
574
575
575
Note that this presumes the Clang toolchain is properly installed along with the
@@ -642,7 +642,7 @@ toolchains have been properly installed.
642
642
643
643
# Build the wheel artifact only
644
644
python setup.py bdist_wheel \
645
- --package_variant =cuda \
645
+ --build-variant =cuda \
646
646
--python-tag=" ${python_tag} " \
647
647
--plat-name=" ${python_plat_name} " \
648
648
--nvml_lib_path=${NVML_LIB_PATH} \
@@ -651,7 +651,7 @@ toolchains have been properly installed.
651
651
652
652
# Build and install the library into the Conda environment
653
653
python setup.py install \
654
- --package_variant =cuda \
654
+ --build-variant =cuda \
655
655
--nvml_lib_path=${NVML_LIB_PATH} \
656
656
--nccl_lib_path=${NCCL_LIB_PATH} \
657
657
-DTORCH_CUDA_ARCH_LIST=" ${cuda_arch_list} "
@@ -684,7 +684,7 @@ presuming the toolchains have been properly installed.
684
684
685
685
# Build the wheel artifact only
686
686
python setup.py bdist_wheel \
687
- --package_variant =rocm \
687
+ --build-variant =rocm \
688
688
--python-tag=" ${python_tag} " \
689
689
--plat-name=" ${python_plat_name} " \
690
690
-DAMDGPU_TARGETS=" ${PYTORCH_ROCM_ARCH} " \
@@ -694,7 +694,7 @@ presuming the toolchains have been properly installed.
694
694
695
695
# Build and install the library into the Conda environment
696
696
python setup.py install \
697
- --package_variant =rocm \
697
+ --build-variant =rocm \
698
698
-DAMDGPU_TARGETS=" ${PYTORCH_ROCM_ARCH} " \
699
699
-DHIP_ROOT_DIR=" ${ROCM_PATH} " \
700
700
-DCMAKE_C_FLAGS=" -DTORCH_USE_HIP_DSA" \
0 commit comments