Create a CROSSTOOL file for ICC
I had read https://github.com/bazelbuild/bazel/wiki/Building-with-a-custom-toolchain but I believe it is too complex. I just simply would like to compile a simple hello world example with icc instead of gcc using bazel.
See also questions close to this topic
bazel 0.21.0 install from installer fails on ubuntu 18.04.1
I want to install tensorflow-1.13.0-rc2. But when I want to install bazel 0.21.0 on ubuntu 18.04.1, the steps I take don't work.
At the directory of my installer, I run:
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip $chmod +x bazel-0.21.0-installer-linux-x86_64.sh $./bazel-0.21.0-installer-linux-x86_64.sh --user
Then I edit the bashrc file by adding this:
(Then I save the file and run the shell; afterwards, I restart the terminal of ubuntu.)
The above steps follow this link.
Finally when I run
terminal gives me
Command 'bazel' not found, did you mean:
command 'babel' from deb openbabel
Try: sudo apt install
Please help, thanks.
- Installing TensorFlow binaries supporting AVX, FMA, SSE for Python 3.6 and TF 1.12..0
How to add the retrying times or extend the fetching time?
I am installing ClusterFuzz tools, the command
bazel run xxxxonly could keep 65 seconds, but we can only run these commands via a proxy in my env and looks the network is unstable. the command:
bazel run --keep_going //local:create_gopath
the error information: http://paste.openstack.org/show/745193/ Some errors perform "Could not resolve host: github.com", Actually it could be requested in the env, :(
try to clone the repo with git command.
git clone https://github.com/pkg/errors /home/fuzz/.cache/bazel/_bazel_fuzz/6dcde86a643777ef5d89aaa636cdd7cd/external/com_github_pkg_errors Cloning into '/home/fuzz/.cache/bazel/_bazel_fuzz/6dcde86a643777ef5d89aaa636cdd7cd/external/com_github_pkg_errors'... remote: Enumerating objects: 528, done. Receiving objects: 100% (528/528), 117.06 KiB | 0 bytes/s, done. remote: Total 528 (delta 0), reused 0 (delta 0), pack-reused 528 Resolving deltas: 100% (322/322), done. Checking connectivity... done.
Checking ifort/icc version in makefile
In this question " Checking the gcc version in a Makefile? " it was answered how to extract the version of gcc compiler. However, that does not seem to work with the intel compilers as icc and ifort? Does anybody know to make it give same output using
How to locate path to Intel Compilers directory needed to build mpi benchmarks on linux?
I'm new to the command line and linux. I'm trying to build the intel mpi benchmarks i've installed. I can't seem to find the path to Intel Compilers directory in my system. I was told to load the intel module in an interactive job which I did. How can I locate this directory?
I've installed the files for the Intel mpi benchmarks using wget and the link to the github with the files and the next step says to build the benchmarks doing the follow:
host$ source <path to Intel Compilers directory>/bin/compilervars.sh intel64 host$ source <path to Intel MPI Library directory>/intel64/bin/mpivars.sh host$ cd <path to Intel MPI Benchmarks directory>/src host$ make -f make_ict
I've used find and locate to search for intel and intel compiler and I get a bunch of results that are of no help.
Accessing Non Contiguous Memory location
I want to access a float array, but the index of that array are non contiguous.
Code snippet is as follows
a[index] = tempIndex + b[tempIndex + pos];
Accessing an array a will cause a lot of cache miss.
Please let me know , is there any way to access this array efficiently.
Any intel/gcc flag will he me in this.