You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has not been resolved, and I have no idea yet what could be causing it. (Unless something went wrong while building these cpu-specific files - do you see any warnings for the "kernel.dir" parts of the build during the make phase ? (You will probably need to run cmake with -DCMAKE_VERBOSE_MAKEFILE=1 to see them)
And do you have a file srot_k.S (or srot_k.c, depending on your cpu) in kernel\CMakeFiles ? This should look something like
Could you attach /not paste text/ cmake log (as detailed as possible) ?
It looks like some big part of openblas did not get built. There is no error if cmake does not emit makefile.
Where is the log or how do I generate it ? (Sorry I'm a beginner)
Are you talking about the command line output ? Or is there a way to get a
log with more details ?
Just the command line output - you will probably need to redirect it to a file by adding something like > makelog 2>&1 to the end of your make line. (The 2>&1 is to redirect error messages from stderr to the same file, I am not entirely sure if this works in the msys shell Windows)
The problem is that cmake did not emit Makefile or its parts to build those _k files, or those come out of order later than other files depending on the,
Probably, starting on an empty build directory, under openblas source tree cmake --trace .. 2>&1 | tee cmake_log.txt
Does it work when you tell cmake to generate "MinGW Makefiles" rather than MSYS ? I tried adding a cmake/mingw build to our Appveyor CI setup and the build appeared to work fine with those
"MSYS Makefiles" build just passed on Appveyor as well, so it does not appear to be a general problem.
(autodetected TARGET was HASWELL however, and from the "mingw32" in the first message here the problem may be with 32bit builds (?)
msys/cmake build with TARGET=SANDYBRIDGE BINARY=32 passed on Appveyor as well, suggesting nothing wrong with our cmake configuration files. Do you happen to have several versions of mingw installed on your W10 system, or something like that which might lead to mixups ?
This is the result of
'''
\build> cmake .. -G "MSYS Makefiles" > cmakelog 2>&1
''' cmakelog.txt
I only have one version on MinGW, that I used to compile most of my other libraries without issues so far.
I am trying to think what could cause a mixup, but nothing comes to mind so far.
Now examine likewise captured output of make for scopy_k being compiled (or not)
Also try cmake without specifying generator, so that cmake uses its internal logic to determine generator type. It might be some small thing is missing so that it goes and detects makefile generators as not viable.
OpenBLAS also compiles without issues unless you get into experimental cmake world... Though we intend to keep it working well for everybody.
What I find interesting in the cmakelog is that it reads part of the configuration from KERNEL.PENRYN, in what must be an automatic fallback to 32bit mode due to a 32bit compiler environment. When -DBINARY=32 is specified as a cmake argument, dedicated code in system.cmake switches the target to NEHALEM and the compilation works in my Appveyor tests.
So there could be a problem with our fallback logic, although in the end the x86 KERNEL.HASWELL and KERNEL.NEHALEM configurations are absolutely identical (each just forwarding to KERNEL.PENRYN) - the difference must be either the implied NO_AVX=1 or something in the cpu-specific settings from param.h
On the other hand, your successful make based compilation had BINARY=64 and a SANDYBRIDGE cpu - did that actually use the same compiler (or was it on a completely different computer), and do you want to build for 32 or 64 bit ?
It was the same compiler on the same computer indeed.
Concerning the 32 vs 64 bits, I would rather have it 64 but I am not sure the preference is justified with my current usage.
I think you are quite fine with whatever MINGW provided GNU make did.
The way you have cmake it builds half of library 32bit another 64bit so nothing works.
Reproduced the problem on Appveyor with 32bit mingw now but do not understand it. Somehow it does not even link the cpuid function from cpuid.S although it appears to process that file correctly.
A less severe problem exists on 32bit Linux as well, in cpu autodetection mode the fallback for x86_64 cpus gets confused about USE_TRMM. (Fixing this has no bearing on the mingw case)
Dumped nm output of the library on Appveyor, seems the functions get called with a leading underscore on mingw32 but only some of the kernel function names actually get generated with one. Have not had time to find out why...
Activity
martin-frbg commentedon Jun 15, 2019
This issue has not been resolved, and I have no idea yet what could be causing it. (Unless something went wrong while building these cpu-specific files - do you see any warnings for the "kernel.dir" parts of the build during the
makephase ? (You will probably need to run cmake with -DCMAKE_VERBOSE_MAKEFILE=1 to see them)And do you have a file srot_k.S (or srot_k.c, depending on your cpu) in kernel\CMakeFiles ? This should look something like
(with the source file name on the include line again depending on your target cpu)
RemiDav commentedon Jun 15, 2019
I do have
srot_k.Slooking as described.I will try to catch if I see any warning, so far I didn't see anything weird looking at the log.
Note that I just successfully compiled it by not using cmake and directly using MSYS make instead in the main dir:
The output linked well in my other project without any undefined reference error.
brada4 commentedon Jun 16, 2019
Could you attach /not paste text/ cmake log (as detailed as possible) ?
It looks like some big part of openblas did not get built. There is no error if cmake does not emit makefile.
RemiDav commentedon Jun 16, 2019
martin-frbg commentedon Jun 16, 2019
Just the command line output - you will probably need to redirect it to a file by adding something like
> makelog 2>&1to the end of yourmakeline. (The2>&1is to redirect error messages from stderr to the same file, I am not entirely sure if this works in the msys shell Windows)brada4 commentedon Jun 16, 2019
The problem is that cmake did not emit Makefile or its parts to build those _k files, or those come out of order later than other files depending on the,
Probably, starting on an empty build directory, under openblas source tree
cmake --trace .. 2>&1 | tee cmake_log.txtmartin-frbg commentedon Jun 18, 2019
Does it work when you tell cmake to generate "MinGW Makefiles" rather than MSYS ? I tried adding a cmake/mingw build to our Appveyor CI setup and the build appeared to work fine with those
brada4 commentedon Jun 18, 2019
I did not mention but I intentionally did not specify generator so that cmake picks first working one.
martin-frbg commentedon Jun 18, 2019
"MSYS Makefiles" build just passed on Appveyor as well, so it does not appear to be a general problem.
(autodetected TARGET was HASWELL however, and from the "mingw32" in the first message here the problem may be with 32bit builds (?)
RemiDav commentedon Jun 18, 2019
"MinGW Makefiles" didn't work either. I tried this before trying the MSYS option actually.
makelog.txt
brada4 commentedon Jun 19, 2019
Could you , please, post the log of cmake invocation? Damage is done there.
martin-frbg commentedon Jun 20, 2019
msys/cmake build with TARGET=SANDYBRIDGE BINARY=32 passed on Appveyor as well, suggesting nothing wrong with our cmake configuration files. Do you happen to have several versions of mingw installed on your W10 system, or something like that which might lead to mixups ?
RemiDav commentedon Jun 21, 2019
This is the result of
'''
\build> cmake .. -G "MSYS Makefiles" > cmakelog 2>&1
'''
cmakelog.txt
I only have one version on MinGW, that I used to compile most of my other libraries without issues so far.
I am trying to think what could cause a mixup, but nothing comes to mind so far.
brada4 commentedon Jun 21, 2019
Now examine likewise captured output of make for scopy_k being compiled (or not)
Also try cmake without specifying generator, so that cmake uses its internal logic to determine generator type. It might be some small thing is missing so that it goes and detects makefile generators as not viable.
OpenBLAS also compiles without issues unless you get into experimental cmake world... Though we intend to keep it working well for everybody.
martin-frbg commentedon Jun 21, 2019
What I find interesting in the cmakelog is that it reads part of the configuration from KERNEL.PENRYN, in what must be an automatic fallback to 32bit mode due to a 32bit compiler environment. When -DBINARY=32 is specified as a cmake argument, dedicated code in system.cmake switches the target to NEHALEM and the compilation works in my Appveyor tests.
So there could be a problem with our fallback logic, although in the end the x86 KERNEL.HASWELL and KERNEL.NEHALEM configurations are absolutely identical (each just forwarding to KERNEL.PENRYN) - the difference must be either the implied NO_AVX=1 or something in the cpu-specific settings from param.h
On the other hand, your successful
makebased compilation had BINARY=64 and a SANDYBRIDGE cpu - did that actually use the same compiler (or was it on a completely different computer), and do you want to build for 32 or 64 bit ?RemiDav commentedon Jun 22, 2019
It was the same compiler on the same computer indeed.
Concerning the 32 vs 64 bits, I would rather have it 64 but I am not sure the preference is justified with my current usage.
brada4 commentedon Jun 22, 2019
I think you are quite fine with whatever MINGW provided GNU make did.
The way you have cmake it builds half of library 32bit another 64bit so nothing works.
martin-frbg commentedon Jun 23, 2019
Reproduced the problem on Appveyor with 32bit mingw now but do not understand it. Somehow it does not even link the cpuid function from cpuid.S although it appears to process that file correctly.
A less severe problem exists on 32bit Linux as well, in cpu autodetection mode the fallback for x86_64 cpus gets confused about USE_TRMM. (Fixing this has no bearing on the mingw case)
martin-frbg commentedon Jun 23, 2019
Dumped
nmoutput of the library on Appveyor, seems the functions get called with a leading underscore on mingw32 but only some of the kernel function names actually get generated with one. Have not had time to find out why...