mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU Computing (https://www.mersenneforum.org/forumdisplay.php?f=92)
-   -   g++ doen't like an option gpuowl uses. (https://www.mersenneforum.org/showthread.php?t=26634)

drkirkby 2021-03-22 00:24

g++ doen't like an option gpuowl uses.
 
I'm using CentOS 7.8 on a Dell 7920.

[B]Download[/B]

[CODE][dkirkby@jackdaw gpuowl]$ git clone https://github.com/preda/gpuowl.git
[/CODE][B]Building - do I just run make? [/B]

[CODE][dkirkby@jackdaw gpuowl]$ make
echo \"`git describe --tags --long --dirty --always`\" > version.new
diff -q -N version.new version.inc >/dev/null || mv version.new version.inc
echo Version: `cat version.inc`
Version: "v7.2-69-g23c14a1"
g++ -MT ProofCache.o -MMD -MP -MF .d/ProofCache.Td -Wall -g -O3 -std=gnu++17 -c -o ProofCache.o ProofCache.cpp
g++: error: unrecognized command line option ‘-std=gnu++17’
make: *** [ProofCache.o] Error 1
[dkirkby@jackdaw gpuowl]$[/CODE]
[B]Here's version of g++[/B]
[CODE]
[dkirkby@jackdaw gpuowl]$ g++ --version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
[/CODE]


Em, I'm not sure why gcc is so old. I will build a later version. I'm guessing gpuowl needs a later version.

M344587487 2021-03-22 13:57

gcc is so old because you're using a distro that has stability as a feature, that's pretty much why centos is used IMO (at least it was, now red hat are ditching that model which will probably end up killing centos). Gpuowl apparently uses the 2017 gnu dialect of C++ so I think you'll need at least gcc/++ version 8: [url]https://en.wikipedia.org/wiki/C%2B%2B17#Compiler_support[/url]

paulunderwood 2021-03-22 14:10

Apart from Ubuntu, Fedora is a better choice than Centos,

drkirkby 2021-03-22 16:42

[QUOTE=paulunderwood;574361]Apart from Ubuntu, Fedora is a better choice than Centos,[/QUOTE]


I have been using some commercial software that it's only supported on Redhat. CentOS and Suse Enterprise (or whatever they call it).


All times are UTC. The time now is 15:17.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.