diff options
author | Daya S Khudia <dskhudia@fb.com> | 2018-12-06 01:13:59 +0300 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-12-06 01:23:01 +0300 |
commit | 3af8fe54149d9451d593c635d616d2c380e21acb (patch) | |
tree | ff2b30184b1c9562419effc9b13d34478a1d2c0a /src | |
parent | 7e1b543a5264adfb35f16fee60b097dba28e12bb (diff) |
Final cleanup for avx2 isolation and consistent file names (#40)
Summary:
Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/40
File name changes + removal of -mavx2 compiler flag non-avx files
This completes the separation of avx2 code to few files that make minimal use of c++ std lib.
Reviewed By: jianyuh
Differential Revision: D13330577
fbshipit-source-id: b469ebee484168800ce2d12fd2356edecbf0fa4d
Diffstat (limited to 'src')
-rw-r--r-- | src/FbgemmFP16.cc | 2 | ||||
-rw-r--r-- | src/FbgemmFP16UKernelsAvx2.cc (renamed from src/FbgemmFP16UKernels.cc) | 2 | ||||
-rw-r--r-- | src/FbgemmFP16UKernelsAvx2.h (renamed from src/FbgemmFP16UKernels.h) | 2 | ||||
-rw-r--r-- | src/GenerateKernelU8S8S32ACC16Avx512.cc (renamed from src/GenerateKernelU8S8S32ACC16_avx512.cc) | 0 | ||||
-rw-r--r-- | src/GenerateKernelU8S8S32ACC32Avx512.cc (renamed from src/GenerateKernelU8S8S32ACC32_avx512.cc) | 0 | ||||
-rw-r--r-- | src/UtilsAvx2.cc (renamed from src/Utils_avx2.cc) | 0 | ||||
-rw-r--r-- | src/UtilsAvx512.cc (renamed from src/Utils_avx512.cc) | 0 | ||||
-rw-r--r-- | src/codegen_fp16fp32.cc | 8 |
8 files changed, 5 insertions, 9 deletions
diff --git a/src/FbgemmFP16.cc b/src/FbgemmFP16.cc index 6d44c74..2af1f89 100644 --- a/src/FbgemmFP16.cc +++ b/src/FbgemmFP16.cc @@ -10,7 +10,7 @@ #include <array> #include <utility> -#include "FbgemmFP16UKernels.h" +#include "FbgemmFP16UKernelsAvx2.h" using namespace std; diff --git a/src/FbgemmFP16UKernels.cc b/src/FbgemmFP16UKernelsAvx2.cc index d915765..8a0cb0d 100644 --- a/src/FbgemmFP16UKernels.cc +++ b/src/FbgemmFP16UKernelsAvx2.cc @@ -4,7 +4,7 @@ * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ -#include "FbgemmFP16UKernels.h" +#include "FbgemmFP16UKernelsAvx2.h" namespace fbgemm { diff --git a/src/FbgemmFP16UKernels.h b/src/FbgemmFP16UKernelsAvx2.h index d35d431..4053332 100644 --- a/src/FbgemmFP16UKernels.h +++ b/src/FbgemmFP16UKernelsAvx2.h @@ -7,8 +7,6 @@ #ifndef FBGEMM_UKERNELS #define FBGEMM_UKERNELS #include <cstdint> -#include <tuple> -#include <vector> #include "fbgemm/Types.h" namespace fbgemm { diff --git a/src/GenerateKernelU8S8S32ACC16_avx512.cc b/src/GenerateKernelU8S8S32ACC16Avx512.cc index eeeaea0..eeeaea0 100644 --- a/src/GenerateKernelU8S8S32ACC16_avx512.cc +++ b/src/GenerateKernelU8S8S32ACC16Avx512.cc diff --git a/src/GenerateKernelU8S8S32ACC32_avx512.cc b/src/GenerateKernelU8S8S32ACC32Avx512.cc index 0621bb0..0621bb0 100644 --- a/src/GenerateKernelU8S8S32ACC32_avx512.cc +++ b/src/GenerateKernelU8S8S32ACC32Avx512.cc diff --git a/src/Utils_avx2.cc b/src/UtilsAvx2.cc index badf70b..badf70b 100644 --- a/src/Utils_avx2.cc +++ b/src/UtilsAvx2.cc diff --git a/src/Utils_avx512.cc b/src/UtilsAvx512.cc index f49bb6f..f49bb6f 100644 --- a/src/Utils_avx512.cc +++ b/src/UtilsAvx512.cc diff --git a/src/codegen_fp16fp32.cc b/src/codegen_fp16fp32.cc index 8dd3166..17bb113 100644 --- a/src/codegen_fp16fp32.cc +++ b/src/codegen_fp16fp32.cc @@ -65,7 +65,7 @@ int main() { // open all files ofstream srcfile; - srcfile.open("FbgemmFP16UKernels.cc"); + srcfile.open("FbgemmFP16UKernelsAvx2.cc"); srcfile << "/*\n" " * Copyright (c) Facebook, Inc. and its affiliates.\n" @@ -73,14 +73,14 @@ int main() { " * This source code is licensed under the BSD-style license found in the\n" " * LICENSE file in the root directory of this source tree.\n" " */\n"; - srcfile << "#include \"FbgemmFP16UKernels.h\"\n\n"; + srcfile << "#include \"FbgemmFP16UKernelsAvx2.h\"\n\n"; srcfile << "namespace fbgemm {\n\n"; if (iaca) { srcfile << "#include \"iacaMarks.h\"\n"; } ofstream hdrfile; - hdrfile.open("FbgemmFP16UKernels.h"); + hdrfile.open("FbgemmFP16UKernelsAvx2.h"); hdrfile << "/*\n" " * Copyright (c) Facebook, Inc. and its affiliates.\n" @@ -92,8 +92,6 @@ int main() { hdrfile << "#ifndef FBGEMM_UKERNELS\n"; hdrfile << "#define FBGEMM_UKERNELS\n"; hdrfile << "#include <cstdint>\n"; - hdrfile << "#include <tuple>\n"; - hdrfile << "#include <vector>\n"; hdrfile << "#include \"fbgemm/Types.h\"\n\n"; hdrfile << "namespace fbgemm {\n\n"; hdrfile << "using fp16 = float16;\n"; |