- 19 Mar, 2025 1 commit
-
-
Stanislav Pidhorskyi authored
Summary: This diff fixes some long standing issue with skinning weights some times been negative. Since initial value of skinning weights are always non-negative, and blending coefficients are supposed to be in range [0..1], and such blending of skinning weight should be non-negative. Unfortunately that was not the case in practice, despite various clamps. The issue was hunted down to this part of the code: c_a = mass_a / mass_ab; c_b = 1.0f - c_a; Even if `mass_a` matches `mass_ab` bit-perfect, `c_a` might not be equal to `1.0`, but some times to `0.999999940395355224609375` and some times to `1.000000119209289550781250`. The later value causes `c_b` to be negative, which leads to negative skinning weights. tsimk figured out that this behavior is due to the nvcc flag `-use_fast_math` which makes all devision operators `x/y` to compile to `__fdividef(x, y)` which it turn somehow does not produce exactly 1.0 when dividing same, bit-perfect numbers. See https://docs.nvidia.com/cuda/cuda-c-programming-guide/#intrinsic-functions . D71423305 Reviewed By: phg1024 Differential Revision: D71436810 fbshipit-source-id: 64c4e6368d07368ee75997da088d3952ed0c36d0
-
- 24 Feb, 2025 1 commit
-
-
Stanislav Pidhorskyi authored
Summary: Added missing `^=` operator to cuda_math_helper. Also added functions `isfinite`, `isinf`, and `isnan`. Also added vector version of `sqrt`. Reviewed By: tsimk Differential Revision: D70019653 Privacy Context Container: L1258975 fbshipit-source-id: ee7671a73110417bd8a99be87ff6d243c2d07938
-
- 15 Jan, 2025 1 commit
-
-
Arnie Yuan authored
Summary: X-link: https://github.com/facebookexternal/DRTK/pull/2 Pull Request resolved: https://github.com/facebookresearch/DRTK/pull/13 X-link: https://github.com/pytorch/pytorch/pull/138626 Was it a typo? Since we already have `at::detail` in `ATen/Dispatch.h` Deleting `::detail` all together, we don't need the functions in it anymore. Reviewed By: malfet Differential Revision: D64642080 fbshipit-source-id: 9ae48a888a854ec85e1caef53d87e6e3cc81591b
-
- 26 Sep, 2024 1 commit
-
-
Stanislav Pidhorskyi authored
Summary: Got legal approval 🥳 Reviewed By: una-dinosauria Differential Revision: D63428775 fbshipit-source-id: 7568ef2861ef10c2bd0367a7195cbbedf96ec8be
-
- 08 Jun, 2024 1 commit
-
-
facebook-github-bot authored
fbshipit-source-id: afc575e8e7d8e2796a3f77d8b1c6c4fcb999558d
-