OSError: /home/cs20d010/.local/lib/python3.10/site-packages/falkon/c_ext/_C.so: undefined symbol:

Elisha: <p>Traceback (most recent call last):<br>
File “/home/cs20d010/Elisha/PREF-SHAP/debug_train_model.py”, line 107, in <br>
c.train_model()<br>
File “/home/cs20d010/Elisha/PREF-SHAP/utils/utils.py”, line 375, in train_model<br>
results = self.SGD_krr_loop()<br>
File “/home/cs20d010/Elisha/PREF-SHAP/utils/utils.py”, line 352, in SGD_krr_loop<br>
best_model,best_tr,best_val,best_test = self.model(train_X, train_y, val_X, val_y, test_X, test_y, inp, 1e-5,self.m)<br>
File “/home/cs20d010/Elisha/PREF-SHAP/GPGP/KRR_model.py”, line 127, in SGD_KRR<br>
return train_krr(kernel,Xtrain,Ytrain,Xval,Yval,Xtest,Ytest,pen,m_fac)<br>
File “/home/cs20d010/Elisha/PREF-SHAP/GPGP/KRR_model.py”, line 97, in train_krr<br>
loss = model(Xtrain, Ytrain)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 1553, in _wrapped_call_impl<br>
return self._call_impl(*args, **kwargs)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/torch/nn/modules/module.py”, line 1562, in _call_impl<br>
return forward_call(*args, **kwargs)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/hopt/objectives/exact_objectives/new_compreg.py”, line 32, in forward<br>
L, A, AAT, LB, c = self._calc_intermediate(X, Y)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/hopt/objectives/exact_objectives/new_compreg.py”, line 56, in _calc_intermediate<br>
kmn = self.kernel(self.centers, X)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/kernels/kernel.py”, line 183, in <strong>call</strong><br>
return mm_impl(<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/mmv_ops/fmm.py”, line 712, in fmm<br>
return KernelMmFnFull.apply(kernel, opt, kwargs_m1, kwargs_m2, out, diag, X1, X2, *kernel.diff_params.values())<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/torch/autograd/function.py”, line 574, in apply<br>
return super().apply(*args, **kwargs)  # type: ignore[misc]<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/mmv_ops/fmm.py”, line 630, in forward<br>
out = KernelMmFnFull.run_gpu_gpu(X1, X2, out, kernel, comp_dtype, opt, False, kwargs_m1, kwargs_m2)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/mmv_ops/fmm.py”, line 534, in run_gpu_gpu<br>
gpu_info = _get_gpu_info(options, slack=options.memory_slack)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/mmv_ops/utils.py”, line 50, in _get_gpu_info<br>
gpu_info = [v for k, v in devices.get_device_info(opt).items() if v.isGPU]<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/utils/devices.py”, line 192, in get_device_info<br>
__COMP_DATA = _get_gpu_device_info(opt, g, __COMP_DATA)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/utils/devices.py”, line 84, in _get_gpu_device_info<br>
mem_free, mem_total = mem_get_info(g)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/c_ext/<strong>init</strong>.py”, line 15, in call_cuda<br>
from ._backend import _assert_has_ext<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/falkon/c_ext/_backend.py”, line 86, in <br>
torch.ops.load_library(lib_path)<br>
File “/home/cs20d010/.local/lib/python3.10/site-packages/torch/_ops.py”, line 1295, in load_library<br>
ctypes.CDLL(path)<br>
File “/usr/lib/python3.10/ctypes/<strong>init</strong>.py”, line 374, in <strong>init</strong><br>
self._handle = _dlopen(self._name, mode)<br>
OSError: /home/cs20d010/.local/lib/python3.10/site-packages/falkon/c_ext/_C.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE</p>

ptrblck: <p>I don’t know what <code>falkon</code> is but these types or errors are usually raised if your libraries are not compatible with each other, i.e. in this case probably <code>falkon</code> and <code>torch</code>.</p>