[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
CULA • View topic - cula 2.1 with matlab 2010a

cula 2.1 with matlab 2010a

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

cula 2.1 with matlab 2010a

Postby asempey » Wed Oct 20, 2010 7:53 am

Hi admin,

I met a problem of cula with matlab 2010b, according to the blog of interface with matlab
part 1 2 &3, i creat 2 files 1 is culasvd.cpp. the other is culamex.hpp, i succeed the
compilation, so far so good, the mexfile got running correctly, but when i run it again, i got a error of cula runtime. The error is like "culaSelectDevice: Runtime error (36)"

" culaStatus status = culaSelectDevice(2);
checkStatus(status,"culaSelectDevice");
status = culaInitialize();
checkStatus(status, "culaInitialize");"

i have 1 GTX295 and 1 Tesla C1060 in the same PC, so the device 2 (Tesla C1060) is firstly selected

thx for ur replay in advance
asempey
 
Posts: 11
Joined: Tue Sep 21, 2010 1:52 am

Re: cula 2.1 with matlab 2010a

Postby john » Wed Oct 20, 2010 10:24 am

culaSelectDevice is basically a passthrough for cudaSelectDevice (for convenience). Error 36 corresponds to the same CUDA error number, which is cudaErrorSetOnActiveProcess - basically that your device has already been set, whether manually or implicitly.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: cula 2.1 with matlab 2010a

Postby asempey » Thu Oct 21, 2010 2:09 am

asempey
 
Posts: 11
Joined: Tue Sep 21, 2010 1:52 am

Re: cula 2.1 with matlab 2010a

Postby kyle » Thu Oct 21, 2010 6:06 am

You could write a very short mex file to be called once at the start of your MATLAB program. We'll need to analyze the ramifications, but we could possibly build some intelligence into culaSetDevice() so that it will only ever call cudaSetDevice() once therefor avoiding the "device set on active process" CUDA error.

(Also, the private support forum does not include Academic discounted users)
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm

Re: cula 2.1 with matlab 2010a

Postby john » Thu Oct 21, 2010 7:22 am

In CUDA, you cannot unset the device once it is set - that's a part of the programming model. A given thread is permanently bound to a given GPU.

For your script, it is safe to omit the selectDevice call. culaInitialize will bind to a GPU if none has been selected prior to culaInitialize. If you need to bind to a particular GPU, you can make a new mex file that you only run once prior to the mex file that is run repeatedly.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: cula 2.1 with matlab 2010a

Postby asempey » Fri Oct 22, 2010 6:51 am

asempey
 
Posts: 11
Joined: Tue Sep 21, 2010 1:52 am


Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron