Skip to content

[BUG]: float/MathF.CopySign argument order is swapped when using GPU #1361

@Laksen

Description

@Laksen

Describe the bug

CopySign argument order is swapped when compiling for Nvidia GPU. It works fine when compiling for CPU

Environment

  • ILGPU version: 1.5.3
  • .NET version: .NET 9
  • Operating system: Linux
  • Hardware (if GPU-related): NVIDIA GeForce GTX 1080

Steps to reproduce

Write a kernel with float.CopySign with non-constant arguments

Expected behavior

CopySign(x, -1) should return -x

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions