AccelerateHS / AccelerateHS/accelerate-llvm

Concurrent tests of native backend fail with: lost signal due to full pipe: 11

Đang mở
#53 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Haskell
Star
171
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I am submitting a...
- [x] bug report
- [ ] feature request
- [ ] support request => you might also like to ask your question on the [mailing list](mailto:accelerate-haskell@googlegroups.com) or [gitter chat](https://gitter.im/AccelerateHS/Lobby).

## Description

The tests of the native backend fail on multicore architectures. The problem appears to occur when multiple test cases are ran in parallel. If you let the test suite execute the tests sequentially, they do pass. Note that the different tests are then sequential, but each test case may be executed on multiple threads.

I also tried to revert the recent changes

## Expected behaviour

Tests pass. When multiple computations are given to accelerate at a time, it will let the set of worker threads work on both computations at the same time. I think that this cooperation has some bug.

## Current behaviour

The threads fail by printing the following the console many times:
```
nofib-llvm-native: lost signal due to full pipe: 11
```
I think some test case fails, which causes that the process becomes in some invalid state, causing that the later tests will also fail with this error.

It may also happen the test suite stops at some test. It looks like the same error, but the test case will then not run the other tests any more.
```
DIM3
sum: nofib-llvm-native: SignalException 11
```

I did verify that the recent change in the scheduler did not influence this. Also, the refactoring of tuples seems unrelated.

## Possible solution (optional)

## Steps to reproduce (for bugs)

1. Run the tests on a machine with enough cores

## Your environment

I ran the tests on our shared machine.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.