PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, July 17, 2022

[FIXED] How to disable all unwanted nvcc compiler warnings

 July 17, 2022     cuda, nvcc, warnings     No comments   

Issue

I'm getting so many warnings at the nvcc compiler such as "was set but never used ", "was declared but never referenced", "expression has no effect" etc. In one post, someone suggested brute force #prgma for each warning. This is impractical because I have so many warnings. I tried -w, but that didn't work. In another post, someone suggested -Xcompiler "-w" , but that didn't work for me either. How can I suppress all nvcc warnings?


Solution

As per the documentation, --disable-warnings or -w will disable all nvcc (technically CUDA toolchain) generated warnings. As a rule, I counsel against ignoring compiler warnings. They exist for a reason.



Answered By - talonmies
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing