CodeExplorer Posted September 4, 2019 Posted September 4, 2019 (edited) Hi again. BarsWF once again. So the CUDA project I got it working. The SSE2 project is still bogus. I could notice only these warning: 1>LINK : warning C4743: 'union __m128i sse2_nodata' has different size in 'C:\BarsWF-master\md5.cpp' and 'C:\BarsWF-master\global.cpp': 18 and 16 bytes .... 1>LINK : warning C4743: 'union __m128i gpu_mask_2_128' has different size in 'C:\BarsWF-master\algo\md5\algo_md5.cpp' and 'C:\BarsWF-master\global.cpp': 18 and 16 bytes In global.h is defined as fallows: extern global_data *g; //:-[ Not reliable as class member extern __m128i gpu_mask_2_128; extern __m128i CONST_MAX128,sse2_nodata,sse2_lendata,target_sse[4]; extern __m128i md5_const_sse2[64]; In global.cpp is this: global_data *g = NULL; __m128i gpu_mask_2_128; __m128i CONST_MAX128,sse2_nodata,sse2_lendata,target_sse[4]; __m128i md5_const_sse2[64]; Any way to fix the warning? https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4743?view=vs-2019 Edited September 4, 2019 by CodeExplorer
CodeExplorer Posted September 5, 2019 Author Posted September 5, 2019 I did this on md5.cpp: int main(int argc, char **argv) { char cresult[100]; int Size1 = sizeof(gpu_mask_2_128); sprintf(cresult, "__m128i size = %d", Size1); This prints 16 bytes: which is the right size: 128 bits / 8 = 16 bytes! So I guess I should just ignore this warning!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now