Closed lee218llnl closed 1 year ago
@lee218llnl Yeah facing the same issue on an arm64 arch machine! The solution seems straight forward, but would be great if the author verifies it and update the code. @pkomiske Request you to please look into the issue. With this change, the library can be easily extended to various other machines.
Thanks for pointing this out. Apparently char
can be signed or unsigned depending on the compiler. To make as minimal a change as possible, can you try changing the underlying enum type to signed char
and leaving the values as they were?
@pkomiske Yeah it did work by specifying the type of char on arm64 machine. So shall I raise a PR with the changes for fixing this bug in the master? Apparently you can test the changes and release the updated version on PyPI!
I got a few compiler errors of the form:
./wasserstein/internal/EMDUtils.hh:135:14: error: enumerator value -1 is outside the range of underlying type 'char'
I believe enum types are supposed to be non-negative integers. I can work around this by setting the value to 2 instead of -1, but am not sure if that is the proper thing to do. Here are the 2 changes I made to get wasserstein to compile: