bugGNU Parallel - Bugs: bug #38272, NetBSD CPU and core information...

 
 

bug #38272: NetBSD CPU and core information support

Submitter:  Ilmari Vacklin <wolverian>
Submitted:  Wed 06 Feb 2013 06:52:01 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Feb 2013 10:30:03 PM UTC, comment #3: 

Fixed in [7cf332ecc0]

Ole Tange <tange>
Group administrator
Thu 07 Feb 2013 07:40:53 PM UTC, comment #2: 

Thanks, that does the trick! Thanks for the fast response.

As for testing NetBSD, unfortunately NetBSD doesn't provide an official VirtualBox image.

If an unofficial image is okay with you, I've uploaded an appliance you should be able to import (File > Import) into VirtualBox:

URL:
http://www.cs.helsinki.fi/u/ivacklin/netbsd-6.0.1.ova

SHA256 sum:
d8ba5ad2412872109e1492f6799feccb695d7a39cadbcb580a7e576f9961d727  netbsd-6.0.1.ova

It is a basic installation of NetBSD 6.0.1 i386. You can log in with user 'test' and password 'test'. That user can use `sudo`. Root's password is also 'test'. You can log in via the console or SSH to the host-only interface (you can see its IP with `ifconfig`).

The method NetBSD users usually use to install GNU Parallel is from pkgsrc with `pkgin install parallel`.

Alternatively, you can install NetBSD into VirtualBox yourself with this installation image:

ftp://ftp.netbsd.org//pub/NetBSD/iso/6.0.1/NetBSD-6.0.1-i386.iso

Thanks again, and please feel free to contact me if you have further questions.

Ilmari Vacklin <wolverian>
Thu 07 Feb 2013 10:12:20 AM UTC, comment #1: 

I adapted it slightly. Can you test it out?

Also can you point me to a VirtualBox image of NetBSD so that I can test GNU Parallel on NetBSD before each release?

Ole Tange <tange>
Group administrator
Wed 06 Feb 2013 06:52:01 PM UTC, original submission:  

Running parallel on NetBSD emits a Perl warning at the moment:


lilo$ (echo 42; echo quux; echo 22) | parallel echo '{}'
Argument "=" isn't numeric in multiplication (*) at /home/iv/bin/parallel line 2765.
42
quux
22


This is because there is no no_of_cpus_netbsd or no_of_cores_netbsd functions.

I've implemented both (and added calls to them to the appropriate places). See <https://github.com/wolverian/parallel>, commit 15ac5db76e3172f97f3eb43611f71044820e97fa.

Git URL: git@github.com:wolverian/parallel.git

Commit web diff: https://github.com/wolverian/parallel/commit/15ac5db76e3172f97f3eb43611f71044820e97fa

After that commit, this is the output:


lilo$ (echo 42; echo quux; echo 22) | perl src/parallel echo '{}'
42
quux
22


Do you think this is something you could merge in? I'd be glad to rework the patch if required.

Ilmari Vacklin <wolverian>

 

(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 tange (Posted a comment)
  • -email is unavailable- added by wolverian (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 logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-02-14 tange StatusNone Fixed
        Assigned toNone tange
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code