Can try NiceHashMiner settings for HT (since SMT is an analogue of HT from AMD) or cpuminer-opt.
NiceHashMiner:
"If you have a CPU with Hyper-Threading support (HT), then you might also want to experiment with special "Extra Launch Settings" (Settings / Devices/Algorithms / CPU / selected algorithm / Extra Launch Settings field). If you enter enable_ht=true in this field, and set "Less Threads" to 0, then NHM will use per-core affinity and run mining only on physical cores, leaving HT threads unused. In some cases this yields in a bit higher performance. You'll notice that only 50% of overall CPU utilization will be show by Task Manager or similar utilities, however due to the nature of mining algorithms and the nature of how Hyper-Threading works, 100% of CPU compute power will actually be used."
https://github.com/nicehash/NiceHashMiner/wiki/Notes-and-hints-on-CPU-mining
cpuminer-opt:
https://bitcointalksearch.org/topic/m.18460894
Then just specify what your processor is. To correctly call things by their proper names: HT is the name of INTEL technology for multithreading, the SMT is the name of AMD technology for multithreading in Ryzen processors.