It doesn't "ignite" it like a conventional fuse or cap ignites chemical explosives. It compresses it, converting a sub-critical mass to a critical mass. (Critical mass depends on geometry and density, as well as isotope ratios and such)
HMX can be used to ignite fissile material but YOU STILL NEED FISSILE MATERIAL, don't you . . . ?