Commit 59b69776 authored by Peter Eastman's avatar Peter Eastman
Browse files

Split a file to work around Visual Studio's limit on the length of string literals

parent fb48658f
...@@ -1898,25 +1898,30 @@ void CudaCalcAmoebaGeneralizedKirkwoodForceKernel::initialize(const System& syst ...@@ -1898,25 +1898,30 @@ void CudaCalcAmoebaGeneralizedKirkwoodForceKernel::initialize(const System& syst
forceSource << CudaKernelSources::vectorOps; forceSource << CudaKernelSources::vectorOps;
forceSource << CudaAmoebaKernelSources::amoebaGk; forceSource << CudaAmoebaKernelSources::amoebaGk;
forceSource << "#define F1\n"; forceSource << "#define F1\n";
forceSource << CudaAmoebaKernelSources::gkPairForce; forceSource << CudaAmoebaKernelSources::gkPairForce1;
forceSource << CudaAmoebaKernelSources::gkPairForce2;
forceSource << CudaAmoebaKernelSources::gkEDiffPairForce; forceSource << CudaAmoebaKernelSources::gkEDiffPairForce;
forceSource << "#undef F1\n"; forceSource << "#undef F1\n";
forceSource << "#define F2\n"; forceSource << "#define F2\n";
forceSource << CudaAmoebaKernelSources::gkPairForce; forceSource << CudaAmoebaKernelSources::gkPairForce1;
forceSource << CudaAmoebaKernelSources::gkPairForce2;
forceSource << "#undef F2\n"; forceSource << "#undef F2\n";
forceSource << "#define T1\n"; forceSource << "#define T1\n";
forceSource << CudaAmoebaKernelSources::gkPairForce; forceSource << CudaAmoebaKernelSources::gkPairForce1;
forceSource << CudaAmoebaKernelSources::gkPairForce2;
forceSource << CudaAmoebaKernelSources::gkEDiffPairForce; forceSource << CudaAmoebaKernelSources::gkEDiffPairForce;
forceSource << "#undef T1\n"; forceSource << "#undef T1\n";
forceSource << "#define T2\n"; forceSource << "#define T2\n";
forceSource << CudaAmoebaKernelSources::gkPairForce; forceSource << CudaAmoebaKernelSources::gkPairForce1;
forceSource << CudaAmoebaKernelSources::gkPairForce2;
forceSource << "#undef T2\n"; forceSource << "#undef T2\n";
forceSource << "#define T3\n"; forceSource << "#define T3\n";
forceSource << CudaAmoebaKernelSources::gkEDiffPairForce; forceSource << CudaAmoebaKernelSources::gkEDiffPairForce;
forceSource << "#undef T3\n"; forceSource << "#undef T3\n";
forceSource << "#define B1\n"; forceSource << "#define B1\n";
forceSource << "#define B2\n"; forceSource << "#define B2\n";
forceSource << CudaAmoebaKernelSources::gkPairForce; forceSource << CudaAmoebaKernelSources::gkPairForce1;
forceSource << CudaAmoebaKernelSources::gkPairForce2;
CUmodule module = cu.createModule(forceSource.str(), defines); CUmodule module = cu.createModule(forceSource.str(), defines);
computeBornSumKernel = cu.getKernel(module, "computeBornSum"); computeBornSumKernel = cu.getKernel(module, "computeBornSum");
reduceBornSumKernel = cu.getKernel(module, "reduceBornSum"); reduceBornSumKernel = cu.getKernel(module, "reduceBornSum");
......
This diff is collapsed.
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