Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-04-09, 04:46 PM   #1
Sonicadvance1
Registered User
 
Join Date: Nov 2009
Posts: 2
Default 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.
Sonicadvance1 is offline   Reply With Quote
Old 11-05-09, 06:17 AM   #2
jma
Registered User
 
Join Date: Oct 2009
Location: Stockholm
Posts: 33
Default Re: OpenCL slow compiling

The compiler runs on the Intel processor, not on the video card ...
jma is offline   Reply With Quote
Old 11-05-09, 10:49 AM   #3
Deanjo
Registered User
 
Join Date: Aug 2004
Posts: 301
Default Re: OpenCL slow compiling

Quote:
Originally Posted by Sonicadvance1 View Post
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?
Deanjo is offline   Reply With Quote
Old 11-05-09, 03:53 PM   #4
Sonicadvance1
Registered User
 
Join Date: Nov 2009
Posts: 2
Default 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?
Sonicadvance1 is offline   Reply With Quote
Old 11-06-09, 08:40 AM   #5
queen6
Registered User
 
Join Date: Dec 2007
Posts: 64
Default 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).
queen6 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:35 AM.


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