gpu library updates from sync with steve

This commit is contained in:
Axel Kohlmeyer
2011-12-02 17:28:12 -05:00
parent 2732520eab
commit 196e2743f7
10 changed files with 22 additions and 22 deletions

View File

@ -529,12 +529,6 @@ void DeviceT::clear() {
if (_init_count==0) {
atom.clear();
_neighbor_shared.clear();
if (_compiled) {
k_zero.clear();
k_info.clear();
delete dev_program;
_compiled=false;
}
}
}
}
@ -543,6 +537,12 @@ template <class numtyp, class acctyp>
void DeviceT::clear_device() {
while (_init_count>0)
clear();
if (_compiled) {
k_zero.clear();
k_info.clear();
delete dev_program;
_compiled=false;
}
if (_device_init) {
delete gpu;
_device_init=false;