[pocl] 04/18: fix more typos
Andreas Beckmann
anbe at moszumanska.debian.org
Thu Dec 14 01:54:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to annotated tag debian/0.14-1
in repository pocl.
commit 5691f35c6802483ba28fad8870e15484dd4fafe5
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Dec 10 05:22:00 2017 +0100
fix more typos
---
.../set-POCL_DEVICE_ADDRESS_BITS-before-use.patch | 4 +-
debian/patches/typos.patch | 144 ++++++++++++++++++++-
2 files changed, 144 insertions(+), 4 deletions(-)
diff --git a/debian/patches/set-POCL_DEVICE_ADDRESS_BITS-before-use.patch b/debian/patches/set-POCL_DEVICE_ADDRESS_BITS-before-use.patch
index caae3d5..658988c 100644
--- a/debian/patches/set-POCL_DEVICE_ADDRESS_BITS-before-use.patch
+++ b/debian/patches/set-POCL_DEVICE_ADDRESS_BITS-before-use.patch
@@ -11,7 +11,7 @@ Description: set POCL_DEVICE_ADDRESS_BITS before using it
+##########################################################
+
+# POCL_DEVICE_ADDRESS_BITS
-+# TODO rename to HOST addess bits
++# TODO rename to HOST address bits
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(POCL_DEVICE_ADDRESS_BITS 64)
+elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
@@ -28,7 +28,7 @@ Description: set POCL_DEVICE_ADDRESS_BITS before using it
##########################################################
-# POCL_DEVICE_ADDRESS_BITS
--# TODO rename to HOST addess bits
+-# TODO rename to HOST address bits
-if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(POCL_DEVICE_ADDRESS_BITS 64)
-elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
diff --git a/debian/patches/typos.patch b/debian/patches/typos.patch
index 12fcfbb..3f1b84a 100644
--- a/debian/patches/typos.patch
+++ b/debian/patches/typos.patch
@@ -3,7 +3,7 @@ Description: fix typos found by lintian
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -176,7 +176,7 @@ endif()
+@@ -223,7 +223,7 @@ endif()
######################################################################################
@@ -12,9 +12,45 @@ Description: fix typos found by lintian
# also, if DEFAULT_FEATURE_X is 0, prevents FEATURE_X being 1
# since it takes DEFAULT_FEATURE_X=0 to mean "FEATURE_X is unavailable"
macro(setup_cached_var VARNAME DESCRIPTION DOCS_FEATURE_IS_UNAVAILABLE DOCS_REQUESTED_DISABLING_FEATURE)
+@@ -298,7 +298,7 @@ if(NOT DEFINED DEFAULT_USE_VECMATHLIB)
+ endif()
+
+ setup_cached_var(USE_VECMATHLIB "Vecmathlib use"
+- "Requested enabling vecmathlib use, but either clang++ doesnt work or vecmathlib sources are missing.. -> disabling vecmathlib use"
++ "Requested enabling vecmathlib use, but either clang++ doesn't work or vecmathlib sources are missing.. -> disabling vecmathlib use"
+ "Vecmathlib is usable, but requested disabling it")
+
+ # vecmathlib does not compile with fp16 currently
+@@ -429,7 +429,7 @@ if(NOT DEFINED DEFAULT_ENABLE_ICD)
+
+ set(HAVE_OCL_ICD 1)
+ set(OPENCL_FOUND 1 CACHE INTERNAL "opencl ICD/library found")
+- set(OPENCL_LIBRARIES "OpenCL" CACHE INTERNAL "opencl ICD/library paths") # duh, why doesnt ocl-icd set this in .pc file ??
++ set(OPENCL_LIBRARIES "OpenCL" CACHE INTERNAL "opencl ICD/library paths") # duh, why doesn't ocl-icd set this in .pc file ??
+ set(DEFAULT_ENABLE_ICD 1 CACHE INTERNAL "ICD loader availability")
+ set(DEFAULT_DIRECT_LINKAGE 0 CACHE INTERNAL "direct linkage")
+ set(DEFAULT_TESTS_USE_ICD 1 CACHE INTERNAL "tests use ICD")
+@@ -837,7 +837,7 @@ endif()
+ ##########################################################
+
+ # POCL_DEVICE_ADDRESS_BITS
+-# TODO rename to HOST addess bits
++# TODO rename to HOST address bits
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(POCL_DEVICE_ADDRESS_BITS 64)
+ elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
+@@ -875,7 +875,7 @@ endif()
+ # libpocl.so should get only API additions as we are implementing a standard.
+ #
+ # The library version encodings into the library file name are platform
+-# dependant. Therefore we need to be a bit verbose here for the pocl.icd file
++# dependent. Therefore we need to be a bit verbose here for the pocl.icd file
+ # creation to succeed (see Makefile.am).
+ # Chiefly, GNU differs from BSD, and others are untested. See e.g.
+ # http://en.opensuse.org/openSUSE%3aShared_library_packaging_policy#Versioning_schemes
--- a/lib/CL/clBuildProgram.c
+++ b/lib/CL/clBuildProgram.c
-@@ -152,7 +152,7 @@ CL_API_SUFFIX__VERSION_1_0
+@@ -153,7 +153,7 @@ CL_API_SUFFIX__VERSION_1_0
}
else if (strstr (cl_parameters_not_yet_supported_by_clang, token))
{
@@ -23,3 +59,107 @@ Description: fix typos found by lintian
token = strtok_r (NULL, " ", &saveptr);
continue;
}
+--- a/lib/kernel/hsail64/hsail_templates.h
++++ b/lib/kernel/hsail64/hsail_templates.h
+@@ -224,7 +224,7 @@
+
+ /**********************************************************************/
+
+-// ldexp, doesnt work yet
++// ldexp, doesn't work yet
+
+ #define DEFINE_LLVM_INTRIN_V_VI_FP32_FP64(NAME, BUILTIN) \
+ IMPLEMENT_LLVM_INTRIN_V_VI_ALL(NAME, float, int, BUILTIN, .f32) \
+--- a/tests/runtime/test_clGetKernelArgInfo.c
++++ b/tests/runtime/test_clGetKernelArgInfo.c
+@@ -118,27 +118,27 @@ int test_program(cl_program program, int
+ err = clGetKernelArgInfo(test_kernel, 0, CL_KERNEL_ARG_TYPE_NAME,
+ BUF_LEN, &kernel_arg.string, &retsize);
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==6) && " arg type name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "char*", 6)==0) && " arg type name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==6) && " arg type name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "char*", 6)==0) && " arg type name of test_kernel doesn't compare");
+
+
+ err = clGetKernelArgInfo(test_kernel, 1, CL_KERNEL_ARG_TYPE_NAME,
+ BUF_LEN, &kernel_arg.string, &retsize);
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==7) && " arg type name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "float*", 7)==0) && " arg type name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==7) && " arg type name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "float*", 7)==0) && " arg type name of test_kernel doesn't compare");
+
+ err = clGetKernelArgInfo(test_kernel, 3, CL_KERNEL_ARG_TYPE_NAME,
+ BUF_LEN, &kernel_arg.string, &retsize);
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==6) && " arg type name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "float", 6)==0) && " arg type name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==6) && " arg type name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "float", 6)==0) && " arg type name of test_kernel doesn't compare");
+
+ err = clGetKernelArgInfo(test_kernel, 4, CL_KERNEL_ARG_TYPE_NAME,
+ BUF_LEN, &kernel_arg.string, &retsize);
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==5) && " arg type name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "int*", 5)==0) && " arg type name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==5) && " arg type name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "int*", 5)==0) && " arg type name of test_kernel doesn't compare");
+
+ /* TYPE QUALIFIER tests */
+ // constant char* msg, global volatile float* in, global float* out, const float j, local int* c
+@@ -172,8 +172,8 @@ int test_program(cl_program program, int
+ printf("arg name not available (this is normal for SPIR)\n");
+ } else {
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==4) && " arg name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "msg", 4)==0) && " arg name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==4) && " arg name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "msg", 4)==0) && " arg name of test_kernel doesn't compare");
+ }
+
+ err = clGetKernelArgInfo(test_kernel, 1, CL_KERNEL_ARG_NAME,
+@@ -182,8 +182,8 @@ int test_program(cl_program program, int
+ printf("arg name not available (this is normal for SPIR)\n");
+ } else {
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==3) && " arg name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "in", 3)==0) && " arg name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==3) && " arg name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "in", 3)==0) && " arg name of test_kernel doesn't compare");
+ }
+
+ err = clGetKernelArgInfo(test_kernel, 2, CL_KERNEL_ARG_NAME,
+@@ -192,8 +192,8 @@ int test_program(cl_program program, int
+ printf("arg name not available (this is normal for SPIR)\n");
+ } else {
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==4) && " arg name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "out", 4)==0) && " arg name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==4) && " arg name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "out", 4)==0) && " arg name of test_kernel doesn't compare");
+ }
+
+ err = clGetKernelArgInfo(test_kernel, 3, CL_KERNEL_ARG_NAME,
+@@ -202,8 +202,8 @@ int test_program(cl_program program, int
+ printf("arg name not available (this is normal for SPIR)\n");
+ } else {
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==2) && " arg name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "j", 2)==0) && " arg name of test_kernel doesnt compare");
++ TEST_ASSERT((retsize==2) && " arg name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "j", 2)==0) && " arg name of test_kernel doesn't compare");
+ }
+
+ /* ACCESS QUALIFIER tests for test_kernel2 */
+@@ -228,8 +228,8 @@ int test_program(cl_program program, int
+ err = clGetKernelArgInfo(test_kernel2, 0, CL_KERNEL_ARG_TYPE_NAME,
+ BUF_LEN, &kernel_arg.string, &retsize);
+ CHECK_OPENCL_ERROR_IN("clGetKernelArgInfo");
+- TEST_ASSERT((retsize==12) && " arg type name size of test_kernel doesnt fit");
+- TEST_ASSERT((strncmp(kernel_arg.string, "tasty_float", 12)==0) && " arg type name of test_kernel2 doesnt compare");
++ TEST_ASSERT((retsize==12) && " arg type name size of test_kernel doesn't fit");
++ TEST_ASSERT((strncmp(kernel_arg.string, "tasty_float", 12)==0) && " arg type name of test_kernel2 doesn't compare");
+
+ err = clReleaseKernel(test_kernel);
+ CHECK_OPENCL_ERROR_IN("clReleaseKernel");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git
More information about the Pkg-opencl-commits
mailing list