Commit 2f329e1b authored by AGULLO Emmanuel's avatar AGULLO Emmanuel
Browse files

Enabling auto-completion for chameleon in emacs (spacemacs)

parent ab62aa98
* Enabling auto-completion for chameleon in spacemacs
** Install clang compiler on the system
#+begin_src sh :results output :exports both
sudo aptitude install clang
** Enabling c-c++ layer in spacemacs
Enable [[][c-c++ spacemacs layer]] with clang support:
#+begin_src emacs-lisp
(setq-default dotspacemacs-configuration-layers
'((c-c++ :variables c-c++-enable-clang-support t)))
** Installing Chameleon
#+begin_src sh :results output :exports both
export CHAMELEON_DIR=/path/to/chameleon-src/
spack install -v chameleon~simu@src ^mkl
** Loading modules
#+begin_src sh :results output :exports both
module purge
spack load chameleon ; spack load cmake ; spack load fxt ; spack load openmpi ; spack load hwloc ; spack load starpu
** Building chameleon with
#+begin_src sh :results output :exports both
mkdir spack-cc_args-build
cd spack-cc_args-build
CC=' gcc'
** Gathering the clang_complete information to the src directory
We now gather, sort and unify the .clang_complete information we obtained from
the build to the src directory:
#+begin_src sh :results output :exports both
find . | grep clang_complete | xargs cat | sort | uniq > ../clang_complete
** Restart spacemacs (optional)
M-m q r: restart both emacs and the server, prompting to save any changed buffers
** Check company state
M-m h d v: company-clang-arguments
** Enjoy
* Sources
** Beautiful spacemacs tutorial on advanced c/c++ usage
(starting ~40')
** .clang_complete
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment