Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using ndarray indexing with only 1 element #1

Closed
Ektorus opened this issue May 27, 2015 · 1 comment
Closed

Error when using ndarray indexing with only 1 element #1

Ektorus opened this issue May 27, 2015 · 1 comment

Comments

@Ektorus
Copy link
Contributor

Ektorus commented May 27, 2015

The following code:

import bohrium as bh
test_bh = bh.arange(1)
test_bh[test_bh >= 1]

Gives the following error:
RuntimeWarning: Encountering an operation not supported by Bohrium. It will be handled by the original NumPy.
test_bh[test_bh >= 1]
: In function ‘KRN_b51258e4_d32eb96c_655c047f_37c31efe’:
:82:12: error: ‘eidx’ undeclared (first use in this function)
:82:12: note: each undeclared identifier is reported only once for each function it appears in
pclose(): Success
pclose() failed.
Engine::execute(...) == Compilation failed.
terminate called after throwing an instance of 'std::runtime_error'
what(): Err: Runtime::execute() child->execute() failed: BH_ERROR

@Ektorus
Copy link
Contributor Author

Ektorus commented Jun 10, 2015

In version a8520fe of Bohrium I instead get the following error:
terminate called after throwing an instance of 'std::runtime_error'
what(): Error: Invalid range [start=end].
Aborted

@Ektorus Ektorus changed the title Segmentation fault with ndarray indexing with only 1 element Error when using ndarray indexing with only 1 element Jun 10, 2015
@madsbk madsbk closed this as completed in 20aa840 Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant