// 1) either link against AMGX static library (might require linking against MPI depending on whether AMGX_WITH_MPI was used for AMGX compilation): // nvcc -std=c++11 ...