-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: CUDA is available for PyTorch, but NNcF could not compile GPu quan tization extensions. #3033
Comments
Hello @huangqiu15444, Could you provide the log? Try removing "~/.cache/torch_extensions/", this often helps. |
Here is the log. The above exception was the direct cause of the following exception: Traceback (most recent call last): /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: identifier "__is_same" is undefined /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Metaprogramming.h(425): error: no instance of constructor "std::tuple<_T1, _T2>::tuple [with _T1=int32_t &&, _T2=int32_t]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Metaprogramming.h(423): error: no instance of overloaded function "c10::guts::detail::extract_tuple_element_by_index" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h(32): error: no instance of constructor "c10::Scalar::Scalar" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h(34): error: no suitable constructor exists to convert from "c10::ScalarType" to "c10::optionalc10::ScalarType" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(148): error: no suitable constructor exists to convert from "c10::Layout" to "c10::optionalc10::Layout" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(177): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(182): error: no instance of overloaded function "c10::TensorOptions::set_dtype" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(187): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optionalc10::MemoryFormat" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1116): error: no instance of constructor "c10::optional::optional [with T=c10::Device]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1116): error: no instance of constructor "c10::optional::optional [with T=caffe2::TypeMeta]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1116): error: no instance of constructor "c10::optional::optional [with T=c10::Layout]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1116): error: no instance of constructor "c10::optional::optional [with T=__nv_bool]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1116): error: no instance of constructor "c10::optional::optional [with T=c10::MemoryFormat]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(430): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optionalc10::MemoryFormat" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(568): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(573): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(579): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(597): error: no instance of overloaded function "c10::TensorOptions::requires_grad" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(603): error: no suitable constructor exists to convert from "c10::MemoryFormat" to "c10::optionalc10::MemoryFormat" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/TensorOptions.h(795): error: no instance of overloaded function "c10::TensorOptions::layout" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(585): error: class "std::enable_if<, c10::optionalc10::Device &>" has no member "type" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h(99): error: no instance of overloaded function "c10::TensorOptions::dtype" matches the argument list /usr/include/c++/11/type_traits(2579): error: class "std::enable_if<, c10::complex>" has no member "type" /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h(668): error: no suitable user-defined conversion from "const at::Tensor" to "const c10::optionalat::Tensor" exists /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h(670): error: no suitable user-defined conversion from "const at::Tensor" to "const c10::optionalat::Tensor" exists /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(31): error: no instance of constructor "c10::impl::InlineDeviceGuard::InlineDeviceGuard [with T=c10::impl::VirtualGuardImpl]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(50): error: more than one instance of overloaded function "c10::impl::InlineDeviceGuard::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list: /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(158): error: class "std::enable_if<, void>" has no member "type" /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(156): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h(163): error: no instance of overloaded function "c10::impl::InlineOptionalDeviceGuard::reset_device [with T=c10::impl::VirtualGuardImpl]" matches the argument list /home/chenxc/anaconda3/envs/Grounding/lib/python3.8/site-packages/torch/include/c10/util/Optional.h(1116): error: no instance of constructor "c10::optional::optional [with T=c10::Device]" matches the argument list /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed /usr/include/c++/11/type_traits(1406): error: type name is not allowed Error limit reached. The above exception was the direct cause of the following exception: Traceback (most recent call last): |
A short google search for |
@huangqiu15444 , do you have any update here? Did you check what @vshampor recommended above about the compatibility? |
🐛 Describe the bug
nccfv2.5.0 and torch1.9.1 can work normally on the PC, but do not work on the Linux system。
Are there any methods to quickly troubleshoot the issue? Many colleagues have also encountered similar problems.
Environment
nccf v2.5.0 + torch1.9.1
PC cuda env : CUDA10.2
Linux cuda env: CUDA11.1
Minimal Reproducible Example
quantized_model = nncf.quantize(net, calibration_dataset)
Are you going to submit a PR?
The text was updated successfully, but these errors were encountered: