certik / fastGPT

Fast GPT-2 inference written in Fortran
MIT License
180 stars 16 forks source link

Does not build with lfortran-0.33.1 #68

Open junghans opened 7 months ago

junghans commented 7 months ago
cmake --build build
[  6%] Building Fortran object CMakeFiles/fastgpt.dir/tokenizer.f90.o
[ 12%] Building Fortran object CMakeFiles/fastgpt.dir/gpt2.f90.o
[ 18%] Building Fortran object CMakeFiles/fastgpt.dir/omp_dummy.f90.o
[ 25%] Building Fortran object CMakeFiles/fastgpt.dir/driver.f90.o
semantic error: Namelists not implemented yet
  --> /home/christoph/computing/fastGPT/driver.f90:20:1
   |
20 | namelist / input_fastGPT / n_tokens_to_generate
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 

Note: Please report unclear or confusing messages as bugs at
https://github.com/lfortran/lfortran/issues.
gmake[2]: *** [CMakeFiles/fastgpt.dir/build.make:101: CMakeFiles/fastgpt.dir/driver.f90.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:93: CMakeFiles/fastgpt.dir/all] Error 2
gmake: *** [Makefile:101: all] Error 2
certik commented 7 months ago

I think you have to comment out the name list. Here are the exact steps: https://github.com/certik/fastGPT/pull/67/files