Thread: GpuOwl 7.x
View Single Post
Old 2020-11-13, 00:39   #174
Oct 2018
Temecula, ca

2×3×11 Posts

Originally Posted by preda View Post
I think ROCm 3.3 is good. Also any after 3.5 should work fine, but maybe slower than 3.3. You can try, now it's easier to install multiple versions of ROCm OpenCL in parallel (at the same time) and choose which one is used with LD_LIBRARY_PATH
Thanks! I had to make a two simple changes to make it compile, I must have a different g++.

diff --git a/Gpu.cpp b/Gpu.cpp
index 9e5f09a..3e6739e 100644
--- a/Gpu.cpp
+++ b/Gpu.cpp
@@ -24,6 +24,7 @@
 #include <numeric>
 #include <bitset>
 #include <limits>
+#include <iomanip>
 #ifndef M_PIl
 #define M_PIl 3.141592653589793238462643383279502884L
diff --git a/Pm1Plan.cpp b/Pm1Plan.cpp
index fa84b43..afdf461 100644
--- a/Pm1Plan.cpp
+++ b/Pm1Plan.cpp
@@ -41,7 +41,7 @@ u32 reduce(u32 B1, u32 pos) {
   return pos;
-constexpr u32 firstMissingFactor(u32 D) {
+u32 firstMissingFactor(u32 D) {
   switch (D) {
   case 210:
   case 420:
mrh is offline   Reply With Quote