wave64_tests.rs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. //! A console wave64 compute program on a host of 32-lane waves: a wave reduction inside a
  2. //! per-lane branch, with that branch taken wave-wide ([`crate::structure::structure_wide`])
  3. //! so that the two host waves can exchange their halves inside it. Lowered, validated by
  4. //! `dxil.dll` when present, and run on the host GPU when it takes waves of 32.
  5. use std::collections::HashSet;
  6. use super::host::{Dispatch, Host, Root, View};
  7. use super::{HostShader, lower, validator};
  8. use crate::native::{
  9. ComputeIo, HwStage, NativeProgram, ResourceType, RootParam, RootType, StageIo, UsedResource,
  10. };
  11. use crate::{ShaderError, io, ir, resource, structure};
  12. const S_ENDPGM: u32 = 0xBF81_0000;
  13. /// 64 threads in one console wave. Each thread t holds the bit `1 << (t >> 1)`; the threads
  14. /// below s0 (a root constant) OR theirs over the wave inside `if (t < s0) { ... }` and store
  15. /// the result to dword 0 of the raw UAV.
  16. /// `skip`: the branch past the body when no thread is below s0: `s_cbranch_execz`, or
  17. /// `s_cbranch_scc0` on the SCC `s_and_saveexec` sets ("some lane is left").
  18. fn program(skip: u32) -> NativeProgram {
  19. let mut words = vec![
  20. 0x7E0A_0281, // v_mov_b32 v5, 1
  21. 0x2C0C_0081, // v_lshrrev_b32 v6, 1, v0
  22. 0x340E_0B06, // v_lshlrev_b32 v7, v6, v5
  23. 0x7D88_0000, // v_cmp_gt_u32 vcc, s0, v0
  24. 0xBE8C_246A, // s_and_saveexec_b64 s[12:13], vcc
  25. skip | 23, // the branch to the restore of EXEC
  26. ];
  27. words.extend_from_slice(&super::wave::WAVE_OR_V7_TO_S7);
  28. words.extend_from_slice(&[
  29. 0x7E00_0207, // v_mov_b32 v0, s7
  30. 0x38 << 26 | 0x1C << 18,
  31. 0x80 << 24 | 2 << 16, // buffer_store_dword v0, off, s[8:11], 0
  32. 0xBEFE_040C, // s_mov_b64 exec, s[12:13]
  33. ]);
  34. native(&words)
  35. }
  36. /// A wave64 compute program of 64 threads (one console wave; the thread index in v0) with 4
  37. /// root constants in s0..s3 and a raw UAV's descriptor in s[8:11], then `body`.
  38. fn native(body: &[u32]) -> NativeProgram {
  39. native_of(body, true, 64)
  40. }
  41. /// The same for a console of 32-lane waves when `wave64` is not set, with `threads` threads.
  42. fn native_of(body: &[u32], wave64: bool, threads: u32) -> NativeProgram {
  43. let mut words = vec![
  44. 0xBE85_0380, // s_mov_b32 s5, 0
  45. 0x3D << 26 | 0x02 << 18 | 8 << 6 | 2,
  46. 125 << 25, // s_load_dwordx4 s[8:11], s[4:5], 0
  47. ];
  48. words.extend_from_slice(body);
  49. words.push(S_ENDPGM);
  50. NativeProgram {
  51. stage: HwStage::Cs,
  52. wave64,
  53. vgprs: 16,
  54. layout: vec![
  55. RootParam {
  56. root: RootType::Constants,
  57. table_offset_dwords: 0,
  58. sgprs: 4,
  59. base_register: 0,
  60. user_data: 0,
  61. slot: 0,
  62. },
  63. RootParam {
  64. root: RootType::Table,
  65. table_offset_dwords: 0,
  66. sgprs: 1,
  67. base_register: 0,
  68. user_data: 4,
  69. slot: 1,
  70. },
  71. ],
  72. used: vec![UsedResource {
  73. kind: ResourceType::Uav,
  74. root: RootType::Table,
  75. table_offset_dwords: 0,
  76. lower_bound: 0,
  77. stride: 0,
  78. dwords: 4,
  79. user_data: 4,
  80. slot: 1,
  81. }],
  82. io: StageIo::Cs(ComputeIo {
  83. rsrc2: 5 << 1, // 5 user SGPRs: s0..s4
  84. threads: [threads, 1, 1],
  85. }),
  86. code: words.iter().flat_map(|w| w.to_le_bytes()).collect(),
  87. }
  88. }
  89. /// `program()` for a host of 32-lane waves, with the branches closing `wide` taken wave-wide.
  90. fn lowered(native: &NativeProgram, p: &ir::Program, wide: &HashSet<usize>) -> Result<HostShader, ShaderError> {
  91. let st = structure::structure_wide(p, wide).expect("structure");
  92. let res = resource::track(p, &native.layout, native.stage, Some(&st)).expect("resource::track");
  93. let io = io::raise(p, native).expect("io::raise");
  94. let was = lower::TEST_HOST_WAVE.replace(Some(32));
  95. let lowered = lower::lower(&lower::Parts {
  96. native,
  97. p,
  98. st: &st,
  99. io: &io,
  100. res: &res,
  101. inputs: Vec::new(),
  102. outputs: Vec::new(),
  103. prims: Vec::new(),
  104. mesh_stride: 0,
  105. });
  106. lower::TEST_HOST_WAVE.set(was);
  107. let lowered = lowered?;
  108. Ok(HostShader {
  109. stage: HwStage::Cs,
  110. dxil: lowered.dxil,
  111. user_data: lowered.user_data,
  112. samplers: lowered.samplers,
  113. static_samplers: Vec::new(),
  114. root_cbvs: lowered.root_cbvs,
  115. root_srvs: lowered.root_srvs,
  116. root_uavs: lowered.root_uavs,
  117. root_indexed_views: res.root_indexed_views,
  118. })
  119. }
  120. #[test]
  121. fn a_sum_of_halves_over_the_wave_is_the_consoles_tree_bit_for_bit() {
  122. // thread t holds the 16-bit float with bits 0x3C00 + 37 t (1.0 and up, with odd
  123. // mantissas, so that additions round); all of them store the wave's sum
  124. let mut words = vec![
  125. 0x340C_0085, // v_lshlrev_b32 v6, 5, v0
  126. 0x340E_0082, // v_lshlrev_b32 v7, 2, v0
  127. 0x4A0E_0F06, // v_add_nc_u32 v7, v6, v7
  128. 0x4A0E_0F00, // v_add_nc_u32 v7, v0, v7
  129. 0x4A0E_0EFF,
  130. 0x0000_3C00, // v_add_nc_u32 v7, 0x3c00, v7
  131. ];
  132. // (the wave OR's words with v_add_f16 for v_or_b32: opcode 50 for 28)
  133. words.extend(super::wave::WAVE_OR_V7_TO_S7.iter().map(|&w| if w >> 25 == 28 { w & 0x01FF_FFFF | 50 << 25 } else { w }));
  134. words.extend_from_slice(&[
  135. 0x7E00_0207, // v_mov_b32 v0, s7
  136. 0x38 << 26 | 0x1C << 18,
  137. 0x80 << 24 | 2 << 16, // buffer_store_dword v0, off, s[8:11], 0
  138. ]);
  139. let native = native(&words);
  140. let p = ir::build(&native.code, native.wave64, native.vgprs).expect("ir::build");
  141. assert_eq!(p.blocks.iter().flat_map(|b| &b.insts).filter(|i| i.name() == "v_add_f16").count(), 6);
  142. let shader = lowered(&native, &p, &HashSet::new()).expect("lower");
  143. if let Ok(mut v) = validator::Validator::load(validator::Validator::default_path().as_deref()) {
  144. let mut copy = shader.dxil.clone();
  145. v.validate(&mut copy).expect("DXIL validation failed");
  146. }
  147. // the console's sum: lanes 2k and 2k+1, then pairs, ... each addition rounded to 16 bits
  148. // (to nearest, ties to even); values here are normal numbers
  149. let wide = |h: u16| f32::from_bits((u32::from(h >> 10) + 112) << 23 | u32::from(h & 0x3FF) << 13);
  150. let narrow = |f: f32| {
  151. let b = f.to_bits();
  152. let h = ((b >> 23) - 112) << 10 | (b >> 13 & 0x3FF);
  153. let rest = b & 0x1FFF;
  154. (h + u32::from(rest > 0x1000 || rest == 0x1000 && h & 1 == 1)) as u16
  155. };
  156. let add = |a: u16, b: u16| narrow(wide(a) + wide(b));
  157. let terms: Vec<u16> = (0..64u16).map(|t| 0x3C00 + 37 * t).collect();
  158. let mut tree = terms.clone();
  159. while tree.len() > 1 {
  160. tree = tree.chunks(2).map(|c| add(c[0], c[1])).collect();
  161. }
  162. let in_a_row = terms.iter().copied().reduce(add).unwrap();
  163. assert_ne!(tree[0], in_a_row, "these terms tell the tree from another order");
  164. let _one = super::valu_tests::ONE_AT_A_TIME.lock().unwrap_or_else(|e| e.into_inner());
  165. let Ok(host) = Host::new(false) else {
  166. eprintln!("no SM 6.6 hardware device; not run");
  167. return;
  168. };
  169. let (root, pso) = match host.compute_pipeline(&shader) {
  170. Ok(x) => x,
  171. Err(e) => {
  172. eprintln!("the hardware device does not take this program (waves of 32?): {e}; not run");
  173. return;
  174. }
  175. };
  176. let ud = vec![0u32; shader.user_data_dwords().max(1) as usize];
  177. let out = host
  178. .dispatch(
  179. &root,
  180. &pso,
  181. &Dispatch {
  182. roots: vec![(0, Root::Constants(ud))],
  183. views: &[View::RawUav(1)],
  184. samplers: &[],
  185. groups: [1, 1, 1],
  186. },
  187. )
  188. .unwrap_or_else(|e| panic!("dispatch failed: {e}"));
  189. // (the high half is lane 0's term's: zero)
  190. assert_eq!(out[0][0], u32::from(tree[0]), "tree {:#x}, in a row {in_a_row:#x}", tree[0]);
  191. eprintln!("ran on the hardware device: the sum {:#x} of the console's tree", tree[0]);
  192. }
  193. /// One `v_add_f16` whose exact result lies between two halves: 1 + 3/1024 (0x3C03) plus 2
  194. /// (0x4000) is 3 + 1.5 steps of that range, which the console rounds up to 0x4202. The
  195. /// host's `f32tof16` may give 0x4201 (toward zero); with `VICTORY_F16_NEAREST=1` the
  196. /// translation gives the console's whatever the host does.
  197. #[test]
  198. fn a_16_bit_sum_rounds_to_nearest_when_asked_to() {
  199. let words = [
  200. 0x7E0E_02FF,
  201. 0x0000_3C03, // v_mov_b32 v7, 0x3c03
  202. 0x7E0C_02FF,
  203. 0x0000_4000, // v_mov_b32 v6, 0x4000
  204. 0x6400_0D07, // v_add_f16 v0, v7, v6
  205. 0x38 << 26 | 0x1C << 18,
  206. 0x80 << 24 | 2 << 16, // buffer_store_dword v0, off, s[8:11], 0
  207. ];
  208. let native = native(&words);
  209. let p = ir::build(&native.code, native.wave64, native.vgprs).expect("ir::build");
  210. assert!(p.blocks.iter().flat_map(|b| &b.insts).any(|i| i.name() == "v_add_f16"));
  211. let _one = super::valu_tests::ONE_AT_A_TIME.lock().unwrap_or_else(|e| e.into_inner());
  212. for nearest in [false, true] {
  213. let was = lower::TEST_F16_NEAREST.replace(Some(nearest));
  214. let shader = lowered(&native, &p, &HashSet::new());
  215. lower::TEST_F16_NEAREST.set(was);
  216. let shader = shader.expect("lower");
  217. if let Ok(mut v) = validator::Validator::load(validator::Validator::default_path().as_deref()) {
  218. let mut copy = shader.dxil.clone();
  219. v.validate(&mut copy).expect("DXIL validation failed");
  220. }
  221. let Ok(host) = Host::new(false) else {
  222. eprintln!("no SM 6.6 hardware device; not run");
  223. return;
  224. };
  225. let Ok((root, pso)) = host.compute_pipeline(&shader) else {
  226. eprintln!("the hardware device does not take this program; not run");
  227. return;
  228. };
  229. let ud = vec![0u32; shader.user_data_dwords().max(1) as usize];
  230. let out = host
  231. .dispatch(
  232. &root,
  233. &pso,
  234. &Dispatch {
  235. roots: vec![(0, Root::Constants(ud))],
  236. views: &[View::RawUav(1)],
  237. samplers: &[],
  238. groups: [1, 1, 1],
  239. },
  240. )
  241. .unwrap_or_else(|e| panic!("dispatch failed: {e}"));
  242. let got = out[0][0] & 0xFFFF;
  243. eprintln!("v_add_f16 0x3c03 + 0x4000 on the hardware device, nearest {nearest}: {got:#x}");
  244. if nearest {
  245. assert_eq!(got, 0x4202);
  246. } else {
  247. assert!(got == 0x4201 || got == 0x4202, "{got:#x}");
  248. }
  249. }
  250. }
  251. #[test]
  252. fn a_wave_or_inside_a_lane_branch_needs_the_branch_wave_wide() {
  253. for (skip, name) in [(0xBF88_0000, "s_cbranch_execz"), (0xBF84_0000, "s_cbranch_scc0")] {
  254. a_wave_or_inside(skip, name);
  255. }
  256. }
  257. fn a_wave_or_inside(skip: u32, name: &str) {
  258. let native = program(skip);
  259. let p = ir::build(&native.code, native.wave64, native.vgprs).expect("ir::build");
  260. let branch = (0..p.blocks.len())
  261. .find(|&b| p.blocks[b].insts.last().is_some_and(|i| i.name() == name))
  262. .expect("the branch");
  263. // per lane, the two host waves cannot meet inside the branch
  264. lower::take_needs();
  265. let per_lane = lowered(&native, &p, &HashSet::new());
  266. assert!(
  267. matches!(&per_lane, Err(ShaderError::Unsupported { what, .. }) if *what == "a wave reduction where not every lane runs"),
  268. "{:?}",
  269. per_lane.err()
  270. );
  271. // ... and the lowering names the block, around which that branch is the one to widen
  272. let needs = lower::take_needs();
  273. let st = structure::structure(&p).expect("structure");
  274. assert_eq!(lower::branches_around(&st, &needs), Some(vec![branch]));
  275. // (taken, past the body, when every lane's bit is clear)
  276. assert_eq!(st.wave_any[branch], Some(false));
  277. // wave-wide, every lane runs the reduction (EXEC stays a guard on what it does there)
  278. let wide = HashSet::from([branch]);
  279. let st = structure::structure_wide(&p, &wide).expect("structure");
  280. let inside = match p.blocks[branch].exit {
  281. ir::Exit::Branch { not_taken, .. } => not_taken,
  282. _ => unreachable!(),
  283. };
  284. assert!(st.guards[inside].iter().any(Option::is_some));
  285. let shader = lowered(&native, &p, &wide).expect("lower");
  286. if let Ok(mut v) = validator::Validator::load(validator::Validator::default_path().as_deref()) {
  287. let mut copy = shader.dxil.clone();
  288. v.validate(&mut copy).expect("DXIL validation failed");
  289. }
  290. // On a GPU that takes waves of 32 (two host waves for the console's one): the OR is of
  291. // both halves, whichever half's lanes take the branch.
  292. let _one = super::valu_tests::ONE_AT_A_TIME.lock().unwrap_or_else(|e| e.into_inner());
  293. let Ok(host) = Host::new(false) else {
  294. eprintln!("no SM 6.6 hardware device; not run");
  295. return;
  296. };
  297. let (root, pso) = match host.compute_pipeline(&shader) {
  298. Ok(x) => x,
  299. Err(e) => {
  300. eprintln!("the hardware device does not take this program (waves of 32?): {e}; not run");
  301. return;
  302. }
  303. };
  304. // (threads below s0 take the branch; thread t gives bit t >> 1)
  305. for (below, expected) in [(64u32, u32::MAX), (40, 0x000F_FFFF), (33, 0x0001_FFFF), (10, 0x1F), (1, 1)] {
  306. let mut ud = vec![0u32; shader.user_data_dwords().max(1) as usize];
  307. for u in &shader.user_data {
  308. if let (RootType::Constants, 0, 0) = (u.root, u.slot, u.dword) {
  309. ud[u.index as usize] = below;
  310. }
  311. }
  312. let out = host
  313. .dispatch(
  314. &root,
  315. &pso,
  316. &Dispatch {
  317. roots: vec![(0, Root::Constants(ud))],
  318. views: &[View::RawUav(1)],
  319. samplers: &[],
  320. groups: [1, 1, 1],
  321. },
  322. )
  323. .unwrap_or_else(|e| panic!("dispatch failed: {e}"));
  324. assert_eq!(out[0][0], expected, "{name}: {below} threads in the branch");
  325. }
  326. eprintln!("ran on the hardware device ({name}): the OR of both halves in every case");
  327. }
  328. /// Runs `shader` on the hardware device with the root constants `s0`, `s1` and gives dword 0
  329. /// of the UAV; None (and a line) without a device that takes it.
  330. fn on_the_card(shader: &HostShader, constants: [u32; 2]) -> Option<u32> {
  331. let Ok(host) = Host::new(false) else {
  332. eprintln!("no SM 6.6 hardware device; not run");
  333. return None;
  334. };
  335. let Ok((root, pso)) = host.compute_pipeline(shader) else {
  336. eprintln!("the hardware device does not take this program; not run");
  337. return None;
  338. };
  339. let mut ud = vec![0u32; shader.user_data_dwords().max(1) as usize];
  340. for u in &shader.user_data {
  341. if let (RootType::Constants, 0, d @ 0..=1) = (u.root, u.slot, u.dword) {
  342. ud[u.index as usize] = constants[d as usize];
  343. }
  344. }
  345. let out = host
  346. .dispatch(
  347. &root,
  348. &pso,
  349. &Dispatch {
  350. roots: vec![(0, Root::Constants(ud))],
  351. views: &[View::RawUav(1)],
  352. samplers: &[],
  353. groups: [1, 1, 1],
  354. },
  355. )
  356. .unwrap_or_else(|e| panic!("dispatch failed: {e}"));
  357. Some(out[0][0])
  358. }
  359. /// A 32-lane console wave. A register holds a lane mask on one path (the lanes below s0)
  360. /// and a number on the other, and is read as a number after the join, as the trace programs
  361. /// keep their lanes' masks and their node numbers on one stack
  362. /// (`deferred_tiled:CS_LaserLightShadowRaytracing`, s46 at 0x104, 0x75c and 0x188). The
  363. /// mask arrives as the ballot of its lanes.
  364. #[test]
  365. fn a_lane_mask_joined_with_a_number_is_read_as_the_number_it_is() {
  366. let words = [
  367. 0x7D88_0000, // v_cmp_gt_u32 vcc_lo, s0, v0
  368. 0xBE94_036A, // s_mov_b32 s20, vcc_lo
  369. 0xBF06_8001, // s_cmp_eq_u32 s1, 0
  370. 0xBF85_0001, // s_cbranch_scc1 over the next
  371. 0xBE94_0385, // s_mov_b32 s20, 5
  372. 0x7E00_0214, // v_mov_b32 v0, s20
  373. 0x38 << 26 | 0x1C << 18,
  374. 0x80 << 24 | 2 << 16, // buffer_store_dword v0, off, s[8:11], 0
  375. ];
  376. let native = native_of(&words, false, 32);
  377. let p = ir::build(&native.code, native.wave64, native.vgprs).expect("ir::build");
  378. let shader = lowered(&native, &p, &HashSet::new()).expect("lower");
  379. if let Ok(mut v) = validator::Validator::load(validator::Validator::default_path().as_deref()) {
  380. let mut copy = shader.dxil.clone();
  381. v.validate(&mut copy).expect("DXIL validation failed");
  382. }
  383. let _one = super::valu_tests::ONE_AT_A_TIME.lock().unwrap_or_else(|e| e.into_inner());
  384. for (below, other, expected) in [(32u32, 0u32, u32::MAX), (10, 0, 0x3FF), (0, 0, 0), (10, 1, 5)] {
  385. let Some(got) = on_the_card(&shader, [below, other]) else { return };
  386. assert_eq!(got, expected, "{below} lanes in the mask, s1 = {other}");
  387. }
  388. eprintln!("ran on the hardware device: the mask's bits, or the number");
  389. }
  390. /// A 32-lane console wave. `if (t < s0) { ... SCC = (s1 == 7) }` and a branch on SCC after
  391. /// the join: the skip brings the SCC of `s_and_saveexec` ("some lane is left") along
  392. /// (`rtdirectionalshadows:CS_RTShadowTrace32HQ_TiledFarOnly`, 0x360-0x39c). On the console
  393. /// the skip is taken by the wave, so with some lane inside every lane sees the inner test.
  394. /// A lane that skipped on its own would see "some lane is left" instead: refused per lane,
  395. /// right with the branch taken wave-wide. Lane 31 stores what it saw.
  396. #[test]
  397. fn scc_of_a_mask_operation_joined_with_a_scalar_test_needs_the_skip_wave_wide() {
  398. let words = [
  399. 0x7D88_0000, // v_cmp_gt_u32 vcc_lo, s0, v0
  400. 0xBE8D_3C6A, // s_and_saveexec_b32 s13, vcc_lo
  401. 0xBF88_0001, // s_cbranch_execz over the next
  402. 0xBF06_8701, // s_cmp_eq_u32 s1, 7
  403. 0xBEFE_030D, // s_mov_b32 exec_lo, s13
  404. 0xBF85_0002, // s_cbranch_scc1 to "seven"
  405. 0x7E0A_0281, // v_mov_b32 v5, 1
  406. 0xBF82_0001, // s_branch over the next
  407. 0x7E0A_0282, // seven: v_mov_b32 v5, 2
  408. 0x7DA4_009F, // v_cmpx_eq_u32 exec_lo, 31, v0
  409. 0x38 << 26 | 0x1C << 18,
  410. 0x80 << 24 | 2 << 16 | 5 << 8, // buffer_store_dword v5, off, s[8:11], 0
  411. ];
  412. let native = native_of(&words, false, 32);
  413. let p = ir::build(&native.code, native.wave64, native.vgprs).expect("ir::build");
  414. let branch = (0..p.blocks.len())
  415. .find(|&b| p.blocks[b].insts.last().is_some_and(|i| i.name() == "s_cbranch_execz"))
  416. .expect("the skip");
  417. lower::take_needs();
  418. let per_lane = lowered(&native, &p, &HashSet::new());
  419. assert!(
  420. matches!(&per_lane, Err(ShaderError::Unsupported { what, .. }) if *what == "a lane mask read as data"),
  421. "{:?}",
  422. per_lane.err()
  423. );
  424. let st = structure::structure(&p).expect("structure");
  425. assert_eq!(lower::branches_around(&st, &lower::take_needs()), Some(vec![branch]));
  426. let shader = lowered(&native, &p, &HashSet::from([branch])).expect("lower");
  427. if let Ok(mut v) = validator::Validator::load(validator::Validator::default_path().as_deref()) {
  428. let mut copy = shader.dxil.clone();
  429. v.validate(&mut copy).expect("DXIL validation failed");
  430. }
  431. let _one = super::valu_tests::ONE_AT_A_TIME.lock().unwrap_or_else(|e| e.into_inner());
  432. // (lanes below s0 inside, s1) -> what lane 31 stores: 2 if SCC was set at the branch
  433. for (below, s1, expected) in [(0u32, 7u32, 1u32), (10, 7, 2), (10, 3, 1), (32, 3, 1), (32, 7, 2)] {
  434. let Some(got) = on_the_card(&shader, [below, s1]) else { return };
  435. assert_eq!(got, expected, "{below} lanes inside, s1 = {s1}");
  436. }
  437. eprintln!("ran on the hardware device: the inner test's SCC for every lane once some lane is inside");
  438. }