bugGNU Octave - Bugs: bug #48313, gpuDeviceCount

 
 

bug #48313: gpuDeviceCount

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sat 25 Jun 2016 09:22:55 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Administrator
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:

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 26 Jun 2016 09:08:26 PM UTCmtmillerStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Sat 25 Jun 2016 09:18:04 PM UTCphilipnienhuisItem GroupNone=>Matlab Compatibility

    Back to the top


    Powered by Savane 3.1-cleanup1