You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following function, cunumeric and numpy behave differently. The expected behavior is to obtain an array full of 1, which numpy does:
importcunumericasnumimportnumpyasnpdefinterpolate(data):
m= (slice(0, -1),)
p= (slice(1, None),)
data[p] +=data[m] # The issue is caused by this linedata[p] *=0.5returndata[p]
# Cunumericdata_num=num.ones((20000,))
r_num=interpolate(data_num)
print((r_num==1.).all()) # False: wrong behavior# Numpydata_np=np.ones((20000,))
r_np=interpolate(data_np)
print((r_np==1.).all()) # True: expected behavior
I have observed 3 very different behavior of cunumeric depending on the size of the array:
For small arrays (e.g. shape (8,)) cunumeric returns the expected result
For large arrays (e.g. shape (20000,)) cunumeric does nor raise any error, but the result array is not full of 1, which is not the expected numpy behavior.
For arrays of intermediate sizes (e.g. shape (10000,))) I have a Legion error because of interfering tasks:
In the following function, cunumeric and numpy behave differently. The expected behavior is to obtain an array full of 1, which numpy does:
I have observed 3 very different behavior of cunumeric depending on the size of the array:
(8,)
) cunumeric returns the expected result(20000,)
) cunumeric does nor raise any error, but the result array is not full of 1, which is not the expected numpy behavior.(10000,)
)) I have a Legion error because of interfering tasks:I think this was also reported in #57 .
The text was updated successfully, but these errors were encountered: