bugGNU Octave - Bugs: bug #48313, gpuDeviceCount

 
 

bug #48313: gpuDeviceCount

Submitter:  Ceral Paquet <octavebugs>
Submitted:  Sat 25 Jun 2016 09:22:55 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 27 Jun 2016 05:21:23 PM UTC, comment #3: 

I agree with Mike; I didn't know gpuDeviceCount wasn't in core Matlab.

Ceral,
just copy my function suggestion somewhere in your Octave search path and you're set. Mike's suggestion is better but then you'll have to adapt your Matlab project yourself.

Philip Nienhuis <philipnienhuis>
Group Member
Sun 26 Jun 2016 09:08:26 PM UTC, comment #2: 

I'm closing this as won't fix. Someone can reopen if they want to counter my opinion, but I don't think this is appropriate to include in Octave.

First of all, the gpuDeviceCount function is part of Matlab's parallel computing toolbox, not part of Matlab core, so by that criterion alone it should not be included in Octave core.

If you want to try to convince Olaf that it should be added to the Forge parallel package, feel free to do so.

Next, adding that function implies that we should add related functions like gpuDevice, gpuArray, etc, when none of these are likely to be functional at all.

Lastly, I don't see a point in adding placeholder functions that essentially act as a no-op just to run some other Matlab code that calls this function. It can easily be added as a local function file in the project you are working with, or it can be made conditional by checking exist('gpuDeviceCount').

Mike Miller <mtmiller>
Group Member
Sat 25 Jun 2016 10:17:29 AM UTC, comment #1: 

Ceral,

It is very easy to write a placeholder .m file along the lines of:



function retval = gpuDeviceCount ()

## FIXME Octave only supports GPU for graphics, not computations
retval = 0;

endfunction


If you produce an .m file (e.g., using Octave's GUI editor) and polish it to Octave coding standards I think it can readily be absorbed somewhere in core.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 25 Jun 2016 09:22:55 AM UTC, original submission:  

Please can you add a placeholder for Matlab's gpuDeviceCount function. All it just has to return a zero.

```
gpuDeviceCount

Number of GPU devices present
Syntax

n = gpuDeviceCount
Description

n = gpuDeviceCount returns the number of GPU devices present in your computer.
```

Ceral Paquet <octavebugs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by octavebugs (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-26 mtmiller StatusNone Wont Fix
        Open/ClosedOpen Closed
    2016-06-25 philipnienhuis Item GroupNone Matlab Compatibility

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code