+
Skip to content

should we not use cuda::std in CPU cdevice code? #419

@ichinii

Description

@ichinii

currently:

  • we use cuda::std::complex throughout the code, when compiling with CUDA.
  • we use std::complex throughout the code, when NOT compiling with CUDA.

Q: what if we used cuda::std::complex only in CUDA device code?

  • all parts of the shader using complex would need to be template specialized for CPU and CUDA
  • conversion between std::complex and cuda::std::complex would have to take place on transfers from/to device
  • rayx-core library object would have the same API, regardless of CUDA enabled or disabled. probably makes rayx-python easier.

NOTE: there is more:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-coreArea: The core library (rayx-core)C-bugCategory: Something isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载