Cambridge-ICCS / FTorch

A library for directly calling PyTorch ML models from Fortran.
https://cambridge-iccs.github.io/FTorch/
MIT License
48 stars 11 forks source link

Fix build failures #117

Closed jwallwork23 closed 2 months ago

jwallwork23 commented 2 months ago

Closes #116.

These fixes worked for me locally, we should be able to track such issues once #115 has been addressed.

I gather we haven't set a line length, but it seems there are a few that have got too long for the GNU compiler to be happy with. I restrict the offending lines to 80 characters here but we should probably choose a number of characters and stick with it. (There are many other lines longer than 80.)

jwallwork23 commented 2 months ago

Oh damn, not sure how that happened, but it's almost certainly on me! Thanks for spotting and I am happy with this so will merge now.

I also should've tested your changes ran for me when I reviewed your PR.

Thanks!