nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   OpenCL slow compiling (http://www.nvnews.net/vbulletin/showthread.php?t=140922)

Sonicadvance1 11-04-09 05:46 PM

OpenCL slow compiling
 
I have two systems, one with OSX 10.6.1 and one with a form of debian Linux.
On OSX, compiling my OpenCL program takes around two seconds, but on my Linux box, it takes nearly 18!

My OpenCL program has many kernels inside of it, I was wonder why there is such a huge difference in compile times and if there is a way to fix it.

jma 11-05-09 07:17 AM

Re: OpenCL slow compiling
 
The compiler runs on the Intel processor, not on the video card ...

Deanjo 11-05-09 11:49 AM

Re: OpenCL slow compiling
 
Quote:

Originally Posted by Sonicadvance1 (Post 2117273)
I have two systems, one with OSX 10.6.1 and one with a form of debian Linux.
On OSX, compiling my OpenCL program takes around two seconds, but on my Linux box, it takes nearly 18!

My OpenCL program has many kernels inside of it, I was wonder why there is such a huge difference in compile times and if there is a way to fix it.

On OS X are you using the LLVM compiler perhaps?

Sonicadvance1 11-05-09 04:53 PM

Re: OpenCL slow compiling
 
jma, I know that it runs on the CPU when compiling....

Deanjo, Should be. I guess there is a massive speed difference between OSX's LLVM/Clang compiling and whatever is being used in Linux?

queen6 11-06-09 09:40 AM

Re: OpenCL slow compiling
 
Sonicadvance1 everything depends on your settings (optimization and compilation flags) and core you're compiling.

If you're using LLVM/Clang for C code - it should be faster than gcc.

Also as far as I'm aware neither LLVM/Clang not gcc can't take advantage of OpenCL yet (correct me if I'm wrong here).


All times are GMT -5. The time now is 03:12 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.