Skip to content

[jit] gtestify test_argument_spec.cpp - #45019

Closed
suo wants to merge 5 commits into
gh/suo/356/basefrom
gh/suo/356/head
Closed

suo wants to merge 5 commits into
gh/suo/356/basefrom
gh/suo/356/head

Conversation

@suo

@suo suo commented Sep 19, 2020 •

Copy link
Copy Markdown
Member

Stack from ghstack:

See #45018 for context.

Differential Revision: D23802298

suo added a commit that referenced this pull request Sep 19, 2020
ghstack-source-id: 831515a
Pull Request resolved: #45019
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Sep 19, 2020
See #45018 for context.

[ghstack-poisoned]
@dr-ci

dr-ci Bot commented Sep 19, 2020 •

Copy link
Copy Markdown

💊 CI failures summary and remediations

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



🚧 1 fixed upstream failure:

These were probably caused by upstream breakages that were already fixed.

Please rebase on the viable/strict branch (expand for instructions)

Since your merge base is older than viable/strict, run these commands:

git fetch https://github.com/pytorch/pytorch viable/strict
git rebase FETCH_HEAD

Check out the recency history of this "viable master" tracking branch.


ci.pytorch.org: 1 failed


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 or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 14 times.

@dr-ci

dr-ci Bot commented Sep 19, 2020

Copy link
Copy Markdown

💊 CI failures summary and remediations

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


  • 6/6 failures possibly* introduced in this PR
    • 2/6 non-CircleCI failure(s)

🕵️ 4 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_windows_vs2019_py36_cuda11.0_build (1/4)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

FAILED: bin/test_jit.exe

FBGEMM -DUSE_VULKAN_WRAPPER -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DCUDA_HAS_FP16=1 -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -std:c++14 /showIncludes /Fotest_tensorexpr\CMakeFiles\test_tensorexpr.dir\padded_buffer.cpp.obj /Fdtest_tensorexpr\CMakeFiles\test_tensorexpr.dir\ /FS -c ..\test\cpp\tensorexpr\padded_buffer.cpp 
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

R /EHsc /w /bigobj -openmp:experimental -DNDEBUG -DUSE_FBGEMM -DUSE_VULKAN_WRAPPER -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DCUDA_HAS_FP16=1 -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -std:c++14 /showIncludes /Fotest_api\CMakeFiles\test_api.dir\fft.cpp.obj /Fdtest_api\CMakeFiles\test_api.dir\ /FS -c ..\test\cpp\api\fft.cpp 
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

ib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cufft.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\curand.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cublas.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cudnn.lib"  LIB\onnx.lib  LIB\onnx_proto.lib  LIB\libprotobuf.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." 
FAILED: bin/test_jit.exe  
ib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cufft.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\curand.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cublas.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cudnn.lib"  LIB\onnx.lib  LIB\onnx_proto.lib  LIB\libprotobuf.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." 
ib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\curand.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cublas.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64\cudnn.lib LIB\onnx.lib LIB\onnx_proto.lib LIB\libprotobuf.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:bin\test_jit.exe.manifest" failed (exit code 1120) with the following output:
Microsoft (R) Incremental Linker Version 14.27.29111.0 
Copyright (C) Microsoft Corporation.  All rights reserved. 
 
   Creating library LIB\test_jit.lib and object LIB\test_jit.exp 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_IrGraphGenerator(void)" (?testGPU_IrGraphGenerator@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_IrGraphGenerator_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_IrGraphGenerator_CUDA_Test@jit@torch@@EEAAXXZ) 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_FusionDispatch(void)" (?testGPU_FusionDispatch@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_FusionDispatch_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_FusionDispatch_CUDA_Test@jit@torch@@EEAAXXZ) 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_FusionClear(void)" (?testGPU_FusionClear@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_FusionClear_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_FusionClear_CUDA_Test@jit@torch@@EEAAXXZ) 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_FusionCopy(void)" (?testGPU_FusionCopy@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_FusionCopy_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_FusionCopy_CUDA_Test@jit@torch@@EEAAXXZ) 

See CircleCI build pytorch_linux_bionic_py3_8_gcc9_build (2/4)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

akeTmp/CheckSymbolExists.c: In function ‘main’:\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘strtod_l’ undeclared (first use in this function); did you mean ‘strtoull’?\n 8 | return ((int*)(&strtod_l))[argc];\n | ^~~~~~~~\n | strtoull\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in\n" }
Sep 19 08:22:25     self.run(build_args, my_env) 
Sep 19 08:22:25   File "/var/lib/jenkins/workspace/tools/setup_helpers/cmake.py", line 141, in run 
Sep 19 08:22:25     check_call(command, cwd=self.build_dir, env=env) 
Sep 19 08:22:25   File "/opt/conda/lib/python3.8/subprocess.py", line 364, in check_call 
Sep 19 08:22:25     raise CalledProcessError(retcode, cmd) 
Sep 19 08:22:25 subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '3']' returned non-zero exit status 2. 
Sep 19 08:22:25 =================== sccache compilation log =================== 
Sep 19 08:22:25 + cleanup 
Sep 19 08:22:25 + retcode=1 
Sep 19 08:22:25 + set +x 
keTmp/CheckSymbolExists.c: In function ‘main’:\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘strtod_l’ undeclared (first use in this function); did you mean ‘strtoull’?\n    8 |   return ((int*)(&strtod_l))[argc];\n      |                   ^~~~~~~~\n      |                   strtoull\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in\n" } 
Sep 19 08:22:25  
Sep 19 08:22:25 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Sep 19 08:22:25 Compile requests               5630 
Sep 19 08:22:25 Compile requests executed      3377 
Sep 19 08:22:25 Cache hits                     3359 
Sep 19 08:22:25 Cache misses                      2 
Sep 19 08:22:25 Cache timeouts                    0 
Sep 19 08:22:25 Cache read errors                 0 
Sep 19 08:22:25 Forced recaches                   0 
Sep 19 08:22:25 Cache write errors                0 

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

Step: "Build" (full log | diagnosis details | 🔁 rerun)

FAILED: bin/test_jit.exe

ULKAN_WRAPPER -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DCUDA_HAS_FP16=1 -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -std:c++14 /showIncludes /Fotest_tensorexpr\CMakeFiles\test_tensorexpr.dir\test_boundsinference.cpp.obj /Fdtest_tensorexpr\CMakeFiles\test_tensorexpr.dir\ /FS -c ..\test\cpp\tensorexpr\test_boundsinference.cpp 
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

G -DUSE_FBGEMM -DUSE_VULKAN_WRAPPER -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DCUDA_HAS_FP16=1 -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -std:c++14 /showIncludes /Fotest_tensorexpr\CMakeFiles\test_tensorexpr.dir\test_expr.cpp.obj /Fdtest_tensorexpr\CMakeFiles\test_tensorexpr.dir\ /FS -c ..\test\cpp\tensorexpr\test_expr.cpp 
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

ib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cufft.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\curand.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cublas.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cudnn.lib"  LIB\onnx.lib  LIB\onnx_proto.lib  LIB\libprotobuf.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." 
FAILED: bin/test_jit.exe  
ib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cufft.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\curand.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cublas.lib"  "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cudnn.lib"  LIB\onnx.lib  LIB\onnx_proto.lib  LIB\libprotobuf.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." 
ib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\curand.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cublas.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib\x64\cudnn.lib LIB\onnx.lib LIB\onnx_proto.lib LIB\libprotobuf.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:bin\test_jit.exe.manifest" failed (exit code 1120) with the following output:
Microsoft (R) Incremental Linker Version 14.27.29111.0 
Copyright (C) Microsoft Corporation.  All rights reserved. 
 
   Creating library LIB\test_jit.lib and object LIB\test_jit.exp 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_IrGraphGenerator(void)" (?testGPU_IrGraphGenerator@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_IrGraphGenerator_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_IrGraphGenerator_CUDA_Test@jit@torch@@EEAAXXZ) 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_FusionDispatch(void)" (?testGPU_FusionDispatch@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_FusionDispatch_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_FusionDispatch_CUDA_Test@jit@torch@@EEAAXXZ) 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_FusionClear(void)" (?testGPU_FusionClear@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_FusionClear_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_FusionClear_CUDA_Test@jit@torch@@EEAAXXZ) 
gtest.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl torch::jit::testGPU_FusionCopy(void)" (?testGPU_FusionCopy@jit@torch@@YAXXZ) referenced in function "private: virtual void __cdecl torch::jit::JitTest_GPU_FusionCopy_CUDA_Test::TestBody(void)" (?TestBody@JitTest_GPU_FusionCopy_CUDA_Test@jit@torch@@EEAAXXZ) 

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_build (4/4)

Step: "Build" (full log | diagnosis details | 🔁 rerun)

atus(256)), stdout: "", stderr: "/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function \'main\':\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: \'strtod_l\' undeclared (first use in this function)\n return ((int*)(&strtod_l))[argc];\n ^\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in\n" }
Sep 19 08:20:12     self.run(build_args, my_env) 
Sep 19 08:20:12   File "/var/lib/jenkins/workspace/tools/setup_helpers/cmake.py", line 141, in run 
Sep 19 08:20:12     check_call(command, cwd=self.build_dir, env=env) 
Sep 19 08:20:12   File "/opt/conda/lib/python3.6/subprocess.py", line 311, in check_call 
Sep 19 08:20:12     raise CalledProcessError(retcode, cmd) 
Sep 19 08:20:12 subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '3']' returned non-zero exit status 2. 
Sep 19 08:20:12 + cleanup 
Sep 19 08:20:12 + retcode=1 
Sep 19 08:20:12 + set +x 
Sep 19 08:20:12 =================== sccache compilation log =================== 
tus(256)), stdout: "", stderr: "/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function \'main\':\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: \'strtod_l\' undeclared (first use in this function)\n   return ((int*)(&strtod_l))[argc];\n                   ^\n/var/lib/jenkins/workspace/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in\n" } 
Sep 19 08:20:12  
Sep 19 08:20:12 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Sep 19 08:20:12 Compile requests               5616 
Sep 19 08:20:12 Compile requests executed      3373 
Sep 19 08:20:12 Cache hits                     3355 
Sep 19 08:20:12 Cache misses                      2 
Sep 19 08:20:12 Cache timeouts                    0 
Sep 19 08:20:12 Cache read errors                 0 
Sep 19 08:20:12 Forced recaches                   0 
Sep 19 08:20:12 Cache write errors                0 

Extra GitHub checks: 1 failed


ci.pytorch.org: 1 failed


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 or post in the (internal) Dr. CI Users group.

See how this bot performed.

@suo
suo requested a review from ZolotukhinM September 21, 2020 17:06

@ZolotukhinM ZolotukhinM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

size_t hashCode(const TensorTypePtr& ptr) {
return std::hash<TensorType>()(*ptr.get());
}
// TODO: this test was disabled for unknown reasons and doesn't run.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm, should we remove it entirely then?

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@suo merged this pull request in 666223d.

@facebook-github-bot
facebook-github-bot deleted the gh/suo/356/head branch September 26, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants