# NVIDIA OpenCL fedora 14/15 support

**URL:** <https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185>\
**Category:** CUDA Programming and Performance\
**Created:** [June 22, 2011, 7:58pm UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185 "2011-06-22T19:58:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![santyhyammer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@santyhyammer](https://forums.developer.nvidia.com/u/santyhyammer)\
**Post date:** [June 22, 2011, 7:58pm UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/1 "2011-06-22T19:58:22Z")

</div>

Any reason for supporting only a 2yr old linux system like Fedora 13 and not Fedora 14 nor the most recent 15?  
Your **latest** CUDA Toolkit only supports EoLed Fedora 13!  
Same for SUSE 11.2 … guys the latest is 11.4 …  
Same for Ubuntu 10.10… the latest is 11.04  
Is it really so hard to change two lines, run make and give us the proper libraries for each OS?

---

<div class="post-metadata">

**Author:** ![ZHAO\_Peng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ZHAO\_Peng](https://forums.developer.nvidia.com/u/ZHAO_Peng)\
**Post date:** [June 23, 2011, 3:54am UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/2 "2011-06-23T03:54:28Z")

</div>

> [@](#):
>
> Any reason for supporting only a 2yr old linux system like Fedora 13 and not Fedora 14 nor the most recent 15?
> 
> Your **latest** CUDA Toolkit only supports EoLed Fedora 13!
> 
> Same for SUSE 11.2 … guys the latest is 11.4 …
> 
> Same for Ubuntu 10.10… the latest is 11.04
> 
> Is it really so hard to change two lines, run make and give us the proper libraries for each OS?

Actually the latest CUDA and OpenCL libraries can work on the latest linux distributions. I use openSUSE 11.4 and all OpenCL samples can be complied and run. The only problem is the CUDA C samples can not be complied which need old GCC, that is why Nvidia tells us the CUDA toolkit only support those old distribution. Someone said there are some technical reasons for using old GCC. I don’t know when Nvidia would like to solve it.

---

<div class="post-metadata">

**Author:** ![santyhyammer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@santyhyammer](https://forums.developer.nvidia.com/u/santyhyammer)\
**Post date:** [June 23, 2011, 7:39pm UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/3 "2011-06-23T19:39:01Z")

</div>

> [@](#):
>
> Actually the latest CUDA and OpenCL libraries can work on the latest linux distributions.

In my specific case, it does not work with Fedora 15 due to GLibc mismatch. Also, if you compile your program with the NVIDIA openCL sdk it won’t work with an ATI card because they link using libOpenCL.so.1 instead of libOpenCL.so.

CUDA 4.0 toolkit misses libOpenCL.so apparently too.

It’s supposed that the SDK could be used to use other platform’s implementations but, in practise, not.

> [@](#):
>
> The only problem is the CUDA C samples can not be complied which need old GCC, that is why Nvidia tells us the CUDA toolkit only support those old distribution. Someone said there are some technical reasons for using old GCC. I don’t know when Nvidia would like to solve it.

Not only the CUDA toolkit but also the GPU computing SDK. It’s a dissaster, nothing compiles. The big question is why they support a 2yr old almost EOLed distro and not the current ones.

---

<div class="post-metadata">

**Author:** ![ZHAO\_Peng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ZHAO\_Peng](https://forums.developer.nvidia.com/u/ZHAO_Peng)\
**Post date:** [June 24, 2011, 4:01am UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/4 "2011-06-24T04:01:44Z")

</div>

> [@](#):
>
> In my specific case, it does not work with Fedora 15 due to GLibc mismatch. Also, if you compile your program with the NVIDIA openCL sdk it won’t work with an ATI card because they link using libOpenCL.so.1 instead of libOpenCL.so.
> 
> CUDA 4.0 toolkit misses libOpenCL.so apparently too.
> 
> It’s supposed that the SDK could be used to use other platform’s implementations but, in practise, not.

I have not used Fedora 15 and know nothing about this problem. Maybe you can try OpenSUSE 11.4( I like it [External Image](http://forums.nvidia.com/public/style_emoticons/<#EMO_DIR#>/thumbup.gif "Image hosted on another site. Click to open in a new tab.") ).

In my mind compiling OpenCL program on Nvidia platform has nothing to do with CUDA toolkit or openCL SDK. It needs libOpenCL.so and libcuda.so which are all included in Nvidia driver. So if you have the Nvidia driver installed, you should be able to compile OpenCL program.

And the Nvidia’s OpenCL SDK can only used on Nvidia platform. And if you want your program to be used on the other platforms, you’d better recompile it.

> [@](#):
>
> Not only the CUDA toolkit but also the GPU computing SDK. It’s a dissaster, nothing compiles. The big question is why they support a 2yr old almost EOLed distro and not the current ones.

For GPU computing SDK, what is the error message?

---

<div class="post-metadata">

**Author:** ![santyhyammer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@santyhyammer](https://forums.developer.nvidia.com/u/santyhyammer)\
**Post date:** [June 24, 2011, 6:47pm UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/5 "2011-06-24T18:47:12Z")

</div>

> [@](#):
>
> For GPU computing SDK, what is the error message?

/usr/local/cuda/include/host\_config.h:82:2: error: #error – unsupported GNU version! gcc 4.5 and up are not supported!

In file included from /usr/lib/gcc/i686-redhat-linux/4.6.0/…/…/…/…/include/c++/4.6.0/i686-redhat-linux/bits/gthr.h:162:0,

```
             from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/ext/atomicity.h:34,

             from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/bits/ios_base.h:41,

             from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/ios:43,

             from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/ostream:40,

             from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/iostream:40,

             from interval.cu:26:

```

/usr/lib/gcc/i686-redhat-linux/4.6.0/…/…/…/…/include/c++/4.6.0/i686-redhat-linux/bits/gthr-default.h:251:1: error: paste “\__gthrw_” y "/\* Android’s C library does not provide pthread\_cancel, check for

`pthread\_create’ instead. \*/" it does not give a valid preprocessing element

In file included from interval.cu:32:0:

cpu\_interval.h:19:0: warning: redefined “\_\_USE\_ISOC99” [activated by default]

/usr/include/features.h:267:0: note: this is the ubication of the previous definition

make[2]: \*\*\* [obj/i386/release/interval.cu\_13.o] Error 1

make[2]: exiting directory `/home/santy/NVIDIA\_GPU\_Computing\_SDK/C/src/Interval’

make[1]: \*\*\* [src/Interval/Makefile.ph\_build] Error 2

make[1]: exiting directory `/home/santy/NVIDIA\_GPU\_Computing\_SDK/C’

---

<div class="post-metadata">

**Author:** ![ZHAO\_Peng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ZHAO\_Peng](https://forums.developer.nvidia.com/u/ZHAO_Peng)\
**Post date:** [June 25, 2011, 3:49am UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/6 "2011-06-25T03:49:42Z")

</div>

> [@](#):
>
> /usr/local/cuda/include/host\_config.h:82:2: error: #error – unsupported GNU version! gcc 4.5 and up are not supported!
> 
> In file included from /usr/lib/gcc/i686-redhat-linux/4.6.0/…/…/…/…/include/c++/4.6.0/i686-redhat-linux/bits/gthr.h:162:0,
> 
> ```
> from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/ext/atomicity.h:34,
> 
> from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/bits/ios_base.h:41,
> 
> from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/ios:43,
> 
> from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/ostream:40,
> 
> from /usr/lib/gcc/i686-redhat-linux/4.6.0/../../../../include/c++/4.6.0/iostream:40,
> 
> from interval.cu:26:
> 
> ```
> 
> /usr/lib/gcc/i686-redhat-linux/4.6.0/…/…/…/…/include/c++/4.6.0/i686-redhat-linux/bits/gthr-default.h:251:1: error: paste “\__gthrw_” y "/\* Android’s C library does not provide pthread\_cancel, check for
> 
> `pthread\_create’ instead. \*/" it does not give a valid preprocessing element
> 
> In file included from interval.cu:32:0:
> 
> cpu\_interval.h:19:0: warning: redefined “\_\_USE\_ISOC99” [activated by default]
> 
> /usr/include/features.h:267:0: note: this is the ubication of the previous definition
> 
> make[2]: \*\*\* [obj/i386/release/interval.cu\_13.o] Error 1
> 
> make[2]: exiting directory `/home/santy/NVIDIA\_GPU\_Computing\_SDK/C/src/Interval’
> 
> make[1]: \*\*\* [src/Interval/Makefile.ph\_build] Error 2
> 
> make[1]: exiting directory `/home/santy/NVIDIA\_GPU\_Computing\_SDK/C’

According to the error message, you were compiling CUDA C samples. As I said, compiling CUDA code is only supported by old GCC.

If you just want to use OpenCL, you should enter into the folder ‘/home/santy/NVIDIA\_GPU\_Computing\_SDK/OpenCL’ and type make in terminal to compile OpenCL Samples. It should work.

As I said before, NVIDIA\_GPU\_Computing\_SDK is not necessary for compiling your OpenCL programs. It only has some samples. All you need is the driver and OpenCL header files which can be downloaded from Khronos.

---

<div class="post-metadata">

**Author:** ![santyhyammer](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@santyhyammer](https://forums.developer.nvidia.com/u/santyhyammer)\
**Post date:** [June 25, 2011, 3:51am UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/7 "2011-06-25T03:51:51Z")

</div>

> [@](#):
>
> According to the error message, you were compiling CUDA C samples. As I said, compiling CUDA code is only supported by old GCC.

Same errors for OpenCL. GCC version not supported.

---

<div class="post-metadata">

**Author:** ![ZHAO\_Peng](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ZHAO\_Peng](https://forums.developer.nvidia.com/u/ZHAO_Peng)\
**Post date:** [June 25, 2011, 4:02am UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/8 "2011-06-25T04:02:15Z")

</div>

> [@](#):
>
> Same errors for OpenCL. GCC version not supported.

In my OpenSUSE 11.4 GCC version is 4.5.1. Maybe 4.6 has some differences. I have no idea about that. [External Image](http://forums.nvidia.com/public/style_emoticons/<#EMO_DIR#>/wallbash.gif "Image hosted on another site. Click to open in a new tab.")

Now I have turned to Intel OpenCL SDK. I will come back when Nvidia releases their OpenCL 1.1 Implementation.

---

<div class="post-metadata">

**Author:** ![Scott\_Stensland](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/scott_stensland/32/9974_2.png) [@Scott\_Stensland](https://forums.developer.nvidia.com/u/Scott_Stensland)\
**Post date:** [August 17, 2011, 6:14am UTC](https://forums.developer.nvidia.com/t/nvidia-opencl-fedora-14-15-support/23185/9 "2011-08-17T06:14:59Z")

</div>

actually its quite easy to redirect nvidia to use that old compiler  
details at [The Official NVIDIA Forums | NVIDIA](http://forums.nvidia.com/index.php?showtopic=198030)

enjoy - scott stensland
