Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B beignet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • beignet
  • beignet
  • Issues
  • #4
Closed
Open
Created Aug 08, 2017 by Bugzilla Migration User@bugzilla-migration

Ternary operator not executing

Submitted by Chris Cummins

Assigned to Zhigang Gong @gongzg

Link to original bug (#102118)

Description

Created attachment 133380 Test case

Hi,

I'm having trouble where kernels containing ternary assignments compute the wrong result. I've attached a minimal example, where the kernel is:

__kernel void A(__global int* a, __global int* b, __global int* c) { c[0] = 100; c[1] = (a[3] <= b[4]) ? a[4] : b[5]; } // Expected output: c[0] = 100, c[1] = 5 // Actual output: c[0] = 1, c[1] = 2

Device: Intel(R) HD Graphics Haswell GT2 Desktop Beignet version: 1.3

Cheers, Chris

Attachment 133380, "Test case":
ternary.c

Assignee
Assign to
Time tracking