Skip to content

Commit

Permalink
Move gpuarchitecture to cxx flags - react to 0360b83
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoehrle committed Nov 28, 2016
1 parent a6e00c8 commit 0994542
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tools/nvcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@
Size = "-Os",
Speed = "-O3",
},
gpuarchitecture = {
Fermi = "--gpu-architecture compute_20",
Kepler = "--gpu-architecture compute_30",
Maxwell = "--gpu-architecture compute_50",
Pascal = "--gpu-architecture compute_60",
Volta = "--gpu-architecture compute_70",
}
}

function nvcc.getcflags(cfg)
Expand Down Expand Up @@ -170,6 +163,13 @@
flags = {
["C++11"] = "--std=c++11",
["C++14"] = "--std=c++14",
},
gpuarchitecture = {
Fermi = "--gpu-architecture compute_20",
Kepler = "--gpu-architecture compute_30",
Maxwell = "--gpu-architecture compute_50",
Pascal = "--gpu-architecture compute_60",
Volta = "--gpu-architecture compute_70",
}
}

Expand Down

0 comments on commit 0994542

Please sign in to comment.