Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return value of function not defined lr_decay #22

Closed
nedtaylor opened this issue Apr 16, 2024 · 2 comments
Closed

Return value of function not defined lr_decay #22

nedtaylor opened this issue Apr 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working support Support for different operating systems, compilers, and architectures

Comments

@nedtaylor
Copy link
Owner

nedtaylor commented Apr 16, 2024

Related to #21, warning when compiling with ifx.

ifx 2023.2.0 20230721

Warning does not occur in compilation of mod_lr_decay.f90. Warning only arises when a module or program uses the learning_rate_decay module (found in file mod_lr_decay.f90).

(base) [ntt203@phy-cdt16 build]$ make
[  0%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_constants.f90.o
...
[ 31%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_input4d_layer.f90.o
[ 32%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_lr_decay.f90.o
[ 33%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_maxpool2d_layer.f90.o
...
[ 37%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_optimiser.f90.o
/tmp/ifx16713391811BbRBG/ifxItJuj9.i90: warning #6178: The return value of this FUNCTION has not been defined.   [LR_DECAY]
[ 37%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_network.f90.o
...
[ 40%] Building Fortran object CMakeFiles/athena.dir/src/athena.f90.o
/tmp/ifx0214165105ctfpsh/ifx9j5FEk.i90: warning #6178: The return value of this FUNCTION has not been defined.   [LR_DECAY]
[ 41%] Building Fortran object CMakeFiles/athena.dir/src/lib/mod_base_layer_sub.f90.o
...
[ 44%] Linking Fortran static library libathena.a
[ 44%] Built target athena
@nedtaylor nedtaylor added the bug Something isn't working label Apr 16, 2024
@nedtaylor nedtaylor self-assigned this Apr 16, 2024
@nedtaylor nedtaylor added the support Support for different operating systems, compilers, and architectures label Apr 16, 2024
@nedtaylor
Copy link
Owner Author

This seems to have no effect on the unit tests. The code seems to work fine. They are warnings and not compilation errors.

The odd thing is that, from what I can see, the file format is identical to that of the layer_setup() functions found in all the layer modules.

@nedtaylor
Copy link
Owner Author

This appears to be a compiler issue, not a code issue. This won't be fixed by me then (unless new information comes to light).

https://fortran-lang.discourse.group/t/the-return-value-of-this-function-has-not-been-defined/7858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support Support for different operating systems, compilers, and architectures
Projects
None yet
Development

No branches or pull requests

1 participant