Repository: pytorch
Issue: Inquiry about Test Error after Static Compilation
Labels: module: build,triaged,module: static linking

### 🐛 Describe the bug

Version: v2.0.0
Compilation: cmake -DPYTHON_EXECUTABLE=/usr/bin/python310 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/libtorch -D BUILD_CAFFE2_MOBILE=OFF -D BUILD_PYTHON=OFF -D BUILD_CAFFE2_OPS=OFF -D BUILD_TEST=OFF -D USE_CUDA=OFF -D USE_CUDNN=OFF -D USE_OPENCV=OFF -D USE_TBB=OFF ..; make; make install
**Result:** The compilation was successful, but when using the test, an undefined error occurred at 100% compilation.

cpp
#include <torch/torch.h>

int main() {
    torch::Device device(torch::kCPU);
    if (torch::cuda::is_available()) {
        std::cout << "CUDA is available! Training on GPU." << std::endl;
        device = torch::Device(torch::kCUDA);
    }

    torch::nn::Linear model(torch::nn::LinearOptions(10, 5));

    model->to(device);
    torch::Tensor input = torch::randn({1, 10});

    input = input.to(device);

    torch::Tensor output = model->forward(input);

    std::cout << "Output: " << output << std::endl;

    return 0;
}

### Error logs

d_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9c1): undefined reference to `omp_in_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9d4): undefined reference to `omp_get_max_threads'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9e1): undefined reference to `omp_in_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9f4): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(nspc_batch_normalization.cpp.o): In function `dnnl::impl::cpu::nspc_batch_normalization_bwd_t<(dnnl_data_type_t)2>::execute_backward(dnnl::impl::exec_ctx_t const&) const':
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x550): undefined reference to `omp_in_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x7d6): undefined reference to `omp_in_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x939): undefined reference to `GOMP_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9a9): undefined reference to `GOMP_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9d1): undefined reference to `omp_in_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9e4): undefined reference to `omp_get_max_threads'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0x9f1): undefined reference to `omp_in_parallel'
nspc_batch_normalization.cpp:(.text._ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE16execute_backwardERKNS0_10exec_ctx_tE]+0xa04): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(nspc_batch_normalization.cpp.o): In function `dnnl::impl::cpu::nspc_batch_normalization_bwd_t<(dnnl_data_type_t)2>::pd_t::init(dnnl_engine*)':
nspc_batch_normalization.cpp:(.text._ZN4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE4pd_t4initEP11dnnl_engine[_ZN4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t2EE4pd_t4initEP11dnnl_engine]+0x327): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(nspc_batch_normalization.cpp.o): In function `dnnl::impl::cpu::nspc_batch_normalization_fwd_t<(dnnl_data_type_t)3>::pd_t::init(dnnl_engine*)':
nspc_batch_normalization.cpp:(.text._ZN4dnnl4impl3cpu30nspc_batch_normalization_fwd_tIL16dnnl_data_type_t3EE4pd_t4initEP11dnnl_engine[_ZN4dnnl4impl3cpu30nspc_batch_normalization_fwd_tIL16dnnl_data_type_t3EE4pd_t4initEP11dnnl_engine]+0x2e0): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(nspc_batch_normalization.cpp.o): In function `dnnl::impl::cpu::nspc_batch_normalization_fwd_t<(dnnl_data_type_t)2>::pd_t::init(dnnl_engine*)':
nspc_batch_normalization.cpp:(.text._ZN4dnnl4impl3cpu30nspc_batch_normalization_fwd_tIL16dnnl_data_type_t2EE4pd_t4initEP11dnnl_engine[_ZN4dnnl4impl3cpu30nspc_batch_normalization_fwd_tIL16dnnl_data_type_t2EE4pd_t4initEP11dnnl_engine]+0x2e0): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(nspc_batch_normalization.cpp.o): In function `dnnl::impl::cpu::nspc_batch_normalization_bwd_t<(dnnl_data_type_t)3>::pd_t::init(dnnl_engine*)':
nspc_batch_normalization.cpp:(.text._ZN4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE4pd_t4initEP11dnnl_engine[_ZN4dnnl4impl3cpu30nspc_batch_normalization_bwd_tIL16dnnl_data_type_t3EE4pd_t4initEP11dnnl_engine]+0x350): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::parallel(int, std::function<void (int, int)> const&) [clone ._omp_fn.0]':
ref_eltwise.cpp:(.text+0x1c): undefined reference to `omp_get_num_threads'
ref_eltwise.cpp:(.text+0x24): undefined reference to `omp_get_thread_num'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_fwd_t<(dnnl_data_type_t)3>::execute_forward_nCspBc_padded(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1e8): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1f1): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x201): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x214): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x29b): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x381): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x393): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t3EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x3f2): undefined reference to `GOMP_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_fwd_t<(dnnl_data_type_t)2>::execute_forward_nCspBc_padded(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1e8): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1f1): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x201): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x214): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x29b): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x381): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x393): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t2EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x3f2): undefined reference to `GOMP_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_fwd_t<(dnnl_data_type_t)4>::execute_forward_nCspBc_padded(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1e8): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1f1): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x201): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x214): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x29b): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x381): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x393): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t4EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x3f2): undefined reference to `GOMP_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_fwd_t<(dnnl_data_type_t)5>::execute_forward_nCspBc_padded(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1e8): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1f1): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x201): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x214): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x29b): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x381): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x393): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t5EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x3f2): undefined reference to `GOMP_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_fwd_t<(dnnl_data_type_t)6>::execute_forward_nCspBc_padded(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1e8): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x1f1): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x201): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x214): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x29b): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x381): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x393): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_fwd_tIL16dnnl_data_type_t6EE29execute_forward_nCspBc_paddedERKNS0_10exec_ctx_tE]+0x3f2): undefined reference to `GOMP_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_bwd_t<(dnnl_data_type_t)3>::execute_backward_dense(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x337): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x344): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x417): undefined reference to `GOMP_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x421): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t3EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x429): undefined reference to `omp_in_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_eltwise.cpp.o): In function `dnnl::impl::cpu::ref_eltwise_bwd_t<(dnnl_data_type_t)2>::execute_backward_dense(dnnl::impl::exec_ctx_t const&) const':
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x3aa): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x3b7): undefined reference to `omp_in_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x4ae): undefined reference to `GOMP_parallel'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x4c1): undefined reference to `omp_get_max_threads'
ref_eltwise.cpp:(.text._ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu17ref_eltwise_bwd_tIL16dnnl_data_type_t2EE22execute_backward_denseERKNS0_10exec_ctx_tE]+0x4c9): undefined reference to `omp_in_parallel'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o): In function `dnnl::impl::parallel(int, std::function<void (int, int)> const&) [clone ._omp_fn.0]':
simple_concat.cpp:(.text+0x1c): undefined reference to `omp_get_num_threads'
simple_concat.cpp:(.text+0x24): undefined reference to `omp_get_thread_num'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o): In function `dnnl::impl::cpu::simple_concat_t<(dnnl_data_type_t)3>::execute(dnnl::impl::exec_ctx_t const&) const':
simple_concat.cpp:(.text._ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t3EE7executeERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t3EE7executeERKNS0_10exec_ctx_tE]+0xd02): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o): In function `dnnl::impl::cpu::simple_concat_t<(dnnl_data_type_t)6>::execute(dnnl::impl::exec_ctx_t const&) const':
simple_concat.cpp:(.text._ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t6EE7executeERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t6EE7executeERKNS0_10exec_ctx_tE]+0xd02): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o): In function `dnnl::impl::cpu::simple_concat_t<(dnnl_data_type_t)5>::execute(dnnl::impl::exec_ctx_t const&) const':
simple_concat.cpp:(.text._ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t5EE7executeERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t5EE7executeERKNS0_10exec_ctx_tE]+0xd02): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o): In function `dnnl::impl::cpu::simple_concat_t<(dnnl_data_type_t)4>::execute(dnnl::impl::exec_ctx_t const&) const':
simple_concat.cpp:(.text._ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t4EE7executeERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t4EE7executeERKNS0_10exec_ctx_tE]+0xd02): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o): In function `dnnl::impl::cpu::simple_concat_t<(dnnl_data_type_t)2>::execute(dnnl::impl::exec_ctx_t const&) const':
simple_concat.cpp:(.text._ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t2EE7executeERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t2EE7executeERKNS0_10exec_ctx_tE]+0xd02): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(simple_concat.cpp.o):simple_concat.cpp:(.text._ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t1EE7executeERKNS0_10exec_ctx_tE[_ZNK4dnnl4impl3cpu15simple_concat_tIL16dnnl_data_type_t1EE7executeERKNS0_10exec_ctx_tE]+0xd02): more undefined references to `omp_get_max_threads' follow
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_gemm_f32.cpp.o): In function `dnnl::impl::parallel(int, std::function<void (int, int)> const&) [clone ._omp_fn.0]':
ref_gemm_f32.cpp:(.text+0x1c): undefined reference to `omp_get_num_threads'
ref_gemm_f32.cpp:(.text+0x24): undefined reference to `omp_get_thread_num'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_gemm_f32.cpp.o): In function `dnnl_status_t dnnl::impl::cpu::ref_gemm<float>(char const*, char const*, long const*, long const*, long const*, float const*, float const*, long const*, float const*, long const*, float const*, float*, long const*, float const*)':
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x120): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x3d5): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x4ef): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x4f8): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x508): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x51b): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x595): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x6d9): undefined reference to `GOMP_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x6e9): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x789): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x79c): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x848): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x8c1): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x8d3): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x931): undefined reference to `GOMP_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x981): undefined reference to `GOMP_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x991): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIfEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x9a4): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(ref_gemm_f32.cpp.o): In function `dnnl_status_t dnnl::impl::cpu::ref_gemm<double>(char const*, char const*, long const*, long const*, long const*, double const*, double const*, long const*, double const*, long const*, double const*, double*, long const*, double const*)':
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x126): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x3e1): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x4fb): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x504): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x514): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x527): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x5a1): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x6d9): undefined reference to `GOMP_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x6e9): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x789): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x79c): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x848): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x8c1): undefined reference to `omp_get_max_threads'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x8d3): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x931): undefined reference to `GOMP_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x981): undefined reference to `GOMP_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x991): undefined reference to `omp_in_parallel'
ref_gemm_f32.cpp:(.text._ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_[_ZN4dnnl4impl3cpu8ref_gemmIdEE13dnnl_status_tPKcS5_PKlS7_S7_PKT_SA_S7_SA_S7_SA_PS8_S7_SA_]+0x9a4): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libdnnl.a(cpu_batch_normalization_utils.cpp.o): In function `dnnl::impl::cpu::bnorm_utils::is_spatial_thr(dnnl::impl::batch_normalization_pd_t const*, bool, int, int)':
cpu_batch_normalization_utils.cpp:(.text+0x6e1): undefined reference to `omp_get_max_threads'
cpu_batch_normalization_utils.cpp:(.text+0x865): undefined reference to `omp_get_max_threads'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libasmjit.a(virtmem.cpp.o): In function `asmjit::_abi_1_9::VirtMem::allocDualMapping(asmjit::_abi_1_9::VirtMem::DualMapping*, unsigned long, asmjit::_abi_1_9::VirtMem::MemoryFlags)':
virtmem.cpp:(.text+0x582): undefined reference to `shm_unlink'
virtmem.cpp:(.text+0x60e): undefined reference to `shm_unlink'
/data/jhmeng/FlowTune/release/Aflter-Logical-Mapping/thirdparty/libtorch/lib64/libasmjit.a(virtmem.cpp.o): In function `asmjit::_abi_1_9::VirtMem::AnonymousMemory::open(bool)':
virtmem.cpp:(.text._ZN6asmjit8_abi_1_97VirtMem15AnonymousMemory4openEb[_ZN6asmjit8_abi_1_97VirtMem15AnonymousMemory4openEb]+0x12f): undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cada1033_alpha.dir/build.make:119: bin/cada1033_alpha] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cada1033_alpha.dir/all] Error 2
make: *** [Makefile:91: all] Error 2





### Minified repro

int main() {
    torch::Device device(torch::kCPU);
    if (torch::cuda::is_available()) {
        std::cout << "CUDA is available! Training on GPU." << std::endl;
        device = torch::Device(torch::kCUDA);
    }

    torch::nn::Linear model(torch::nn::LinearOptions(10, 5));

    model->to(device);
    torch::Tensor input = torch::randn({1, 10});

    input = input.to(device);

    torch::Tensor output = model->forward(input);

    std::cout << "Output: " << output << std::endl;

    return 0;
}

### Versions

Version: v2.0.0

cc @malfet @seemethere @ezyang @chauhang @penguinwu