-
Notifications
You must be signed in to change notification settings - Fork 660
OSS the TorchRec MPZCH CPU kernel functions #4295
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
Conversation
✅ Deploy Preview for pytorch-fbgemm-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This pull request was exported from Phabricator. Differential Revision: D76233478 |
Summary: X-link: facebookresearch/FBGEMM#1371 ### Major changes In `FbgemmGpu.cmake`: - Remove the skip ROCM lines for CPU build ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add CPP source file into the `fbgemm_gpu_sources_cpu_static` list Differential Revision: D76233478
c33083e
to
4cff315
Compare
This pull request was exported from Phabricator. Differential Revision: D76233478 |
Summary: X-link: facebookresearch/FBGEMM#1371 ### Major changes In `FbgemmGpu.cmake`: - Remove the skip ROCM lines for CPU build ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add CPP source file into the `fbgemm_gpu_sources_cpu_static` list Differential Revision: D76233478
4cff315
to
928ad4c
Compare
Summary: X-link: facebookresearch/FBGEMM#1371 ### Major changes In `FbgemmGpu.cmake`: - Remove the skip ROCM lines for CPU build ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add CPP source file into the `fbgemm_gpu_sources_cpu_static` list Differential Revision: D76233478
928ad4c
to
b50ca8b
Compare
This pull request was exported from Phabricator. Differential Revision: D76233478 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D76233478 |
Summary: Pull Request resolved: pytorch#4295 X-link: facebookresearch/FBGEMM#1371 ### Major changes In `FbgemmGpu.cmake`: - Remove the skip ROCM lines for CPU build ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add CPP source file into the `fbgemm_gpu_sources_cpu_static` list Differential Revision: D76233478
b50ca8b
to
8119e36
Compare
Summary: X-link: facebookresearch/FBGEMM#1371 ### Major changes In `FbgemmGpu.cmake`: - Remove the skip ROCM lines for CPU build ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add CPP source file into the `fbgemm_gpu_sources_cpu_static` list Differential Revision: D76233478
8119e36
to
249c7a2
Compare
This pull request was exported from Phabricator. Differential Revision: D76233478 |
249c7a2
to
d70ad1f
Compare
Summary: X-link: facebookresearch/FBGEMM#1371 ### Motivation - The `faster_hash_ops` related kernel functions are not picked up in the CPU build of the FBGEMM library. - To resolve this, we rewrite the cmake file to make these functions available in packages built for CPU environment. ### Major changes In `FbgemmGpu.cmake`: - Move the skip ROCM lines for CPU build from inside the `if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_CPU)` condition to before this condition check ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add DocStrings to header files in `fbgemm_gpu/include/febgemm_gpu`, and add document configurations in `fbgemm_gpu/docs/src/fbgemm_gpu/cpp-api`. ### ToDo - Separate the shared CPU and GPU header file `common_utils.cuh` to two files used for CPU and GPU, respectively. Differential Revision: D76233478
This pull request was exported from Phabricator. Differential Revision: D76233478 |
Summary: X-link: facebookresearch/FBGEMM#1371 ### Motivation - The `faster_hash_ops` related kernel functions are not picked up in the CPU build of the FBGEMM library. - To resolve this, we rewrite the cmake file to make these functions available in packages built for CPU environment. ### Major changes In `FbgemmGpu.cmake`: - Move the skip ROCM lines for CPU build from inside the `if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_CPU)` condition to before this condition check ``` if(NOT FBGEMM_BUILD_VARIANT STREQUAL BUILD_VARIANT_ROCM) list(APPEND fbgemm_gpu_sources_cpu_static src/faster_hash_ops/faster_hash.cpp) endif() ``` - Add DocStrings to header files in `fbgemm_gpu/include/febgemm_gpu`, and add document configurations in `fbgemm_gpu/docs/src/fbgemm_gpu/cpp-api`. ### ToDo - Separate the shared CPU and GPU header file `common_utils.cuh` to two files used for CPU and GPU, respectively. Differential Revision: D76233478
d70ad1f
to
f75d0a8
Compare
This pull request was exported from Phabricator. Differential Revision: D76233478 |
This pull request has been merged in 7b221dd. |
Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/1371
Major changes
In
FbgemmGpu.cmake
:fbgemm_gpu_sources_cpu_static
listDifferential Revision: D76233478