Skip to content

Weird lexer warning for high-res initial condition generation #61

@GeorgKohl

Description

@GeorgKohl

When installing exponax 0.1.0 via pip:

conda create -n exponax_test python=3.12
conda activate exponax_test
pip install -U "jax[cuda12]"
pip install exponax

Running the following IC generation code leads to a weird lexer warning.

import exponax as ex
import jax

ic_gen = ex.ic.GaussianRandomField(1)
u_init = ic_gen(382, key=jax.random.PRNGKey(0))

The warning looks like this, and also happens with other dimensions, other seeds, or other IC generators. Weirdly, it only happens at resolutions of 382 and above.

E1030 11:07:37.505142  517404 hlo_lexer.cc:443] Failed to parse int literal: 236056074258838375840

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions