Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Revert "wip-parallel-experiment unconditionally set setNumCapabilitie…
Browse files Browse the repository at this point in the history
…s to 8"

This reverts commit 80eef51.
  • Loading branch information
gkaracha committed May 26, 2020
1 parent 4fdd288 commit abde3c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions asterius/app/ahc-ld.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ main = do
rsp <- readFile rsp_path
let rsp_args = map read $ lines rsp
task <- parseLinkTask rsp_args
setNumCapabilities 8
-- when (threadPoolSize task > 1) $ setNumCapabilities (threadPoolSize task)
when (threadPoolSize task > 1) $ setNumCapabilities (threadPoolSize task)
ignore <- isJust <$> getEnv "ASTERIUS_AHC_LD_IGNORE"
if ignore then callProcess "touch" [linkOutput task] else linkExe task
3 changes: 1 addition & 2 deletions asterius/app/ahc-link.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import Control.Monad
main :: IO ()
main = do
task <- getTask
setNumCapabilities 8 -- (threadPoolSize task)
-- when (threadPoolSize task > 1) $ setNumCapabilities (threadPoolSize task)
when (threadPoolSize task > 1) $ setNumCapabilities (threadPoolSize task)
ahcLinkMain task

0 comments on commit abde3c1

Please sign in to comment.