Advanced Computing Platform for Theoretical Physics

commit大文件会使得服务器变得不稳定,请大家尽量只commit代码,不要commit大的文件。

Commit 43a3399c authored by mikeaclark's avatar mikeaclark
Browse files

Removed redundant _inv constants

git-svn-id: http://lattice.bu.edu/qcdalg/cuda/quda@615 be54200a-260c-0410-bdd7-ce6af2a381ab
parent b3a642d7
......@@ -4,7 +4,7 @@
#include <quda_internal.h>
#include <blas_quda.h>
#define REDUCE_MAX_BLOCKS 2048
#define REDUCE_MAX_BLOCKS 4096
#define REDUCE_DOUBLE 64
#define REDUCE_KAHAN 32
......
......@@ -14,10 +14,6 @@ __constant__ int X3X2X1mX2X1;
__constant__ int X4X3X2X1mX3X2X1;
__constant__ int X4X3X2X1hmX3X2X1h;
__constant__ float X1h_inv;
__constant__ float X2_inv;
__constant__ float X3_inv;
__constant__ int X2X1;
__constant__ int X3X2X1;
......
......@@ -71,15 +71,6 @@ void initDslashConstants(FullGauge gauge, int sp_stride, int cl_stride) {
int X1h = X1/2;
cudaMemcpyToSymbol("X1h", &X1h, sizeof(int));
float X1h_inv = 1.0 / X1h;
cudaMemcpyToSymbol("X1h_inv", &X1h_inv, sizeof(float));
float X2_inv = 1.0 / X2;
cudaMemcpyToSymbol("X2_inv", &X2_inv, sizeof(float));
float X3_inv = 1.0 / X3;
cudaMemcpyToSymbol("X3_inv", &X3_inv, sizeof(float));
int X1m1 = X1 - 1;
cudaMemcpyToSymbol("X1m1", &X1m1, sizeof(int));
......
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