CUDA 12.9, failed to compile VS 2022 on Window

Hi!

I am currently using RTX 5090. and trying to compile Initial CUDA sample code given when a cuda 12.9 runtime project is created from visual studio 2022. I am getting the error message in the image and I failed to figure out the meaning of this error as the error message is too vague.
Any advice would be helpful.
Thanks!

image

Your 5090 is cc_120 and you are compiling for cc_90. Try changing that.