Search Comments and Ratings

go

   
Date File Comment by Comment Rating
07 Oct 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs, for the new graphics system introduced in R2014b Author: David Sampson

David Sampson

Ben Tordoff

Ben Tordoff

Hi Ian, thanks for spotting that - I've fixed it for the next update. The doc is still a bit in-progress but if you spot other errors let us know (you can contact us directly if you don't want to post everything you find publicly).

Comment only
17 Jun 2014 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Just a final clarification: do you now have both 6-pin and 8-pin connectors connected? You definitely need both to get the full 250W that the Titan can consume at peak load.

Ben

Comment only
17 Jun 2014 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Cedric, could you send us the full log entry? If it's too big to post here, send it direct using the author link above.

At a guess it sounds like you exceeded some power setting whilst running computations - GPU bench is deliberately computation (and therefore power) heavy. Do you definitely have both power connectors connected? Your PSU sounds big enough, so it's a bit odd.

Ben

Comment only
06 Feb 2014 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Thanks Matthew, you're right - I'll get that fixed.

Ideally timing should be measured using timeit (for host) or gputimeit (for gpu), but if I started using those then this would stop working on R2013a and earlier. I'll post an update shortly.

Comment only
04 Feb 2014 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Emmanuel, when you run "install" (either from inside MATLAB or outside) it tries to update MATLAB's path. That requires write-permission to the location where MATLAB is installed. If you don't have permissions to update MATLAB's path, the best thing to do is just run "install" from within MATLAB before using the toolbox. If you want the toolbox to always be available, add this call to your personal startup.m.

I know this is a bit of a pain, but I don't think there's any way around it.

Ben

Comment only
04 Feb 2014 SplashScreen Show a splash-screen during MATLAB application start-up. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Right now there isn't a way to set the position programmatically. I guess I could make it settable. However, it should be picking the first monitor and centering the window there. Could you post the output of get(0,'MonitorPositions')?

Ben

Comment only
10 Jan 2014 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Rodrigo,

gpuBench does not show any "speed-up" comparisons, it shows absolute performance in floating-point operations per second (FLOPS). The results for you CPU are the absolute performance results for your CPU in isolation, not as a comparison. Likewise for the other results. The pre-stored "host" results are the absolute performance of the machine used to capture the results.

All of the plots include both GPU and Host PC results, so the text should probably say "These results show the performance of the GPU or host PC when calculating...". I'll fix that.

Thanks
Ben

Comment only
06 Jan 2014 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Rodrigo,

the "host PC" data doesn't use the GPU at all, it measures your PC's main CPU(s). As such, you are probably just seeing that we used a pretty high-spec PC for hosting the various GPUs we tested (to make for a fairer GPU vs CPU comparison).

Ben

Comment only
13 Nov 2013 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Mike, I have no problem with bug reports appearing here as it means others can see them too. I was able to reproduce the problem using a fresh MATLAB install and I have a fix in the works.

As a work-around, you should be able to run gpuBench at the commandline (just type "gpuBench") - it is just the app launcher that is broken.

Comment only
12 Nov 2013 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Mike. I've just tried downloading and installing the app on both R2013b and R2013a and didn't hit any problems. Could you describe exactly what steps you performed so that I can try and diagnose the problem?

Comment only
24 Oct 2013 multiWaitbar( label, varargin ) A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

I've submitted an update that fixes the interp issue, centres the window and adds a 'relabel' command. It should appear here within the next few days.

Ben

Comment only
02 Oct 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Those hitting problems with appdata, please update to the latest version. As per the release notes, this should already be fixed. If you find cases where it still doesn't work, let me know.

Ben

Comment only
24 Sep 2013 Carving a Dinosaur This is a demo of reconstructing a 3D shape from multiple images using space-carving. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

im(:,:,1) is the red channel of the RGB image, im(:,:,3) is the blue. S is therefore true (1) for pixels whose color contains more red than blue and false (0) otherwise.

Nearly every color contains some red and some blue and this is just a quick and dirty way to find those that are closer to red than blue.

Comment only
13 Sep 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Thanks Igor, I've fixed that for the next version.

Comment only
30 Jul 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Sven. I am impressed at your attention to detail!

We used to allow "merging" of grid elements in a previous iteration of this tool. However the API for it was terrible. We have never been back to try and come up with a good API, but maybe we should?

Ben

Comment only
09 May 2013 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Andrei,

yes, you can do this with the tool as it is, although it isn't that easy. I will look at adding a more convenient way later.

1. Remove the data-file for the release you are using (so data/R2013a.mat if using the latest release).
2. Capture and store the results from each machine/GPU you are interested in:

>> data = gpuBench();
>> gpubench.saveResults(data);

This will build up a new data-file specific to your machines and the MATLAB release being used. Let me know if this doesn't work for you or you have suggestions as to how to make this more convenient.

Cheers
Ben

Comment only
29 Apr 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Yannick. This is easy enough to do. I'll make sure it's in the next update. If you would like to test it before then, email me using the author link above and I'll send you a patch.

Comment only
26 Apr 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Yannick, thanks for that fix – I'll make sure it's updated in the next version.

There isn't a definitive list of the default properties, I'm afraid. PanelBox will take notice of the default title colour, but that's about all.

Which border was it you wanted to remove, the one around the title, the one around the contents, or both?

Comment only
19 Mar 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Dani, this is related to the legend problems we have already fixed. I have a fix for this too, but it isn't quite ready for release yet. Watch this space...

Comment only
07 Mar 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Thanks Sven, I'll get onto that and submit a fix.

Comment only
07 Mar 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Evgeny, my recommendation is to use AppData, not UserData. It is both more flexible and I have found it to be substantially faster. Instead of

set( obj, 'UserData', data )

use

setappdata( obj, 'MyData', data )

Since each piece of app data is named you can have multiple sets of user-stored data in each object. This is a much better system, and works nicely with our uiextras layouts.

Comment only
06 Mar 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Evgeny, I can see your use-case, but I'm not 100% convinced that setting a widget to be invisible is that same as saying it shouldn't take any space. I have GUIs where I need a widget to appear/disappear without affecting the layout of the rest of the GUI.

I suspect you can achieve what you want by simply setting the size of the element to zero. For example, given an HBox with three children I can make the middle one disappear by doing:

set(box, 'Sizes', [-1 0 -1])

and make it re-appear using:

set(box, 'Sizes', [-1 -1 -1])

No need to fiddle with the visibility - a zero-sized widget is not visible anyway!

Comment only
06 Mar 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

I've been asked this and similar questions a few times, so I thought I would share my answer with everyone:

"Is it possible to adjust the position of an axis inserted into an HBox or does it have to fill the entire box?"

The answer, as always in computing, is an extra layer of indirection! If you put the axes in a uicontainer or uipanel and put that inside the layout then you have full control of its position within the container whilst still having the overall position managed by the layout. For example:

fig = figure();

box = uiextras.HBox('Parent', fig);

% Create some axes in a container with lots of padding
c1 = uicontainer('Parent', box);
ax1 = axes('Parent', c1, 'OuterPosition', [0.1 0.1 0.8 0.8]);

% Create some axes in a container with no padding
c2 = uicontainer('Parent', box);
ax2 = axes('Parent', c2, 'OuterPosition', [0 0 1 1]);

Comment only
27 Feb 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Graham, a layout panel only shows a single child at a time. When you add the second axes it replaces the first. As with most computing problems, this can be solved with an extra layer of indirection. Simply put your combined axes into their own container and let that manage the position:

f1 = figure('Name', 'Fig1');
p1 = uiextras.Panel('Parent', f1);
c1 = uicontainer('Parent', p1);
ax1 = axes('Parent', c1);
ax2 = axes('Parent', c1, 'YAxisLocation', 'right');

This is the way to handle any custom widget made up from mutliple axes, uicontrols etc. - just put it in its own container.

Comment only
22 Feb 2013 multiWaitbar( label, varargin ) A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Good spot Dan, I'll add that in the next update - thanks!

Comment only
19 Feb 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

I have submitted an update that should fix the legend problems. This should appear here sometime in the next few days, once the upload is approved. When it does, can you check that your problems are fixed?

Comment only
18 Feb 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Sven, thanks for putting in the effort to nail this down so succinctly. I now have a fix for this ready to upload. You should see it appear here in the next few days.

Comment only
13 Feb 2013 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Sven, thanks for the heads-up! The release we uploaded in December should have fixed this (we were making an implicit conversion to double that needed to be explicit). If it hasn't fixed it for you can you send an example, as all the examples I have now work with the pre-release.

Thanks.
Ben

Comment only
13 Feb 2013 SplashScreen Show a splash-screen during MATLAB application start-up. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

OK, that's a little surprising. Maybe try putting a "drawnow" after opening it?

You are right that nothing will be shown until the MCR has been loaded/initialized. The only way around that is to write a wrapper around your executable that shows the splashscreen before launching the MATLAB deployed app. Obviously that would have to be written in something other than MATLAB (which requires the MCR!).

Comment only
08 Feb 2013 rotateXLabels( ax, angle, varargin ) Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Fernando & Martin, could one of you post (or email me) an example? When I try the obvious:

imagesc
rotateXLabels(gca, 45)

it all looks fine. Also, which MATLAB version, just in case it matters?

Comment only
08 Feb 2013 rotateXLabels( ax, angle, varargin ) Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Thanks Matt, that's an interesting bug you've found.

I think we can do something slightly better and remove everything to do with rotated labels when the axes are cleared. I'll post an update that does this for you to try. Hopefully it won't break any existing functionality.

Comment only
07 Feb 2013 SplashScreen Show a splash-screen during MATLAB application start-up. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Canoe Commuter (great name, by the way - beats using the car!), the simple way to make the splashscreen stay up for a second or two is to use "pause(1)" (for 1 second) or similar. However this will block, not allowing anything else to happen, which may get annoying.

A slightly more sophisticated approach is to ensure it stays up for N seconds. In psuedo-code this might look something like:

showSplashForSecs = 2;

showSplashscreen;
timer = tic;
initializeApplication;
elapsedTime = toc(timer);
if elapsedTime < showSplashForSecs
pause(showSplashForSecs - elapsedTime);
end
deleteSplashscreen;

This should ensure that the splashscreen is always on for at least two seconds even if your application initializes really quickly. It will still block interaction whilst paused though.

Comment only
14 Jan 2013 Carving a Dinosaur This is a demo of reconstructing a 3D shape from multiple images using space-carving. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

I'm afraid I cannot upload the data since it doesn't belong to me. As mentioned in the description you can download it from the Visual Geometry Group at the University of Oxford.

Comment only
08 Jan 2013 multiWaitbar( label, varargin ) A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Jerome, that's a good suggestion. Ideally it should update the labels whenever they change (which may be more often than the bar updating) but it seems that the computation of the remaining time is itself worth avoiding. Avoiding updating the labels when the bar hasn't moved is a reasonable compromise. I'll add it.

Comment only
11 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Jingjing, that explains it. The return from FINDOBJ is always a MATLAB graphics primitive. Most of these layouts are built using several primitives. Right now there is no way for me to make them primitives themselves.

One suggestion: instead of using guidata, you might find that using "setappdata"/"getappdata" on the figure is both more flexible and faster. That's what I tend to use.

Ben

Comment only
10 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Jingjing, glad you're finding this useful.

bp = uiextras.BoxPanel();
bp.Title = 'New Title';

is the right way to do it and seems to work fine for me. Could you be a little more specific about what hObj is or post an example? Is hObj definitely the BoxPanel?

Comment only
06 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Eff, thanks for uploading the picture - I can see the issue. However I still can't reproduce it on R2011b using either Linux or Windows. I have managed to hit another problem which has an easy work-around. You could try this, but it probably won't work. It would be good if we could work out how to reproduce the problem on other systems.

The workaround for this other problem (axes not appearing at all) is to put a "drawnow" after adding each axes. It seems the axes positions are not correct until they have been drawn and this forces an initial draw. An alternative that also works is a resize after drawing, but I doubt this will help your case.

If you could find an example that works on Windows (7) or Mac OS/X (Lion), that would be good as there are far fewer variants of Windows and Mac OS/X than there are of Linux!

Cheers
Ben

Comment only
05 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Alain, the easiest way to customize any of the layouts is to take a copy of the corresponding class, rename it and then start adding in the bits you want. Hopefully most of the code is commented in the places where it isn't obvious.

I'll have a think about how best to deal with too many tab labels. It would be good to deal with this in a more elegant way in the toolbox. If you manage to come up with something good before I do, please share it!

Cheers
Ben

Comment only
05 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Eff,

I've just tried your example and didn't see anything weird happening. Probably that means I'm trying a different platform/version combination than you are. What platform are you running on (Windows, Mac or Linux)? Also, which MATLAB version? If I can reproduce the problem I can probably tell you what's wrong and the most robust way to work-around it (or even fix it).

Ben

Comment only
05 Jul 2012 Carving a Dinosaur This is a demo of reconstructing a 3D shape from multiple images using space-carving. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

I believe you are correct, P{1,1} relates to image 1, however it's been a long time since I've worked on this. If you type

>> edit spacecarving.loadcameradata

you can see how the camera data is read and decomposed and which images are loaded where.

Cheers.
Ben

Comment only
02 Jul 2012 Carving a Dinosaur This is a demo of reconstructing a 3D shape from multiple images using space-carving. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Marie, the matrices are "projection matrices", containing both the internal (K) and external (R, t) camera parameters. These are roughly P = K*[R t] where K is the 3x3 matrix of internal (aka intrinsic) parameters, R is a 3x3 rotation matrix giving the camera orientation and t a 3x1 translation vector. Hence the output, P, is 3x4.

However, these are estimated matrices and will contain noise. In order to draw the scenes I do an approximate decomposition back into K, R and t, but I make no claims that I'm doing it the most accurate way!

Cheers
Ben

Comment only
11 Jun 2012 rotateXLabels( ax, angle, varargin ) Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Vaibhav, any chance you could post a version of the code that doesn't require a data-file? You can use RAND etc to generate some fake data. The important thing is that the range of the data (both in x and y) is similar to the data that you are having trouble with.

Comment only
07 Jun 2012 multiWaitbar( label, varargin ) A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Paul, this is going to take a bit of explaining, but to cut to the chase, try this:

function testme
multiWaitbar('CloseAll');
multiWaitbar('One', 0, 'CanCancel', 'on', 'CancelFcn', @callback );
multiWaitbar('Two', 0, 'CanCancel', 'on', 'CancelFcn', @callback );

drawnow()
cleanupFigObj = onCleanup(@() multiWaitbar('CloseAll'));
pause
end

function callback(a,~)
disp( ['Cancel ',a] )
end

The main problem you were hitting is that the anonymous functions you use in the callbacks (i.e. the @(a,b)) cause the "cleanup" object to be held in-scope (i.e. it never gets deleted and therefore never "cleans-up"). If you use internal or external functions for your callbacks rather than nested or anonymous ones (i.e. functions defined outside of the function you're working in) then this doesn't happen.

That's probably clear as mud, but try the code and let me know. Hopefully this restriction won't be too onerous.

Cheers. Ben

Comment only
24 Apr 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Max, can you try setting it using "dot" notation:

GUI_data.main_Vbox.Sizes = [...]

A few people in the comments above have noted some odd behaviour when you put layouts inside a struct. It seems that they are then not recognized as proper objects. An alternative is something like:

tmp = GUI_data.main_Vbox;
set(tmp, 'Sizes', [...]);

Let me know if either of these options help.

Ben

Comment only
14 Mar 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Martyn, where does this warning come from - is it mcc? The toolbox doesn't contain a Tabpanel.p, so presumably this is a file being generated during compilation from TabPanel.m? What release are you using so that I can try and reproduce the same?

If you have a short example that shows this, feel free to email it to me using my author page (click my name next to this post).

Cheers. Ben

Comment only
05 Mar 2012 Carving a Dinosaur This is a demo of reconstructing a 3D shape from multiple images using space-carving. Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Habibullah, are you by any chance using a version of MATLAB older than R2009a (which is when the '~' syntax was introduced)?

If so, you may still be able to get it to work by replacing the '~' with a real variable name, but bear in mind this hasn't been developed or tested on releases older than R2009b.

Cheers. Ben

Comment only
27 Feb 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Dane,

I'm glad this has helped you in your work even with the problems. I have been looking into both the disappearing axes problem and ways to speed-up initialization, but right now don't have any good solutions that don't also break something else. Hopefully I will find a way to improve these soon, and will be able to post an update.

Ben

Comment only
21 Feb 2012 rotateXLabels( ax, angle, varargin ) Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

OK, I've submitted an update that will hopefully fix the printing issues. Please keep a backup of the old version in case this change breaks something else (it passes all my tests, but they probably don't cover all uses). The update should appear here in the next few days. When it does, let me know if it helped.

Cheers.
Ben

Comment only
21 Feb 2012 rotateXLabels( ax, angle, varargin ) Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc Author: Ben Tordoff

Ben Tordoff

Ben Tordoff

Ben Tordoff

Hi Johan, I can see the problem. I am using "normalized" coordinates for the text used as the labels. It seems that with the units set to normalized they don't print, but if I set them to something else they do. I have no idea why this would be.

I will see if I can re-arrange the code to use something other than normalized units without breaking something else (zooming, panning, titles, etc).

:-(

Ben

Comment only
21 Feb 2012 GPUBench Compare GPUs using standard numerical benchmarks in MATLAB. Author: Parallel Computing Team

Parallel Computing Team

Ben Tordoff

Ben Tordoff

Hi Tristan,

GPUBench only benchmarks one GPU at a time. Since it just uses the current device, you can use "gpuDevice(n)" to select the nth GPU before calling it. However, NVIDIA's drivers normally default to the most powerful card first, so if you're only getting results for your slowest card that indicates a wider problem. Can you try doing:

>> gpuDeviceCount()

to make sure all four devices are found? You can then try

>> for ii=1:gpuDeviceCount(), gpuDevice(ii), end

to print out the details of all the cards found. You need to make sure all of them have the "DeviceSupported" flag set to 1.

I've never seen the particular error you report, and looking on NVIDIA's forums they say it is most likely caused by a hardware problem and once you hit it you have to reboot to fully flush memory:

http://forums.nvidia.com/index.php?showtopic=204333

That doesn't sound good, I'm afraid!
Let me know how you get on.

Ben

Comment only

Contact us