Probably you should post details about what you did, and the contents of the script. It might be the case, that script is setting up the paths for all users (and / or permanently), while, you are setting it up for only the current terminal. Just guessing
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 am new and fairly noobish in gpu computing.
- are here any examples which illustrate how to integrate these libraries into existing opencl code.?
- if possible could you please outline the steps,
- i am decent in opencl .cl programming and noticed the absence of .cl files in the appml libraries.
- if you fell u have to add something please do
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"
To Open bashrc: gedit ~/.bashrc
Put this in your bashrc for default installation directory.
Also most likely, you can run codexl without specifying the kernel directory.