argonne-lcf / THAPI

A tracing infrastructure for heterogeneous computing applications.
Other
22 stars 9 forks source link

Unable to Install #5

Closed sushma-4 closed 2 years ago

sushma-4 commented 2 years ago

I have installed all the dependencies and was tying to $make after configure and encountered this:

make[1]: Entering directory '/home/demo/THAPI/utils'
make  all-am
make[2]: Entering directory '/home/demo/THAPI/utils'
make[2]: Leaving directory '/home/demo/THAPI/utils'
make[1]: Leaving directory '/home/demo/THAPI/utils'
Making all in opencl
make[1]: Entering directory '/home/demo/THAPI/opencl'
SRC_DIR=. ruby ./gen_opencl_probes.rb > opencl_tracepoints.tp
Traceback (most recent call last):
    4: from ./gen_opencl_probes.rb:1:in `<main>'
    3: from ./gen_opencl_probes.rb:1:in `require_relative'
    2: from /home/demo/THAPI/opencl/opencl_model.rb:1:in `<top (required)>'
    1: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- nokogiri (LoadError)
make[1]: *** [Makefile:1635: opencl_tracepoints.tp] Error 1
make[1]: *** Deleting file 'opencl_tracepoints.tp'
make[1]: Leaving directory '/home/demo/THAPI/opencl'
make: *** [Makefile:404: all-recursive] Error 1
Kerilk commented 2 years ago

It seems you are missing some ruby gems:

Ruby Gems:

    cast-to-yaml
    nokogiri
    babeltrace
gem install --user-install cast-to-yaml nokogiri babeltrace
Kerilk commented 2 years ago

We will be adding additional check in the configure to catch those earlier. If you are installing from master, the branch is quite outdated, and you may want to checkout modularize_merge that will shortly become the new release.

If you want to profile level zero code, you may need a patched version of babeltrace2, see the babeltrace2 spack package here for the patches and other details: https://github.com/Kerilk/spack/tree/develop/var/spack/repos/builtin/packages/babeltrace2 Don't hesitate if you need more help installing THAPI, I'll be glad to help.

Kerilk commented 2 years ago

I updated the configure to fail if the required ruby extension are not found. I also updated the README.md to include the requirement on a patched babeltrace2. Thanks for reporting your issue.

sushma-4 commented 2 years ago

Thank you, seems like the issue is with gem install I was trying to get the missing dependencies, and keeps failing with

ERROR:  While executing gem ... (Gem::Exception)
    OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources

Tried everything to install and rebuild with ssl but still fails. I've raised an issue with Ruby as well. Waiting for their reply.

sushma-4 commented 2 years ago

I just pulled and my configure still passes, make fails

Kerilk commented 2 years ago

Have you pulled master or the modularize_merge branch? I have not updated master, as it is completely out of date. You may need to rerun autogen.sh first.

ERROR: While executing gem ... (Gem::Exception) OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources

I think an outdated system libOpenSSL could cause the issue.

You can get around this by downloading the gems manually and specifying the files during install, but the dependencies would be painful to track. Another option is to install the gems in another machine with a working ruby install, and you should be able to find the required gems and their dependencies in the ~/.gem/ruby/2.7.0/cache folder (adjust your version number accordingly). Just copy them on the target machine and gem install --user-install --local *.gem This will bypass internet access.

TApplencourt commented 2 years ago

Brice wrote a nice spack package. Maybe it will simplify stuff for you: https://github.com/argonne-lcf/THAPI-spack

TApplencourt commented 2 years ago

Closed due to inactivity. Please reopen if the spack package doesn't work for you