CrayLabs / SmartSim-workshops

Material used during workshops
GNU General Public License v3.0
1 stars 0 forks source link

Could not find SMARTREDIS_FORTRAN_LIBRARY #5

Open SachinBM-CE opened 1 month ago

SachinBM-CE commented 1 month ago

I am trying to clone the following repo - https://github.com/CrayLabs/SmartSim-workshops.git

But following the readme file to build the Fortran project, I am facing the following issue when cmake was executed:

CMake Error at CMakeLists.txt:16 (find_library): Could not find SMARTREDIS_FORTRAN_LIBRARY using the following names: smartredis-fortran

Also link to the previously solved issue: https://github.com/CrayLabs/SmartRedis/issues/433

I request your help in overcoming the above error.

ashao commented 1 month ago

Thanks for the question @SachinBM-CE. My best guess as to what's going on is that either:

  1. You do not have the SmartRedis libraries built
  2. You do not have the SMARTREDIS_INSTALL_PATH pointing to the correct location.

I recall that in your previous post that you were limited to SmartRedis 0.2.0. Are you able to use the most recent version of SmartRedis now? If so, then to correct this problem all you would need to do is the following:

git clone https://github.com/CrayLabs/SmartRedis.git
cd SmartRedis
make lib-with-fortran
export SMARTREDIS_INSTALL_PATH=$PWD/install
export LD_LIBRARY_PATH=$SMARTREDIS_INSTALL_PATH/install/lib:$LD_LIBRARY_PATH

Unfortunately if you're stuck with 0.2.0, the solution is not quite as simple because the build of the Fortran clients was not as a clean as it is today. Please let us know if you need help upgrading from 0.2.0

SachinBM-CE commented 1 month ago

Thanks @ashao !! smartsim-fortran is now in place and no more the error.
I thought of keeping both versions - 0.2.0 and the new one in different directories as follows: The old version is at "SmartRedis" directory and the new one at "smartredis" (git clone https://github.com/CrayLabs/SmartRedis.git smartredis). Hope this works out without affecting the ML code which is dependent on the older version (https://github.com/flexi-framework/relexi).