vs2015 cuda9.0 linked SHA1_Init with CUDA implement instead of openssl cpu libs
-1
I am a beginner to cuda, c++ and I am trying to move openssl sha1 cpu code to cuda c,but I ran into a weired problem. here is the minimum code that can reproduce the problem. There are three files in this vs2015 cuda9.0 project. They are main.cpp ,sha1.cu and sha1.h //main.cpp #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "opensslsha.h" int main() { SHA_CTX ctx; SHA1_Init(&ctx); return 0; } //sha1.h #ifndef SHA1_H #define SHA1_H #include <stdint.h> #include <cuda_runtime.h> namespace cudatest { #ifdef __cplusplus extern "C" { #endif typedef struct { uint32_t state[5]; uint32_t count[2]; unsigned char buffer[64]; } SHA1_CTX; #defi...