@NaRe_GrIgOrYaN Have a look at FPGA's. You can now purchase PCIe 3/4 cards. These have been used for Bitcoin mining.
Another avenue to explore is given in the link.
en.wikichip.org/wiki/neural_processorSynaptic is one of the companies' that makes these boards, to slot into your P.C.
I did some research when I was making a bit of money Bitcoin Mining.
FPGA was used to create an USB ASICs. link.
en.wikipedia.org/wiki/Application-specific_integrated_circuitI hope this helps you in finding the right way to go.
Lots of example's of code using these boards is available.
This is from 7 or 8 years ago. More examples now exist.