Skip to content

Commit

Permalink
Added the user defined nvcc flags also to the dry run command to avoi…
Browse files Browse the repository at this point in the history
…d any discrepancies between block size choices and final requirements on block size.
  • Loading branch information
tnowotny committed Nov 10, 2016
1 parent dcb00f8 commit 8ac428c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/generateALL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ void chooseDevice(NNmodel &model, //!< the nn model we are generating code for

string nvccFlags = "-cubin -x cu -arch sm_";
nvccFlags += tS(deviceProp[theDevice].major) + tS(deviceProp[theDevice].minor);
nvccFlags += " " + GENN_PREFERENCES::userNvccFlags;
if (GENN_PREFERENCES::optimizeCode) nvccFlags += " -O3 -use_fast_math";
if (GENN_PREFERENCES::debugCode) nvccFlags += " -O0 -g -G";
if (GENN_PREFERENCES::showPtxInfo) nvccFlags += " -Xptxas \"-v\"";
Expand Down

0 comments on commit 8ac428c

Please sign in to comment.