You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue relatives to improve user experience of NNCF PyTorch examples on GPU. The output of such examples has the following warning:
INFO:nncf:Compiling and loading torch extension: quantized_functions_cuda...
/nncf_torch/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1964: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
warnings.warn(
This warning was triggered by compilation custom quantization kernels in NNCF.
Requirement: GPU
How to reproduce:
python examples/post_training_quantization/torch/mobilenet_v2/main.py
What needs to be done?
Suppress UserWarning: TORCH_CUDA_ARCH_LIST by adding visible card architectures in TORCH_CUDA_ARCH_LIST before compilation in case if TORCH_CUDA_ARCH_LIST is not set by user. The list of CUDA architectures can be gotten by torch.cuda.get_arch_list()
Context
This issue relatives to improve user experience of NNCF PyTorch examples on GPU. The output of such examples has the following warning:
This warning was triggered by compilation custom quantization kernels in NNCF.
Requirement: GPU
How to reproduce:
python examples/post_training_quantization/torch/mobilenet_v2/main.py
What needs to be done?
Suppress
UserWarning: TORCH_CUDA_ARCH_LIST
by adding visible card architectures in TORCH_CUDA_ARCH_LIST before compilation in case if TORCH_CUDA_ARCH_LIST is not set by user. The list of CUDA architectures can be gotten bytorch.cuda.get_arch_list()
Example Pull Requests
No response
Resources
Contact points
@alexsu52
@AlexanderDokuchaev
Ticket
No response
The text was updated successfully, but these errors were encountered: