Hello,

GHC 7.2.x or higher provides getNumCapabilities function, and numCapabilities
is implemented by unsafePerformIO + getNumCapabilities.

  
http://www.haskell.org/ghc/docs/7.2.2/html/libraries/base-4.4.1.0/GHC-Conc.html#v:numCapabilities
  
http://www.haskell.org/ghc/docs/7.2.2/html/libraries/base-4.4.1.0/src/GHC-Conc-Sync.html#numCapabilities

I think to use getNumCapabilities is better than to use numCapabilities in DPH 
now.

Best Regards,

--
shelarcy <shelarcy    hotmail.co.jp>
http://page.freett.com/shelarcy/

Attachment: 0001-dph-prim-par-use-getNumCapabilities-instead-of-numCa.patch
Description: Binary data

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to