Files
rocm-systems/projects/hip-tests/catch/unit/memory/memoryCommon.cc
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 строки
299 B
C++
Исходник Обычный вид История

#include "memoryCommon.hh"
#include "memoryGlobal.hh"
void set_value(int const value) {
HIP_CHECK(hipMemcpyToSymbol(HIP_SYMBOL(globalVar), &value, sizeof(value)));
}
int get_value() {
int value;
HIP_CHECK(hipMemcpyFromSymbol(&value, HIP_SYMBOL(globalVar), sizeof(value)));
return value;
}