<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">  What is HOST=cori09  Does it have GPUs?</div><div class=""><br class=""></div>  <a href="https://docs.nvidia.com/cuda/cuda-runtime-api/structcudaDeviceProp.html#structcudaDeviceProp_164490976c8e07e028a8f1ce1f5cd42d6" class="">https://docs.nvidia.com/cuda/cuda-runtime-api/structcudaDeviceProp.html#structcudaDeviceProp_164490976c8e07e028a8f1ce1f5cd42d6</a><div class=""><br class=""></div><div class="">  Seems to clearly state</div><div class=""><br class=""></div><div class=""><dt class="description" style="background-color: rgb(239, 239, 240); border-top-width: 1px; border-top-style: solid; border-top-color: rgb(216, 220, 222); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(238, 243, 245); padding: 3px; font-family: "Trebuchet MS", "DIN Pro", sans-serif; font-size: 14px;">int  <a href="https://docs.nvidia.com/cuda/cuda-runtime-api/structcudaDeviceProp.html#structcudaDeviceProp" title="" shape="rect" style="color: rgb(118, 185, 0);" class="">cudaDeviceProp</a>::<a href="https://docs.nvidia.com/cuda/cuda-runtime-api/structcudaDeviceProp.html#structcudaDeviceProp_164490976c8e07e028a8f1ce1f5cd42d6" shape="rect" style="color: rgb(118, 185, 0);" class="">major</a> [inherited] </dt><dd class="description" style="margin-left: 20px; margin-bottom: 20px; font-family: "Trebuchet MS", "DIN Pro", sans-serif; font-size: 14px;"><div class="section" style="margin-top: 0.8em; margin-bottom: 2em;"><p style="margin-left: 0px; margin-top: 0px;" class="">Major compute capability </p><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Mark, please compile and run this program on the machine you are running configure on</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #696795" class="">#include</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class=""><stdio.h></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(105, 103, 149);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">#include</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #9d206f" class=""><cuda.h></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #696795" class="">#include</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class=""><cuda_runtime.h></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #696795" class="">#include</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class=""><cuda_runtime_api.h></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #696795" class="">#include</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class=""><cuda_device_runtime_api.h></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(45, 150, 30);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">int</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #4a00ff" class="">main</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures" class="">int</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">arg</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">,</span><span style="font-variant-ligatures: no-common-ligatures" class="">char</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> **</span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">args</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">{</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(45, 150, 30);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c200ff" class="">struct</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">cudaDeviceProp</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">dp</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                cudaGetDeviceProperties(&dp, 0);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                printf(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9d206f" class="">"%d\n"</span><span style="font-variant-ligatures: no-common-ligatures" class="">,10*dp.major+dp.minor);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 16px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                </span><span style="font-variant-ligatures: no-common-ligatures; color: #2d961e" class="">int</span><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">major</span><span style="font-variant-ligatures: no-common-ligatures" class="">,</span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">minor</span><span style="font-variant-ligatures: no-common-ligatures" class="">;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">          </span>cuDeviceGetAttribute(&major, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, 0);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cuDeviceGetAttribute(&minor, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, 0);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                printf(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9d206f" class="">"%d\n"</span><span style="font-variant-ligatures: no-common-ligatures" class="">,10*major+minor);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                </span><span style="font-variant-ligatures: no-common-ligatures; color: #c200ff" class="">return</span><span style="font-variant-ligatures: no-common-ligatures" class="">(0);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">}</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 16px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 16px;" class="">This is what I get </div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; min-height: 16px;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ nvcc mytest.c -lcuda</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">~/petsc</span><span style="font-variant-ligatures: no-common-ligatures; color: #c814c9" class=""><b class=""> (main=)</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""> arch-main</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ ./a.out</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">70</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">70</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Which is exactly what it is suppose to do.</div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">Barry</div></div></div></dd><div><br class=""><blockquote type="cite" class=""><div class="">On May 26, 2021, at 5:31 PM, Barry Smith <<a href="mailto:bsmith@petsc.dev" class="">bsmith@petsc.dev</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">   Yes, this code which I guess never got hit before <br class=""><br class="">cudaDeviceProp dp;                cudaGetDeviceProperties(&dp, 0);                printf("%d\n",10*dp.major+dp.minor);                return(0);;<br class=""><br class="">is using the wrong property for the generation. <br class=""><br class="">  Back to the CUDA documentation for the correct information. <br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On May 26, 2021, at 3:47 PM, Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" class="">jacob.fai@gmail.com</a>> wrote:<br class=""><br class="">1120 sounds suspiciously like some CUDA version rather than architecture or compute capability…<br class=""><br class="">Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: +1 (312) 694-3391<br class=""><br class=""><blockquote type="cite" class="">On May 26, 2021, at 22:29, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:<br class=""><br class="">I started to get this error today on Cori. <br class=""><br class="">nvcc fatal   : Unsupported gpu architecture 'compute_1120'<br class=""><br class="">I am pretty sure I had a clean build but I can redo it if you don't know where this is from.<br class=""><br class="">Thanks,<br class="">Mark<br class=""><configure.log><br class=""></blockquote></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></body></html>