Skip to content

Build fails with FTorch checked out #3214

@samsrabin

Description

@samsrabin

Brief summary of bug

The CTSM build fails if FTorch is checked out.

General bug information

CTSM version you are using: ctsm5.3.051

Does this bug cause significantly incorrect results in the model's science? No

Configurations affected: All

Details of bug

There's this in libraries/FTorch/buildlib:

torch_dir = case.get_value("TORCH_DIR")
torch_library = os.path.join(torch_dir, "lib", "libtorch_cpu.so")

ctsm5.3.051 brought this in (#3125), but didn't bring in the CMEPS update that introduced TORCH_DIR. The above code thus fails in os.path.join.

ctsm5.3.051 brought in cmeps1.0.48, which based on the "cmeps1.0.47" in the title of the CMEPS PR bringing in FTorch should have been enough. However, that PR actually came in on cmeps1.0.51.

Important details of your setup / configuration so we can reproduce the bug

Do bin/git-fleximod update -o and try to build the model. Tested with SMS_D.f10_f10_mg37.I2000Clm60BgcCrop.izumi_nag.clm-crop.

Important output or errors that show the problem

From bld/FTorch.bldlog:

expected str, bytes or os.PathLike object, not NoneType

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething is working incorrectly

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions