Skip to content

Commit

Permalink
fixed a point type problem that doesn't compile on a Cray
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Aug 7, 2015
1 parent aff3607 commit b68ae98
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
20 changes: 10 additions & 10 deletions AdiosStManScaColumn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,43 +79,43 @@ namespace casacore {
// put
void AdiosStManScaColumn::putBoolV (uInt rownr, const Bool* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putuCharV (uInt rownr, const uChar* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putShortV (uInt rownr, const Short* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putuShortV (uInt rownr, const uShort* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putIntV (uInt rownr, const Int* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putuIntV (uInt rownr, const uInt* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putfloatV (uInt rownr, const float* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putdoubleV (uInt rownr, const double* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putComplexV (uInt rownr, const Complex* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putDComplexV (uInt rownr, const DComplex* dataPtr){
itsStManPtr->adiosWriteOpen();
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , dataPtr);
adios_write_byid(itsStManPtr->getAdiosFile(), itsAdiosWriteIDs[rownr] , (void*)dataPtr);
}
void AdiosStManScaColumn::putStringV (uInt rownr, const String* dataPtr){
cout << "AdiosStManColumn Error: Sorry, AdiosStMan does not support string type at the moment!" << endl;
Expand Down
13 changes: 11 additions & 2 deletions benchmark/ms_read_column.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#!/bin/bash

if [ "$JOBSCHEDULER" == "slurm" ]; then
JOBID=$SLURM_JOBID
JOBDIR=$SLURM_SUBMIT_DIR
else
JOBID=$PBS_JOBID
JOBDIR=$PBS_O_WORKDIR
fi

if [ "$VENDOR" == "cray" ]; then
aprun -n1 -N1 $SLURM_SUBMIT_DIR/ms_read_column $DATADIR/chiles_original.ms $DATADIR/chiles_adios_agg.ms
aprun -n1 -N1 $JOBDIR/ms_read_column $DATADIR/chiles_original.ms $DATADIR/chiles_adios_agg.ms
else
mpirun ${PBS_O_WORKDIR}/ms_read_column $DATADIR/chiles_original.ms $DATADIR/chiles_adios_agg.ms
mpirun $JOBDIR/ms_read_column $DATADIR/chiles_original.ms $DATADIR/chiles_adios_agg.ms
fi


Expand Down

0 comments on commit b68ae98

Please sign in to comment.