From 5e5c8a7ca298ec04fa037d2e89acfcaad2b04192 Mon Sep 17 00:00:00 2001 From: Logan Adams <114770087+loadams@users.noreply.github.com> Date: Tue, 28 May 2024 13:01:48 -0700 Subject: [PATCH] Rename files in fp_quantize op from quantize.* to fp_quantize.* (#5577) Fixes #5535. Todo: need to test. --- csrc/fp_quantizer/{quantize.cpp => fp_quantize.cpp} | 2 +- csrc/fp_quantizer/{quantize.cu => fp_quantize.cu} | 2 +- csrc/fp_quantizer/includes/{quantize.h => fp_quantize.h} | 0 op_builder/fp_quantizer.py | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename csrc/fp_quantizer/{quantize.cpp => fp_quantize.cpp} (99%) rename csrc/fp_quantizer/{quantize.cu => fp_quantize.cu} (99%) rename csrc/fp_quantizer/includes/{quantize.h => fp_quantize.h} (100%) diff --git a/csrc/fp_quantizer/quantize.cpp b/csrc/fp_quantizer/fp_quantize.cpp similarity index 99% rename from csrc/fp_quantizer/quantize.cpp rename to csrc/fp_quantizer/fp_quantize.cpp index 218170d066a4..2457cf255b03 100644 --- a/csrc/fp_quantizer/quantize.cpp +++ b/csrc/fp_quantizer/fp_quantize.cpp @@ -3,7 +3,7 @@ // DeepSpeed Team -#include "quantize.h" +#include "fp_quantize.h" #include #include diff --git a/csrc/fp_quantizer/quantize.cu b/csrc/fp_quantizer/fp_quantize.cu similarity index 99% rename from csrc/fp_quantizer/quantize.cu rename to csrc/fp_quantizer/fp_quantize.cu index 426b8284a0b0..dbae6f7a2e00 100644 --- a/csrc/fp_quantizer/quantize.cu +++ b/csrc/fp_quantizer/fp_quantize.cu @@ -5,8 +5,8 @@ #include #include "context.h" +#include "fp_quantize.h" #include "memory_access_utils.h" -#include "quantize.h" #include "reduction_utils.h" #include diff --git a/csrc/fp_quantizer/includes/quantize.h b/csrc/fp_quantizer/includes/fp_quantize.h similarity index 100% rename from csrc/fp_quantizer/includes/quantize.h rename to csrc/fp_quantizer/includes/fp_quantize.h diff --git a/op_builder/fp_quantizer.py b/op_builder/fp_quantizer.py index bafd3e0c33f6..9f07ec3d1275 100644 --- a/op_builder/fp_quantizer.py +++ b/op_builder/fp_quantizer.py @@ -52,8 +52,8 @@ def filter_ccs(self, ccs): def sources(self): return [ - "csrc/fp_quantizer/quantize.cu", - "csrc/fp_quantizer/quantize.cpp", + "csrc/fp_quantizer/fp_quantize.cu", + "csrc/fp_quantizer/fp_quantize.cpp", ] def extra_ldflags(self):