Never mind, figured it out, all I needed was to add a line in
src/common/nvidia_gpus.h...

Cheers,
Richard

In message <[email protected]> on Fri, 25 Jan 2013 
12:31:32 +0100 (CET), Richard Levitte <[email protected]> said:

richard> Hi,
richard> 
richard> I seem to hit an issue with OpenCL that...  is a bit of a mystery to
richard> me.  I have enabled use of OpenCL, and made darktable accept my poor
richard> 512MB GPU mem.  Still, it didn't want to run with OpenCL.  A debugging
richard> flag shows a bit more:
richard> 
richard>   : ; darktable -d opencl 
richard>   [opencl_init] trying to load opencl library: '<system default>'
richard>   [opencl_init] opencl library 'libOpenCL' found on your system and 
loaded
richard>   [opencl_init] found 1 platform
richard>   [opencl_init] found 1 device
richard>   [opencl_init] device 0 `GeForce G 103M' has sm_20 support.
richard>   [opencl_init] device 0 `GeForce G 103M' supports image sizes of 4096 
x 16383
richard>   [opencl_init] device 0 `GeForce G 103M' allows GPU memory 
allocations of up to 128MB
richard>   [opencl_init] device 0: GeForce G 103M 
richard>        GLOBAL_MEM_SIZE:          511MB
richard>        MAX_WORK_GROUP_SIZE:      512
richard>        MAX_WORK_ITEM_DIMENSIONS: 3
richard>        MAX_WORK_ITEM_SIZES:      [ 512 512 64 ]
richard>   [opencl_init] compiling program `demosaic_ppg.cl' ..
richard>   [opencl_load_program] loaded cached binary program from file 
`/home/levitte/.cache/darktable/cached_kernels_for_GeForceG103M/demosaic_ppg.cl.bin'
richard>   [opencl_load_program] successfully loaded program from 
`/usr/share/darktable/kernels/demosaic_ppg.cl'
richard>   [opencl_build_program] successfully built program
richard>   [opencl_build_program] BUILD STATUS: 0
richard>   BUILD LOG:
richard>   
richard>   
richard> ... until this:
richard> 
richard>   [opencl_init] compiling program `bilateral.cl' ..
richard>   [opencl_fopen_stat] could not open file 
`/home/levitte/.cache/darktable/cached_kernels_for_GeForceG103M/bilateral.cl.bin'!
richard>   [opencl_load_program] could not load cached binary program, trying 
to compile source
richard>   [opencl_load_program] successfully loaded program from 
`/usr/share/darktable/kernels/bilateral.cl'
richard>   [opencl_build_program] could not build program: -42
richard>   [opencl_build_program] BUILD STATUS: -2
richard>   BUILD LOG:
richard>   ptxas application ptx input, line 295; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 300; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 308; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 315; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 322; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 329; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 336; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 343; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 391; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 396; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 404; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 412; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 419; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 424; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 432; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas application ptx input, line 440; error   : Instruction 
'atom.add.f32' requires .target sm_20 or higher
richard>   ptxas fatal   : Ptx assembly aborted due to errors
richard>   
richard>   [opencl_init] failed to compile program `bilateral.cl'!
richard>   [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
richard>   [opencl_init] initial status of opencl enabled flag is OFF.
richard> 
richard> So ok, bilateral.cl requires sm_20 or higher, and I can understand it
richard> if my card didn't support that.  However, there's this line from the
richard> start of darktable that suggests it should:
richard> 
richard>   [opencl_init] device 0 `GeForce G 103M' has sm_20 support.
richard> 
richard> I'm not sure how to go further with this, and am looking for tips.
richard> 
richard> Cheers,
richard> Richard
richard> 
richard> -- 
richard> Richard Levitte                         [email protected]
richard>                                         http://richard.levitte.org/
richard> 
richard> "Life is a tremendous celebration - and I'm invited!"
richard> -- from a friend's blog, translated from Swedish
richard> 
richard> 
------------------------------------------------------------------------------
richard> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
richard> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
richard> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
richard> MVPs and experts. ON SALE this month only -- learn more at:
richard> http://p.sf.net/sfu/learnnow-d2d
richard> _______________________________________________
richard> Darktable-users mailing list
richard> [email protected]
richard> https://lists.sourceforge.net/lists/listinfo/darktable-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to