From 0994542496190ff691fd806b842954d5c4763c44 Mon Sep 17 00:00:00 2001 From: Nils Moehrle Date: Mon, 28 Nov 2016 11:38:45 +0100 Subject: [PATCH] Move gpuarchitecture to cxx flags - react to 0360b836 --- src/tools/nvcc.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tools/nvcc.lua b/src/tools/nvcc.lua index 5f9fd72ddc..04fece9b16 100644 --- a/src/tools/nvcc.lua +++ b/src/tools/nvcc.lua @@ -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) @@ -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", } }