@@ -105,6 +105,12 @@ function getPreferredCuda(os) {
105105
106106// Disable compute platform not supported on OS
107107function disableUnsupportedPlatforms ( os ) {
108+
109+ if ( opts . ptbuild == "preview" )
110+ archMap = version_map . nightly
111+ else
112+ archMap = version_map . release
113+
108114 for ( const [ arch_key , info ] of archInfoMap ) {
109115 var elems = document . querySelectorAll ( '[id^="' + arch_key + '"]' ) ;
110116 if ( elems == null ) {
@@ -114,6 +120,11 @@ function disableUnsupportedPlatforms(os) {
114120 for ( var i = 0 ; i < elems . length ; i ++ ) {
115121 var supported = info . platforms . has ( os ) ;
116122 elems [ i ] . style . textDecoration = supported ? "" : "line-through" ;
123+
124+ // Officially supported arch but not available
125+ if ( ! archMap [ elems [ i ] . id ] ) {
126+ elems [ i ] . style . textDecoration = "line-through" ;
127+ }
117128 }
118129 }
119130}
@@ -129,10 +140,13 @@ function changeVersion(ptbuild) {
129140 for ( const [ arch_key , info ] of archInfoMap ) {
130141 var elems = document . querySelectorAll ( '[id^="' + arch_key + '"]' ) ;
131142 for ( var i = 0 ; i < elems . length ; i ++ ) {
132- if ( archMap [ elems [ i ] . id ] )
143+ if ( archMap [ elems [ i ] . id ] ) {
144+ elems [ i ] . style . textDecoration = "" ;
133145 elems [ i ] . children [ 0 ] . textContent = info . title + " " + archMap [ elems [ i ] . id ] [ 1 ]
134- else
146+ }
147+ else {
135148 elems [ i ] . style . textDecoration = "line-through" ;
149+ }
136150 }
137151 }
138152 var stable_element = document . getElementById ( "stable" ) ;
0 commit comments