i have instaled appml math library.
i had manually changed the LD_LIBRARY_PATH (IT WAS PERFECT) in the /etc/profile and export(ed) it but still on executing the examples the error libclAmdBlas.so.1 not found.
then i ran the script appmlEnv.sh and the scripts started executing.
i read the .sh file and i did the steps which i had already previously done manually.
i just wondering is the .sh script doing something different that i am missing ??
attached a small file of the /etc/profile changes i made.
as a matter of fact the .appmlEnv.sh(provided) script works only for the current terminal.and i have to execute it every time i try to run the examples.
i have not compiled the c files given in the samples just using the ones directly in bin64.
i read the cmdblas readme and used cc make to compile the c code sucessfully.
however the error:
/opt/clAmdBlas-1.10.321/samples1>$ ./example_sgemm./example_sgemm: error while loading shared libraries: libclAmdBlas.so.1: cannot open shared object file: No such file or directory
solved as usual by running appmlenv.sh and exits only for present terminal session.
what am i missing what have i done wrong?
Looks like you are finally able to compile the library within a shell. To setup blas library's variable system-wide, check:
Another solution maybe to put the appmlEnv.sh inside /etc/profile.d/.
To see the kernels you can run the BLAS samples using CodeXL.
thanks for tip about env variables.
under the section file-location related varibles it says
"LD_LIBRARY_PATH cannot be set in $HOME/.profile, /etc/profile, nor /etc/environment files. You must use /etc/ld.so.conf.d/*.conf configuration files"
so i do that but i dont have a proper idea about how to name the .conf file,so i set it to clamdblas.conf and insert /opt/clAmdBlas-1.10.321/lib64 inside it.
however no sucess.
i checked out your defaukt-install_lnx_64.pl (installing amd app sdk) file and in there there's a long section about setting env variables and it does use the /etc/ld.so.conf.d/*.conf configuration files.so is how do i do this for clamdblas.
as for putting appmlEnv.sh inside /etc/profile.d/
i get the message "Patching LD_LIBRARY_PATH to include APPML math libraries" when i open terminal session,but this doesnt work too.
maybe this is too much pain for running examples but suppose if i were using these clamdblas libraries within code how should i accommodate for these enviornment variables??
as for "To see the kernels you can run the BLAS samples using CodeXL."
i fail to understand as to how is this possible.when you open a new project in codexl it asks for the "kernel source files directory"