boostorg / boostorg/compute

valarray context must be system::default_context()

Open
#707 0 comments 0 reactions 1 assignee Claimed by @jszuppe View on GitHub
bug task
Dominant language
C++
Stars
1.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

`valarray` needs some fixing. Currently, it's possible to create a `valarray` object with buffer in some custom context that is not the context of `system::default_queue()` which is used in every method... And that breaks the code.

Since `valarray` is not a popular feature, I think we should make it work only in `system::default_context()`. Otherwise, we have two other options:
1. force (almost) every operator and method to create a queue based on context of underlying buffer (`m_buffer`) and work synchronously,
2. keep `command_queue` object in `valarray`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.