Hello all, this is more of a bug report than a question.
I've noticed that finally since 14.4 (and maybe some driver versions before this), headless OpenCL finally works, under some specific circumstances.
Basically:
Conclusions: the situation is much improved from one or two years ago, but there are a few things that should be fixed. Particularly, the application segfaulting when not having device access is an absolute no-no, and ideally, when DISPLAY is set to a local forward, other access methods should be tried.
Keep up the good work.
Hi,
Thanks for the suggestion. Will pass this to the concerned team.
Hello. The problem is still there. For example the following code will segfault with X-forwarding over ssh:
#include <dlfcn.h>
int main() {
void *lib = dlopen("libOpenCL.so", RTLD_LAZY);
return 0;
}
=> segfault at ecf ip 00007f781fef038b sp 00007fffcca11cb0 error 4 in libamdocl64.so[7f781f9fe000+223f000]
The workaround for now is to unset DISPLAY variable, create OpenCL context and set it back.
Please, resolve this bug, and, if possible, remove dependency on X at all (aticonfig doesn't show temperature and other info on adapters without X).