Such as the title: Run opencl program in cuda9, nvidia driver version 384.81 of the environment, returned -1001 error in clGetPlatformIDs () function.
Environmental replace cuda 10, driver version 410.104, operating normally.
Error reason is unknown, direct replacement of the environment to solve this problem.