Skip to content

[caffe2] open source 2/4-bit SLS operators - #34783

Closed
jspark1105 wants to merge 1 commit into
pytorch:masterfrom
jspark1105:export-D20461609
Closed

jspark1105 wants to merge 1 commit into
pytorch:masterfrom
jspark1105:export-D20461609

Conversation

@jspark1105

Copy link
Copy Markdown
Contributor

Summary: Moving 2/4-bit SLS and row-wise 2/4-bit conversion operator to open source to be used by DLRM

Test Plan: CI

Differential Revision: D20461609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@dr-ci

dr-ci Bot commented Mar 15, 2020 •

Copy link
Copy Markdown

💊 CircleCI build failures summary and remediations

As of commit ca26973 (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

The following build failures do not appear to be due to upstream breakages (reran 1 job to discount flakiness):

See CircleCI build pytorch_windows_vs2019_py36_cuda10.1_build (1/1)

Step: "Install Cudnn" (full log | pattern match details) <confirmed not flaky by 2 failures>

cp: target 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/' is not a directory
-- 
Path = cudnn-10.1-windows10-x64-v7.6.4.38.zip 
Type = zip 
Physical Size = 277028683 
 
Everything is Ok 
 
Files: 4 
Size:       422285436 
Compressed: 277028683 
cp: target 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/' is not a directory

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 62 times.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

Summary:
Pull Request resolved: pytorch#34783

Moving 2/4-bit SLS and row-wise 2/4-bit conversion operator to open source to be used by DLRM

Test Plan: CI

Differential Revision: D20461609

fbshipit-source-id: 975ce7ab96f0d8cf1fdd40af864e73e06dc25be5
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@peterjc123

Copy link
Copy Markdown
Collaborator

This PR is causing build failures on Windows.

FAILED: caffe2/CMakeFiles/torch_cpu.dir/operators/fused_rowwise_nbitfake_conversion_ops.cc.obj 
C:\Users\circleci\project\build\win_tmp\bin\sccache-cl.exe   /TP -DAT_PARALLEL_OPENMP=1 -DCPUINFO_SUPPORTED_PLATFORM=1 -DIDEEP_USE_MKL -DMAGMA_V2 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE=1 -D_OPENMP_NOFORCE_MANIFEST -Dtorch_cpu_EXPORTS -Iaten\src -I..\aten\src -I. -I..\ -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\third_party\miniz-2.0.8 -I..\caffe2\core\nomnigraph\include -I..\c10\.. -Ithird_party\ideep\mkl-dnn\include -I..\third_party\ideep\mkl-dnn\src\..\include -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\third_party\protobuf\src -Iwin_tmp\mkl\include -I..\cmake\..\third_party\eigen -IC:\Jenkins\Miniconda3\include -IC:\Jenkins\Miniconda3\lib\site-packages\numpy\core\include -I..\cmake\..\third_party\pybind11\include -I\opt\rocm\hip\include -I\include -I..\cmake\..\third_party\cub -Iwin_tmp\magma\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -I..\third_party\ideep\mkl-dnn\include -I..\third_party\ideep\include -I..\caffe2 /DWIN32 /D_WINDOWS /GR  /w /EHa /bigobj -openmp -DNDEBUG -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /EHa /bigobj -DNDEBUG   -DCUDA_HAS_FP16=1 -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /Z7 /EHa /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -O2 -DCAFFE2_BUILD_MAIN_LIB -DONNX_BUILD_MAIN_LIB -std:c++14 /showIncludes /Focaffe2\CMakeFiles\torch_cpu.dir\operators\fused_rowwise_nbitfake_conversion_ops.cc.obj /Fdcaffe2\CMakeFiles\torch_cpu.dir\ /FS -c ..\caffe2\operators\fused_rowwise_nbitfake_conversion_ops.cc
C:\Users\circleci\project\caffe2/operators/fused_rowwise_nbitfake_conversion_ops.h(82): error C3016: 'row': index variable in OpenMP 'for' statement must have signed integral type
C:\Users\circleci\project\caffe2/operators/fused_rowwise_nbitfake_conversion_ops.h(53): note: while compiling class template member function 'bool caffe2::FloatToFusedNBitFakeRowwiseQuantizedOp<2,c10::Half,void caffe2::internal::convertfp16fp32(float *,const c10::Half *,::size_t),true>::RunOnDevice(void)'
C:\Users\circleci\project\c10/util/Registry.h(186): note: see reference to class template instantiation 'caffe2::FloatToFusedNBitFakeRowwiseQuantizedOp<2,c10::Half,void caffe2::internal::convertfp16fp32(float *,const c10::Half *,::size_t),true>' being compiled
..\caffe2\operators\fused_rowwise_nbitfake_conversion_ops.cc(268): note: see reference to function template instantiation 'ObjectPtrType c10::Registerer<std::string,ObjectPtrType,const caffe2::OperatorDef &,caffe2::Workspace *>::DefaultCreator<caffe2::FloatToFusedNBitFakeRowwiseQuantizedOp<2,c10::Half,void caffe2::internal::convertfp16fp32(float *,const c10::Half *,::size_t),true>>(const caffe2::OperatorDef &,caffe2::Workspace *)' being compiled
        with
        [
            ObjectPtrType=std::unique_ptr<caffe2::OperatorBase,std::default_delete<caffe2::OperatorBase>>
        ]
..\caffe2\operators\fused_rowwise_nbitfake_conversion_ops.cc(261): note: see reference to function template instantiation 'ObjectPtrType c10::Registerer<std::string,ObjectPtrType,const caffe2::OperatorDef &,caffe2::Workspace *>::DefaultCreator<caffe2::FloatToFusedNBitFakeRowwiseQuantizedOp<2,c10::Half,void caffe2::internal::convertfp16fp32(float *,const c10::Half *,::size_t),true>>(const caffe2::OperatorDef &,caffe2::Workspace *)' being compiled
        with
        [
            ObjectPtrType=std::unique_ptr<caffe2::OperatorBase,std::default_delete<caffe2::OperatorBase>>
        ]

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in d9b97a4.

@jspark1105

Copy link
Copy Markdown
Contributor Author

@peterjc123 thanks for reporting the error. Sorry. The error must have been masked by an infra-related build issue.

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.

4 participants