Skip to content

panic: CURAND_STATUS_LENGTH_NOT_MULTIPLE issue when grid size odd and temperature finite #314

@alexanderwelbourne

Description

@alexanderwelbourne

The engine throws a hard to dechiper error when the grid size doesn't have small prime factors. In our case using:
SetGridsize(625, 625, 1)
returned,
panic: CURAND_STATUS_LENGTH_NOT_MULTIPLE

I believe this is related to 625 only having 5 as a prime factor. Changing to, for example, 650 fixed the panic. I'm aware that using small prime factors is always going to be better for performance anyway, but perhaps there might be a better way to catch this error and report to the user what the should change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions