mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Use highest OpenCL C version (#1081)
* Set the highest supported OpenCL C version. * Remove gDeviceLt20 variable - not used anymore. * Fix formatting issues
This commit is contained in:
committed by
GitHub
parent
f02cbad2e3
commit
2597027737
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Copyright (c) 2017 The Khronos Group Inc.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@@ -218,9 +218,8 @@ int test_pipe_max_args(cl_device_id deviceID, cl_context context, cl_command_que
|
||||
const char *sources[] = { kernel_source.c_str() };
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(
|
||||
context, &program, &kernel[0], 1, sources, kernelName[0],
|
||||
"-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(context, &program, &kernel[0], 1, sources,
|
||||
kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
//Create consumer kernel
|
||||
@@ -368,9 +367,8 @@ int test_pipe_max_packet_size(cl_device_id deviceID, cl_context context, cl_comm
|
||||
const char *sources[] = { kernel_source.c_str() };
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(
|
||||
context, &program, &kernel[0], 1, sources, kernelName[0],
|
||||
"-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(context, &program, &kernel[0], 1, sources,
|
||||
kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
//Create consumer kernel
|
||||
@@ -533,9 +531,8 @@ int test_pipe_max_active_reservations(cl_device_id deviceID, cl_context context,
|
||||
const char *sources[] = { kernel_source.c_str() };
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(
|
||||
context, &program, &kernel[0], 1, sources, kernelName[0],
|
||||
"-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(context, &program, &kernel[0], 1, sources,
|
||||
kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
// Create consumer kernel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Copyright (c) 2017 The Khronos Group Inc.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@@ -140,7 +140,9 @@ int test_pipe_query_functions(cl_device_id deviceID, cl_context context, cl_comm
|
||||
test_error_ret(err, " clCreatePipe failed", -1);
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(context, &program, &kernel[0], 1, (const char**)&pipe_query_functions_kernel_code, kernelName[0], "-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(
|
||||
context, &program, &kernel[0], 1,
|
||||
(const char **)&pipe_query_functions_kernel_code, kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
//Create consumer kernel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Copyright (c) 2017 The Khronos Group Inc.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@@ -531,9 +531,8 @@ int test_pipe_readwrite( cl_device_id deviceID, cl_context context, cl_command_q
|
||||
std::string kernel_source = sourceCode[i].str();
|
||||
const char *sources[] = { kernel_source.c_str() };
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(
|
||||
context, &program[i], &kernel[ii], 1, sources, kernelName[ii],
|
||||
"-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(context, &program[i], &kernel[ii], 1,
|
||||
sources, kernelName[ii]);
|
||||
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
@@ -659,7 +658,8 @@ int test_pipe_readwrite_struct_generic( cl_device_id deviceID, cl_context contex
|
||||
test_error_ret(err, " clCreatePipe failed", -1);
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(context, &program, &kernel[0], 1, &kernelCode, kernelName[0], "-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(context, &program, &kernel[0], 1,
|
||||
&kernelCode, kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
//Create consumer kernel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Copyright (c) 2017 The Khronos Group Inc.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@@ -115,7 +115,9 @@ int test_pipe_readwrite_errors(cl_device_id deviceID, cl_context context, cl_com
|
||||
test_error_ret(err, " clCreatePipe failed", -1);
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(context, &program, &kernel[0], 1, (const char**)&pipe_readwrite_errors_kernel_code, kernelName[0], "-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(
|
||||
context, &program, &kernel[0], 1,
|
||||
(const char **)&pipe_readwrite_errors_kernel_code, kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
//Create consumer kernel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Copyright (c) 2017 The Khronos Group Inc.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@@ -146,7 +146,9 @@ int test_pipe_subgroups_divergence(cl_device_id deviceID, cl_context context, cl
|
||||
test_error_ret(err, " clCreatePipe failed", -1);
|
||||
|
||||
// Create producer kernel
|
||||
err = create_single_kernel_helper_with_build_options(context, &program, &kernel[0], 1, (const char**)&pipe_subgroups_kernel_code, kernelName[0], "-cl-std=CL2.0");
|
||||
err = create_single_kernel_helper(
|
||||
context, &program, &kernel[0], 1,
|
||||
(const char **)&pipe_subgroups_kernel_code, kernelName[0]);
|
||||
test_error_ret(err, " Error creating program", -1);
|
||||
|
||||
//Create consumer kernel
|
||||
|
||||
Reference in New Issue
Block a user