|
Download asm/asm-debug-simd.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1464c23364f23349d4bfdab40fcdf171491d7c20/asm/asm-debug-simd.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@1464c23364f23349d4bfdab40fcdf171491d7c20/asm/asm-debug-simd.jsonl
-
curl -L -o asm-debug-simd.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1464c23364f23349d4bfdab40fcdf171491d7c20/asm/asm-debug-simd.jsonl
1.16 kB
| {"type": "session", "harness": "opencode", "id": "asm-debug-simd", "name": "Debugging x86-64 SIMD Bugs"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert debugger."}} | |
| {"type": "message", "message": {"role": "user", "content": "How do I debug SIMD (SSE/AVX) issues in x86-64?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "SIMD debugging:\n\n1. Alignment faults: SSE MOVAPS on unaligned address causes SIGSEGV. Check with 'x/1xg $rip'. Fix: use MOVUPS or ALIGN 16.\n\n2. MXCSR exceptions: MXCSR register controls SIMD exceptions. Bit 7=flush-to-zero, bits 1-5=exception masks. 'mxcsr' in GDB.\n\n3. AVX state: using XMM after AVX without VZEROUPPER causes perf degradation (not crash).\n\n4. Register state in GDB: 'p $xmm0.v4_float' (4 floats), 'p $ymm0.v8_float' (8 floats).\n\n5. Common SIMD bugs:\n - Lane confusion: operation on wrong lane. VPERMPS to debug shuffle orders.\n - Broadcast vs gather: VBROADCASTSS replicates, VPGATHERDD loads different values.\n - Mask register: AVX-512 k1-k7 masks lanes.\n\n6. Compiler Explorer: compare your assembly with compiler output to verify intrinsics."}} | |