Wednesday 19 July 2023

pytorch の続き

pytorch は諦めて、cmakeの debug build したんですが、

  python3 が debug build な *.so を呼んでくれない

LD_LIBRARY_PATH を無視するって極悪でしょ。どうも、

  内部で指定しているらしい

sys.path を指定するくらいではだめ。どういうことなの? さすが、

  くそ Python

ってところですけどね。変なことするなよ。

  # go into the build folder
  cd build
  # compile main.cpp file
  cmake ..
  # build it
  make
  # run the built file
  ./debugfunc

えぇ、なにそれ。

No comments: