opencl : restore QK_K=256 define

This commit is contained in:
Georgi Gerganov 2024-05-22 22:16:34 +03:00
parent 7fd26bd802
commit a8dd83b5d8
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -926,7 +926,7 @@ static cl_program build_program_from_source(cl_context ctx, cl_device_id dev, co
std::string compile_opts = "-cl-mad-enable -cl-unsafe-math-optimizations -cl-finite-math-only -cl-fast-relaxed-math "
"-DQK4_0=32 -DQR4_0=2 -DQK4_1=32 -DQR4_1=2 -DQK5_0=32 -DQR5_0=2 -DQK5_1=32 -DQR5_1=2 -DQK8_0=32 -DQR8_0=1 "
"-DK_QUANTS_PER_ITERATION=" + std::to_string(K_QUANTS_PER_ITERATION);
"-DQK_K=256 -DK_QUANTS_PER_ITERATION=" + std::to_string(K_QUANTS_PER_ITERATION);
err = clBuildProgram(p, 0, NULL, compile_opts.c_str(), NULL, NULL);
if(err < 0) {