Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix `cond` macro, usable now\n" }, { "from": "human", "value": ";; @file macros.cl\n;;\n;; @breif Examples using macros\n;;\n\n; `progn` implementation with lambda function\n(defmacro progn1 (&rest body)\n `(funcall (lambda () ,@body)))\n; `when` macro\n(defmacro w...
opencl
chosen
[ { "from": "system", "value": "Test 'long's only if target has them.\n" }, { "from": "human", "value": "kernel \nvoid test_convert_sat_regression() {\n volatile long2 input = (long2)(0, 1);\n uint2 res = convert_uint2_sat(input);\n if (res[0] != 0 || res[1] != 1) {\n printf(\"expe...
opencl
chosen
[ { "from": "system", "value": "Use transparent white as default color in heatmap renderer\n" }, { "from": "human", "value": "__constant sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;\n\n__kernel void renderToTexture(\n __global float* inputTensor,...
opencl
chosen
[ { "from": "system", "value": "Fix a lit test issue exposed by r290056\n\nThe test requests a target which supports cl_khr_gl_msaa_sharing since in test/PCH/ocl_types.h\nit tries to enable cl_khr_gl_msaa_sharing. Therefore this test fails on targets not supporting\ncl_khr_gl_msaa_sharing, e.g. ppc64, etc.\n\...
opencl
chosen
[ { "from": "system", "value": "Fix tests/fmin_fmax_fma - was accessing vector elements with []\n" }, { "from": "human", "value": "kernel \nvoid test_fmin_fmax_fma() {\n volatile float2 a = (float2)(-1.0f, -2.2f);\n volatile float2 b = (float2)(-3.1f, fma(a[0], -4.2f, a[1]));\n float2 max...
opencl
chosen
[ { "from": "system", "value": "Install a few basic packages on FreeBSD\n" }, { "from": "human", "value": "#!/usr/bin/env sbcl\n\n(require :asdf)\n\n(defconstant *freebsd-type* \"FreeBSD\")\n\n;-- MAIN\n\n(format t \"Hello World!~%\")\n\n" }, { "from": "gpt", "value": "#!/usr/bin/env s...
opencl
chosen
[ { "from": "system", "value": "Fix the sizeof test for __EMBEDDED_PROFILE__. In this mode the 64-bit long ints might not be available and Clang produced a warning (tested on my Pentium4)." }, { "from": "human", "value": "kernel void test_sizeof() {\n printf(\"sizeof(uint) == %lu\\n\", sizeof(u...
opencl
chosen
[ { "from": "system", "value": "Make sure the startIdx is set before setting endIdx\n" }, { "from": "human", "value": "/*\n* Multiply a vector by a sparse matrix and get the resultant\n* vector.\n* The global # of work items will be equal to the number rows in the\n* sparse matrix, which is assume...
opencl
chosen
[ { "from": "system", "value": "Revert \"Mark test as unsupported until r315808 is fixed\"\n\nTest is fixed in r315830\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@315831 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// REQUIRES: amdgpu-registered-target\n// ...
opencl
chosen
[ { "from": "system", "value": "Update test without inbuilt `readFile` and `writeFile` methods\n\n- Prepare for complete removal of the methods from core\n" }, { "from": "human", "value": "include node-core\nmain = do\n data <- readFile process.argv[2]\n writeFile process.argv[3] data\n" }, ...
opencl
chosen
[ { "from": "system", "value": "Fix the test case. Now it does not depend on the method used to pass vector arguments to the function.\nReviewed by Anton Lokhmotov.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@161597 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value...
opencl
chosen
[ { "from": "system", "value": "Modify test for 32 and 64 bit.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@129627 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 %s -emit-llvm -o %t\n\ntypedef __attribute__((ext_vector_type(8))) unsigned ch...
opencl
chosen
[ { "from": "system", "value": "Revert r229409: \"Hack to try deleting file from build bots\"\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@229411 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: rm %S/cl-strict-aliasing.ll\n// RUN: %clang_cc1 -x cl -emit-l...
opencl
chosen
[ { "from": "system", "value": "Add -no-canonical-prefixes to allow different build modes.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@325236 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang -### -target amdgcn-- -mcpu=gfx803 %s 2>&1 | FileCheck %s...
opencl
chosen
[ { "from": "system", "value": "BUGFIX: Fix indexed reductions with complex types in OpenCL backend\n" }, { "from": "human", "value": "/*******************************************************\n * Copyright (c) 2014, ArrayFire\n * All rights reserved.\n *\n * This file is distributed under 3-clause...
opencl
chosen
[ { "from": "system", "value": "Reformat the CL example a bit and clean up\n" }, { "from": "human", "value": "; I tested this code with GNU CLISP 2.49 running on x64 Ubuntu.\n;\n; $ clisp multi.cl\n;\n; Eli Bendersky [http://eli.thegreenplace.net]\n; This code is in the public domain.\n(defclass S...
opencl
chosen
[ { "from": "system", "value": "Fix a false positive (test passed, but for the wrong reason)\n" }, { "from": "human", "value": "extern void externFunc(global float *a); \r\n\r\nkernel void externFunction(global float *a) \r\n{\r\n a[0] = externFunc(a);\r\n}\r\n" }, { "from": "gpt", "v...
opencl
chosen
[ { "from": "system", "value": "Interpolate x,y coordinates to test kernel output\n" }, { "from": "human", "value": "// Global parameters that will be set via a template during compilation time.\n__constant unsigned int frameW = 512;\n__constant unsigned int frameH = 512;\n__constant float texelSt...
opencl
chosen
[ { "from": "system", "value": "Add output file to successful tests\n" }, { "from": "human", "value": "// Valid combinations\n// RUN: clspv %s -pod-pushconstant -global-offset 2>&1\n// RUN: clspv %s -pod-ubo -global-offset-push-constant 2>&1\n// RUN: clspv %s -pod-ubo -cl-std=CL2.0 -inline-entry-p...
opencl
chosen
[ { "from": "system", "value": "Correct printf usage in test case\n" }, { "from": "human", "value": "kernel void test_kernel() {\n printf(\"global: %zd-%zd-%zd\\n\",\n get_global_id(0),\n get_global_id(1),\n get_global_id(2));\n printf(\"local: %zd-%zd-%zd\\n\",\n ...
opencl
chosen
[ { "from": "human", "value": "Add missing test source file" }, { "from": "gpt", "value": "void output(float (^op)(float))\n{\n printf(\"op(1)=%f\\n\", op(1.0f));\n}\n\nkernel void test_block()\n{\n // Two simple tests\n float (^add1)(float) = ^(float x) { return x + 1.0f; };\n float (^mul2)(f...
opencl
chosen
[ { "from": "human", "value": "[OpenCL] Add test for program scope variable restrictions in OpenCL v2.0\n\nhttp://reviews.llvm.org/D13105\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@250892 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 %s -...
opencl
chosen
[ { "from": "human", "value": "[OpenCL] Add the lit test for image size which was omitted by r277647.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@277756 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn--amdhsa %s ...
opencl
chosen
README.md exists but content is empty.
Downloads last month
7