Skip to content

SegFault when compiled on hpc cluster #112

@jacksonross1024

Description

@jacksonross1024

Compilation following the manual completes normally in an hpc module-type environment, then tests/examples give segfault errors. Bug tracked to parameter set() function; implicit type change from Literal[] to float[] fails, and tuple assignment of Literals avoids type classification, giving segfault when trying to assign the tuple.

This occurs even for the default function found in mumaxplus/parameter.py > line 211 and 213.

Work around: change line 211 "self._impl.set(0)" -> "self._impl.set(0.0)"
and line 213 "self._impl.set((0, 0, 0))" -> "self._impl.set((0.0, 0.0, 0.0))"

        avoid Literal[] values for any parameter set(). 

Suscpected issue: since it works fine on laptop, and conda install uses the environment.yml, issue is suspected to be the gcc version loaded on the module cluster (our version: 12.3.0), nvcc --version: V12.4.131

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions