torch / distro

Torch installation in a self-contained folder
BSD 3-Clause "New" or "Revised" License
556 stars 484 forks source link

cutorch installation failed due to "min" overloading conflicts #161

Closed angelleng closed 8 years ago

angelleng commented 8 years ago

Hi,

I have encountered an issue when installing cutorch due to a "min" overloading problem:

/home/jingleng/torch/extra/cutorch/lib/THC/THCTensorRandom.cu(250): error: more than one instance of overloaded function "min" matches the argument list:
            function "min(int, int)"
            function "min(unsigned int, unsigned int)"
            function "min(int, unsigned int)"
            function "min(unsigned int, int)"
            function "min(long long, long long)"
            function "min(unsigned long long, unsigned long long)"
            function "min(long long, unsigned long long)"
            function "min(unsigned long long, long long)"
            function "min(float, float)"
            function "min(double, double)"
            function "min(float, double)"
            function "min(double, float)"
            argument types are: (long, ptrdiff_t)

Any idea why? Thank you!

Cheers.

soumith commented 8 years ago

hi there. this issue should now be fixed in master. the PR to fix this has been merged.