1
edit
Changes
→Kernel Attempts
*pos=threadIdx.x;
}
}
</source>
Original Code:
<source lang="cpp">
memset(encrypted_password, 0, 255);
memset((char*)&data, min, 255);
</source>
Kernal Attempt 3(Working):
<source lang="cpp">
__global__ void initialise(unsigned char* data, char* encrypted_password) {
data[threadIdx.x] = 32;
encrypted_password[threadIdx.x] = 0;
}