X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fusing.xml;h=329c31fffc08945540e3b42b6f7a810b0451b74d;hb=335b9f366ac440259318777c4c07e4fa42fbbec6;hp=024a4e786963db7c0e2e3fef87fa9653dc679ffa;hpb=9d0c8f842e35dde3d570580cf62a32779f66a6de;p=ghc-hetmet.git diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index 024a4e7..329c31f 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -860,6 +860,7 @@ ghc -c Foo.hs -W option Provides the standard warnings plus , + , , , , and @@ -991,6 +992,20 @@ foreign import "&f" f :: FunPtr t + : + + + + Causes a warning to be emitted when a datatype + T is exported + with all constructors, i.e. T(..), but is it + just a type synonym. + Also causes a warning to be emitted when a module is + re-exported, but that module exports nothing. + + + + : @@ -1652,6 +1667,26 @@ f "2" = 2 + + + + + Turns off the float-in transformation. + + + + + + + + + + Turns off the automatic specialisation of overloaded functions. + + + + + @@ -1795,7 +1830,9 @@ f "2" = 2 &phases; - + + &shared_libs; + Using Concurrent Haskell Concurrent Haskellusing @@ -1934,6 +1971,10 @@ f "2" = 2 There is no means (currently) by which this value may vary after the program has started. + + The current value of the option + is available to the Haskell program + via GHC.Conc.numCapabilities. @@ -1943,6 +1984,17 @@ f "2" = 2 + + RTS + option + + Use the OS's affinity facilities to try to pin OS + threads to CPU cores. This is an experimental feature, + and may or may not be useful. Please let us know + whether it helps for you! + + + RTS option @@ -1950,9 +2002,16 @@ f "2" = 2 Disable automatic migration for load balancing. Normally the runtime will automatically try to schedule threads across the available CPUs to make use of idle - CPUs; this option disables that behaviour. It is probably - only of use if you are explicitly scheduling threads onto - CPUs with GHC.Conc.forkOnIO. + CPUs; this option disables that behaviour. Note that + migration only applies to threads; sparks created + by par are load-balanced separately + by work-stealing. + + + This option is probably only of use for concurrent + programs that explicitly schedule threads onto CPUs + with GHC.Conc.forkOnIO. + @@ -1985,19 +2044,20 @@ f "2" = 2 whether your program got faster by using more CPUs or not. If the user time is greater than the elapsed time, then the program used more than one CPU. You should - also run the program without -N for comparison. - - GHC's parallelism support is new and experimental. It may make your - program go faster, or it might slow it down - either way, we'd be - interested to hear from you. - - One significant limitation with the current implementation is that - the garbage collector is still single-threaded, and all execution must - stop when GC takes place. This can be a significant bottleneck in a - parallel program, especially if your program does a lot of GC. If this - happens to you, then try reducing the cost of GC by tweaking the GC - settings (): enlarging the heap or the - allocation area size is a good start. + also run the program without -N for + comparison. + + The output of +RTS -s tells you how + many “sparks” were created and executed during the + run of the program (see ), which + will give you an idea how well your par + annotations are working. + + GHC's parallelism support has improved in 6.12.1 as a + result of much experimentation and tuning in the runtime + system. We'd still be interested to hear how well it works + for you, and we're also interested in collecting parallel + programs to add to our benchmarking suite. @@ -2014,9 +2074,27 @@ f "2" = 2 + : + + + (x86 only, added in GHC 6.14.1) Use the SSE2 registers and + instruction set to implement floating point operations + when using the native code generator. This gives a + substantial performance improvement for floating point, + but the resulting compiled code will only run on + processors that support SSE2 (Intel Pentium 4 and later, + or AMD Athlon 64 and later). + + + SSE2 is unconditionally used on x86-64 platforms. + + + + + : - (iX86 machines)-monly-N-regs + (x86 only)-monly-N-regs option (iX86 only) GHC tries to “steal” four registers from GCC, for performance reasons; it almost always works. However, when GCC is