Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Good First Issue][NNCF]: Suppress UserWarning: TORCH_CUDA_ARCH_LIST #3141

Open
alexsu52 opened this issue Dec 13, 2024 · 4 comments
Open

[Good First Issue][NNCF]: Suppress UserWarning: TORCH_CUDA_ARCH_LIST #3141

alexsu52 opened this issue Dec 13, 2024 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@alexsu52
Copy link
Contributor

Context

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()

Example Pull Requests

No response

Resources

Contact points

@alexsu52
@AlexanderDokuchaev

Ticket

No response

@alexsu52 alexsu52 added the good first issue Good for newcomers label Dec 13, 2024
@github-project-automation github-project-automation bot moved this to Contributors Needed in Good first issues Dec 13, 2024
@devesh-2002
Copy link

Hi. May I work upon this issue?

@alexsu52
Copy link
Contributor Author

@devesh-2002, sure. you can use take to assign for yourself.

@devesh-2002
Copy link

.take

Copy link

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

@alexsu52 alexsu52 moved this from Contributors Needed to Assigned in Good first issues Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Assigned
Development

No branches or pull requests

2 participants