Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#44 add mapflex/mapfraw support for win32

None
closed
None
7
2013-09-15
2011-04-26
Chris Marshall
No

As of PDL-2.4.9, mapfraw and mapflex are not available for win32 platforms
(except for cygwin) because MS does not have POSIX mmap/munmap support.
Given that we currently make fairly simple use of mmap/munmap, it should be
possible to write wrapper functions for win32 to provide the needed functions.

See the example code and link by David Mertens in PDL/Basic/Core/Core.xs.PL
between the =begin windows_mmap and =end windows_mmap markers for
details and a rough idea-type implementation.

Discussion

  • Chris Marshall
    Chris Marshall
    2012-04-03

    A preliminary implementation of mapflex and mapfraw using
    sys_map from the File::Map module is in git for testing. There
    is an issue with a bug in sys_map that needs to be fixed before
    a developers release could be done.

     
  • Chris Marshall
    Chris Marshall
    2012-04-03

    • assigned_to: nobody --> marshallch
     
  • Chris Marshall
    Chris Marshall
    2012-05-19

    Preliminary mapfraw and mapflex support for all platforms using File::Map as the basis of the implementation is available in pdl git and the coming PDL-2.4.11 release. The capability is believed to be functional but all details have not been fully completed or verified. If you are using the original mapfraw/mapflex POSIX functions in your code, please report any issues or successes with the new version. For production use, a manual build of PDL-2.4.11 without File::Map installed will use the legacy codebase. This will be deprecated and removed once the new functionality is fully vetted.

     
  • Chris Marshall
    Chris Marshall
    2013-01-02

    • priority: 5 --> 7
     
  • Chris Marshall
    Chris Marshall
    2013-01-02

    Need to verify that the current code works on all platforms (not just windows) and for 32bit and 64bit perl flavors.

     
  • Chris Marshall
    Chris Marshall
    2013-09-15

    • status: open --> closed
    • Group: -->
     
  • Chris Marshall
    Chris Marshall
    2013-09-15

    PDL-2.006_07 passes all subtests in t/fastraw.t and t/flexraw.t,
    including the ones for mapfraw and mapflex.