Vectors test fails on AMD Ryzen 9 4900HS

Create issue
Issue #2581 new
Zach Etienne created an issue

Vectors, after correctly finding that CCTK_REAL_VEC_SIZE is in fact 4 on this CPU, with flags:

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sme sev sev_es

segfaults on the vec_loadu_maybe[1] test in Vectors.

INFO (Vectors): Testing vectorisation... [errors may result in segfaults]
INFO (VecINFO (Vectors): Testing vectorisation... [errors may result in segfaults]
INFO (Vectors): Test vec_set1...
INFO (Vectors): Test vec_set...
INFO (Vectors): Test vec_elt[0]...
INFO (Vectors): Test vec_elt[1]...
INFO (Vectors): Test vec_elt[2]...
INFO (Vectors): Test vec_elt[3]...
INFO (Vectors): Test vec_load...
INFO (Vectors): Test vec_loadu[0]...
INFO (Vectors): Test vec_loadu[1]...
INFO (Vectors): Test vec_loadu[2]...
INFO (Vectors): Test vec_loadu[3]...
INFO (Vectors): Test vec_loadu_maybe[0]...
INFO (Vectors): Test vec_loadu_maybe[1]...
Rank 0 with PID 218092 received signal 11

After commenting out this test, the test suite runs with no problems.

Comments (1)

  1. Erik Schnetter

    This test checks whether unaligned loads are working. It is likely that there is a bug in thorn vectors where it uses an aligned load where it shouldn’t.

    This part of thorn Vectors is unused by most code. If you do not see a segfault at run time, then your code is very likely working correctly.

  2. Log in to comment