Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:30:28+00:00 2026-05-27T23:30:28+00:00

I really like Repa ‘s interface, even regardless of its concurrency capabilities. And I

  • 0

I really like Repa‘s interface, even regardless of its concurrency capabilities. And I actually need repa’s arrays to be sequential, since my arrays are relatively small ones and parallelization on them is useless, even harmful.

However I do use parallelization in my program with parallel-io, so I compile it -threaded and run with +RTS -Nx. And this enables parallelization for repa. Is there a way to turn off repa’s concurrency features?

Hm, while writing this I understood that it is unlikely I will need anything other then DIM1, so maybe I should switch to Vector. But nevertheless the answer to the question will be useful.

The warning message I get with parallel run is

Data.Array.Repa: Performing nested parallel computation sequentially.
  You've probably called the 'force' function while another instance was
  already running. This can happen if the second version was suspended due
  to lazy evaluation. Use 'deepSeqArray' to ensure that each array is fully
  evaluated before you 'force' the next one.

I actually have no force in my code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:30:28+00:00Added an answer on May 27, 2026 at 11:30 pm

    Use the development version of Repa 3 from http://code.ouroborus.net/repa/repa-head. It has a version of “force” (how called computeS) that will evaluate the array sequentially.

    Repa does not automatically sequentialise operations on small arrays. With (map f xs) the runtime depends as much on what ‘f’ is doing as the size of ‘xs’. Repa does not attempt to work out what the ‘f’ is doing (that would be hard), so it doesn’t know how expensive the computation will be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really like the MVC way and have actually enjoyed learning ASP.NET MVC (I
I really like sbt and its extendibility. I'd like to use it as the
I really like how in Rails 3 you can ask a scope for its
I really like the interface for Yahoo Pipes ( http://pipes.yahoo.com/pipes/ ) and would like
I really like DevX components, but they are pretty expensive, maybe anyone knows free
I really like the fact that Microsoft has taken a commitment to bring MVC
I really like Xml for saving data, but when does sqlite/database become the better
I really like the way gmail has the archive system implemented. I can archive
I really like how Consolas looks with ClearType enabled but unfortunately it makes everything
I really like the format and type of links from RubyFlow for Ruby related

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.