Advanced Computing Platform for Theoretical Physics

Commit 7a56f565 authored by rbabich's avatar rbabich
Browse files

quda: added license file and fixed bug in retrieveGaugeField() that was

causing su3_test to fail.


git-svn-id: http://lattice.bu.edu/qcdalg/cuda/quda@579 be54200a-260c-0410-bdd7-ce6af2a381ab
parent 0dd9dc6c
Copyright (c) 2009 QUDA Developers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Release 0.1 - 17 November 2009
Version 0.x
- Cleaned up the invert_test example to remove unnecessary dependencies.
- Fixed bug affecting saveGaugeQuda() that caused su3_test to fail.
- Added compiler directive to Makefile to improve performance of the
half-precision clover Dslash on sm_13 hardware.
- Formally adopted the MIT/X11 license.
Version 0.1 - 17 November 2009
- Initial public release. - Initial public release.
...@@ -78,7 +78,8 @@ extern "C" { ...@@ -78,7 +78,8 @@ extern "C" {
} QudaInvertParam; } QudaInvertParam;
// Interface functions // Interface functions, found in invert_quda.cpp
void initQuda(int dev); void initQuda(int dev);
void loadGaugeQuda(void *h_gauge, QudaGaugeParam *param); void loadGaugeQuda(void *h_gauge, QudaGaugeParam *param);
void saveGaugeQuda(void *h_gauge); void saveGaugeQuda(void *h_gauge);
......
...@@ -529,7 +529,6 @@ void loadGaugeField(FloatN *even, FloatN *odd, Float *cpuGauge, ReconstructType ...@@ -529,7 +529,6 @@ void loadGaugeField(FloatN *even, FloatN *odd, Float *cpuGauge, ReconstructType
} else if (gauge_param->gauge_order == QUDA_CPS_WILSON_GAUGE_ORDER) { } else if (gauge_param->gauge_order == QUDA_CPS_WILSON_GAUGE_ORDER) {
packCPSGaugeField(packedEven, (Float*)cpuGauge, 0, reconstruct, Vh, pad); packCPSGaugeField(packedEven, (Float*)cpuGauge, 0, reconstruct, Vh, pad);
packCPSGaugeField(packedOdd, (Float*)cpuGauge, 1, reconstruct, Vh, pad); packCPSGaugeField(packedOdd, (Float*)cpuGauge, 1, reconstruct, Vh, pad);
} else { } else {
printf("Sorry, %d GaugeFieldOrder not supported\n", gauge_param->gauge_order); printf("Sorry, %d GaugeFieldOrder not supported\n", gauge_param->gauge_order);
exit(-1); exit(-1);
...@@ -573,8 +572,8 @@ void retrieveGaugeField(Float *cpuGauge, FloatN *even, FloatN *odd, ReconstructT ...@@ -573,8 +572,8 @@ void retrieveGaugeField(Float *cpuGauge, FloatN *even, FloatN *odd, ReconstructT
packedOdd = (FloatN*)malloc(bytes); packedOdd = (FloatN*)malloc(bytes);
#endif #endif
cudaMemcpy(packedEven, even, bytes, cudaMemcpyHostToDevice); cudaMemcpy(packedEven, even, bytes, cudaMemcpyDeviceToHost);
cudaMemcpy(packedOdd, odd, bytes, cudaMemcpyHostToDevice); cudaMemcpy(packedOdd, odd, bytes, cudaMemcpyDeviceToHost);
if (gauge_param->gauge_order == QUDA_QDP_GAUGE_ORDER) { if (gauge_param->gauge_order == QUDA_QDP_GAUGE_ORDER) {
unpackQDPGaugeField((Float**)cpuGauge, packedEven, 0, reconstruct, Vh, pad); unpackQDPGaugeField((Float**)cpuGauge, packedEven, 0, reconstruct, Vh, pad);
......
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