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

'user' of isl Id object #3

Open
VinayVasista opened this issue Mar 17, 2016 · 1 comment
Open

'user' of isl Id object #3

VinayVasista opened this issue Mar 17, 2016 · 1 comment

Comments

@VinayVasista
Copy link

Hi,

I get this error when I try to call

Id.alloc(ctx, name, user)

where user != None :

File "/usr/lib64/python3.3/site-packages/islpy/_isl.py", line 35073, in alloc
raise Error("passing non-None arguments for 'user' "
islpy._isl.Error: passing non-None arguments for 'user' is not yet supported

So I use my own id -> user map to keep track of Id users and I call -

Id.alloc(ctx, name, None)

This used to work fine with v2016.1.1, however it fails in v2016.1.2 with this error message :

Exception AttributeError: "'NoneType' object has no attribute 'isl_id_free'" in Exception AttributeError: "'NoneType' object has no attribute 'isl_basic_map_free'" in Exception AttributeError: "'NoneType' object has no attribute 'isl_id_free'" in Exception AttributeError: "'NoneType' object has no attribute 'isl_basic_map_free'" in Exception AttributeError: "'NoneType' object has no attribute 'isl_id_free'" in Exception AttributeError: "'NoneType' object has no attribute 'isl_basic_set_free'" in Exception Attr ... (like a hundred times)

I see that its trying to free the Id objects, and users are of NoneType, hence not able to get attributes 'isl_basic_map_free' or 'isl_basic_set_free'. Am I doing something wrong or is this an issue to be fixed in islpy? Please let me know how to resolve this.

Thanks in advance,
Vinay

@inducer
Copy link
Owner

inducer commented Mar 18, 2016

Can you help me reproduce this? This works fine on my machine:

def test_id_alloc():
    ctx = isl.Context()
    isl.Id.alloc(ctx, "yoink", None)

Ideally, I'd like a short snippet of code that misbehaves every time.

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

2 participants