On Mon, 01 Aug 2016 14:16:57 +0200, poma wrote:
> On 01.08.2016 06:30, Amadeus W.M. wrote:
> [...]
>> In the cuda distribution there is a host_config.h file which contains
>> the following lines:
>>
>> #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9)
>>
>> #error -- unsupported GNU vers
On Tue, 2 Aug 2016 02:04:13 + (UTC)
"Amadeus W.M." wrote:
[snip]
>
> That's what I thought too, but try this:
>
> // Compile as
> // g++ -o gnuc gnuc.cpp
> // then as
> // g++ --std=gnu++11 -o gnuc gnuc.cpp
>
> #include
> #include
>
> using namespace std;
>
>
_GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9)
>> >>
>> >> #error -- unsupported GNU version! gcc versions later than 4.9 are
>> >> not supported!
>> >>
>> >> #endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ &
GNU version! gcc versions later than 4.9 are
> >> not supported!
> >>
> >> #endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) */
> >>
> >>
> >> This checks the version of the compiler and triggers an error with
> >>
OR__ > 9) */
>>
>>
>> This checks the version of the compiler and triggers an error with
>> gcc-6.1 even if I pass --std=gnu89 which was the default C standard in
>> gcc-4.9.
>
> You don't have write access to that file? If you do, you could just
>
On 08/01/2016 06:30 AM, Amadeus W.M. wrote:
> Third, I was only able to find a Fedora-21-Live image and I created a
> virtual box from it, booted that up and installed to disk. But, as one
> might expect, gnome-boxes only knew about the Live VM, and each time I
> would boot it up, it would boot
On Mon, 1 Aug 2016 04:30:03 + (UTC)
"Amadeus W.M." wrote:
> Third, I was only able to find a Fedora-21-Live image and I created a
> virtual box from it, booted that up and installed to disk. But, as
> one might expect, gnome-boxes only knew about the Live VM, and each
> time I would boot it
INOR__ > 9)
>
> #error -- unsupported GNU version! gcc versions later than 4.9 are
> not supported!
>
> #endif /* __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9) */
>
>
> This checks the version of the compiler and triggers an error with
> gcc-6.
On 01.08.2016 06:30, Amadeus W.M. wrote:
[...]
> In the cuda distribution there is a host_config.h file which contains the
> following lines:
>
> #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9)
>
> #error -- unsupported GNU version! gcc versions later than 4.9 are not
> supported!
>
> Rick Stevens, Systems Engineer AllDigital, Inc.
>> > >
>> >
>> > NVIDIA provides a cuda rpm repository and I installed everything from
>> > there with dnf, so it installed with whatever defaults it came with.
>> > And
or non-existent in newer gcc
> > > > implementations.
> > > >
> > > >
> > > > Rick Stevens, Systems Engineer AllDigital, Inc.
> > > >
> > >
> > > NVIDIA provides a cuda rpm repos
rovides a cuda rpm repository and I installed everything
> > from there with dnf, so it installed with whatever defaults it came
> > with. And, as you said, even if it doesn't check for the compiler,
> > it won't necessarily compile. I'm really looking for a clean way
even if it doesn't check for the compiler, it won't
> necessarily compile. I'm really looking for a clean way of installing
> gcc-4.9.
A possible workaround would be to set the version of C that you want
gcc to adhere to. I think there are flags in gcc that tell it to use,
say,
ory and I installed everything from
there with dnf, so it installed with whatever defaults it came with. And,
as you said, even if it doesn't check for the compiler, it won't
necessarily compile. I'm really looking for a clean way of installing
gcc-4.9.
--
users mailing list
us
gs that may be deprecated
or non-existent in newer gcc implementations.
Rick Stevens, Systems Engineer
AllDigital, Inc.
From: Amadeus W.M.
Sent: Sunday, July 31, 2016 9:08:35 AM
To: users@lists.fedoraproject.org
Subject: gcc 4.9
I want to do some parallel pro
I want to do some parallel programming on my nvidia GPU, and for that I
need cuda. The latest is cuda 7.5 and that requires gcc 4.9. I installed
cuda on my machine, but little did I know that fedora 24, which I recently
installed, came with gcc 6.1. I wasn't able to compile any of the
16 matches
Mail list logo