alexeedm / pytorch-fortran

Pytorch bindings for Fortran
MIT License
85 stars 12 forks source link

failed to build gnu target #5

Closed hwdef closed 1 year ago

hwdef commented 1 year ago

step:

  1. cd container
  2. python container.py gnu --pytorch-tag 1.13.1-cuda11.6-cudnn8-devel
  3. docker build -t pytorch-fortran:v1.13.1-devel .
  4. docker run --name pytorch-fortran -d pytorch-fortran:v1.13.1-devel sleep 1000000
  5. docker exec -it pytorch-fortran bash
  6. apt update -y && apt install git -y
  7. git clone https://github.com/alexeedm/pytorch-fortran.git
  8. cd pytorch-fortran
  9. ./make_gnu.sh

result

image

Did I do something wrong? I can't successfully run make_gnu.sh script as prompted in README.md

ch21d012 commented 1 year ago

you have to add word target :: value in torch_ftn.f90 file in line 1842,1849,1856,1863

hwdef commented 1 year ago

you have to add word target :: value in torch_ftn.f90 file in line 1842,1849,1856,1863

Thanks for your replay, I will try this.

alexeedm commented 1 year ago

Thanks for letting me know, I'll double-check and fix this

alexeedm commented 1 year ago

Fixed with 64d9aedbd739040f710512b9c5ae05b4828a5d05