Skip to content

Commit b8dd24d

Browse files
authored
[OCL] Use OpenCL 2.0 while compiling kernels (#2691)
1 parent 24e64f3 commit b8dd24d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hipoc/hipoc_program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void HIPOCProgramImpl::BuildCodeObjectInFile(std::string& params,
260260
WriteFile(src, dir->path / filename);
261261
params += " -target amdgcn-amd-amdhsa -x cl -D__AMD__=1 -O3";
262262
params += " -cl-kernel-arg-info -cl-denorms-are-zero";
263-
params += " -cl-std=CL1.2 -mllvm -amdgpu-early-inline-all";
263+
params += " -cl-std=CL2.0 -mllvm -amdgpu-early-inline-all";
264264
params += " -mllvm -amdgpu-internalize-symbols ";
265265
params += " " + filename + " -o " + hsaco_file.string();
266266
dir->Execute(HIP_OC_COMPILER, params);

src/ocl/clhelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ ClProgramPtr LoadProgram(cl_context ctx,
210210
params += OclKernelWarningsString();
211211
#endif
212212
#endif
213-
params += " -cl-std=CL1.2";
213+
params += " -cl-std=CL2.0";
214214
MIOPEN_LOG_I2("Building OpenCL program: '" << program_name << "', options: '" << params);
215215
BuildProgram(result.get(), device, params);
216216
return result;

0 commit comments

Comments
 (0)