Skip to content

Conversation

lizhouyu
Copy link
Contributor

@lizhouyu lizhouyu commented Jun 8, 2025

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/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

Copy link

netlify bot commented Jun 8, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit f75d0a8
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/6848cca9738b5f00088b473c
😎 Deploy Preview https://deploy-preview-4295--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76233478

lizhouyu added a commit to lizhouyu/FBGEMM-1 that referenced this pull request Jun 9, 2025
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
@lizhouyu lizhouyu force-pushed the export-D76233478 branch from c33083e to 4cff315 Compare June 9, 2025 00:30
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76233478

lizhouyu added a commit to lizhouyu/FBGEMM-1 that referenced this pull request Jun 9, 2025
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
@lizhouyu lizhouyu force-pushed the export-D76233478 branch from 4cff315 to 928ad4c Compare June 9, 2025 05:19
lizhouyu added a commit to lizhouyu/FBGEMM-1 that referenced this pull request Jun 9, 2025
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
@lizhouyu lizhouyu force-pushed the export-D76233478 branch from 928ad4c to b50ca8b Compare June 9, 2025 05:19
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76233478

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76233478

lizhouyu added a commit to lizhouyu/FBGEMM-1 that referenced this pull request Jun 9, 2025
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
@lizhouyu lizhouyu force-pushed the export-D76233478 branch from b50ca8b to 8119e36 Compare June 9, 2025 05:22
lizhouyu added a commit to lizhouyu/FBGEMM-1 that referenced this pull request Jun 9, 2025
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
@lizhouyu lizhouyu force-pushed the export-D76233478 branch from 8119e36 to 249c7a2 Compare June 9, 2025 05:39
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76233478

@lizhouyu lizhouyu force-pushed the export-D76233478 branch from 249c7a2 to d70ad1f Compare June 9, 2025 21:16
lizhouyu added a commit to lizhouyu/FBGEMM-1 that referenced this pull request Jun 9, 2025
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
@facebook-github-bot
Copy link
Contributor

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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76233478

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7b221dd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants