We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
acc_get_device_type
1 parent fb07aca commit ececbcfCopy full SHA for ececbcf
torch/csrc/autograd/profiler_kineto.cpp
@@ -13,15 +13,13 @@
13
14
// TODO: TO be removed, once this properly works from libkineto
15
// Literal copy-n-paste from third_party/kineto/libkineto/src/WeakSymbols.cpp
16
-#ifdef USE_CUDA
17
extern "C" {
18
// This function is needed to avoid superfluous dependency on GNU OpenMP library when cuPTI is linked statically
19
// For more details see https://github.com/pytorch/pytorch/issues/51026
20
__attribute__((weak)) int acc_get_device_type() {
21
throw std::runtime_error("Dummy implementation of acc_get_device_type is not supposed to be called!");
22
}
23
} // extern "C"
24
-#endif /* USE_CUDA */
25
26
namespace torch { namespace autograd { namespace profiler {
27
0 commit comments