CUDA 10 cudaMemcpyToSymbol not working

Hello.

I upgrated from CUDA 8 to 10 and find out function cudaMemcpyToSymbol does not work.
Other function from Cuda api seems to work so far.

Here is sample code(simplified from my usage):

// includes here

constant float constData[20];

int main()
{
float data[256];
checkCudaErrors(cudaMemcpyToSymbol(constData, data, sizeof(data)));
return 0;
}

During runtime it throws error: 13(cudaErrorInvalidSymbol).

My GPU is 1050.
Drivers 416.34, most actual.

I do not know if it is a bug or something is wrong on my side.

checkCudaErrors(cudaMemcpyToSymbol(constData, &data, sizeof(data)));

Data is already a pointer.

I get the same error when using cudaGetSymbolAddress(void ** pointer, constData)

Then it must be that [256] is bigger than [20]