Hi, i’m getting this error:
error: identifier “atomicAnd” is undefined
should i include something to use atomicAnd, and atomicOr?
here’s the piece of code:
if (Func(sdata[0] - layer->thresholds[outputNeuron], layer->functionType) > 0){
atomicOr(&(((unsigned*)(layer->outputNeurons))[outputNeuron / BITS_PER_INT]),
(0x80000000>>(outputNeuron % BITS_PER_INT)));
} else {
atomicAnd(&(((unsigned*)(layer->outputNeurons))[outputNeuron / BITS_PER_INT]),
(0x7EEEEEEE>>(outputNeuron % BITS_PER_INT)));
}
thank you