From 92d061f5727fa58e12239d36e7c161a8870139ee Mon Sep 17 00:00:00 2001 From: Jarvis Carroll Date: Mon, 23 Jun 2025 22:19:04 +0900 Subject: [PATCH] Disable AVX2 for now AVX2 is much less available than one would expect, is hard for e.g. me to test, and because of the way gmhive_worker currently works, the illegal-instruction exit codes go undetected, leaving users confused as their balance stays at zero, despite the app saying they are getting solutions. --- src/gmc_con.erl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/gmc_con.erl b/src/gmc_con.erl index b541501..c93b709 100644 --- a/src/gmc_con.erl +++ b/src/gmc_con.erl @@ -205,10 +205,7 @@ do_start_stop(#s{acc = PubKey, keys = Keys, network = Network, max_cores = MaxCo {Fatness, Type} = case os:type() of {unix, linux} -> - case Network of - <<"mainnet">> -> {"mean", "avx2"}; - <<"testnet">> -> {"mean", "generic"} - end; + {"mean", "generic"}; {unix, darwin} -> % Check memory. >7gb gets mean, <7gb gets lean {"mean", "generic"}; @@ -216,10 +213,7 @@ do_start_stop(#s{acc = PubKey, keys = Keys, network = Network, max_cores = MaxCo % Check memory. >7gb gets mean, <7gb gets lean % Check avx2. % Both should be provided by the F# start program - case Network of - <<"mainnet">> -> {"mean", "avx2.exe"}; - <<"testnet">> -> {"mean", "generic.exe"} - end + {"mean", "generic"}; end, Miner = filename:join(platform_dir(), unicode:characters_to_binary([Fatness, Bits, "-", Type])), Count = optimize_count(MaxCores, MaxMem),