add OpenBLAS detection and modify tests codes #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I revised src/CMakeLists.txt for fixing indents and commands for Haiku and adding OpenBLAS detection.
OpenBLAS detection codes in whisper CMakeLists.txt isn't enough. That detects only OpenBLAS library.
Thus, I added codes for detecting OpenBLAS header based on caffe's FindOpenBLAS.cmake.
I also revised tests/CMakeLists.txt for adding OpenBLAS detection and support x86 system w/o FMA instructions.
And some tests code are modified.
test-vec1.c:
The fmadd codes are changed to without FMA codes on no FMA support system.
test-grad0.c test-mul-mat0.c:
The loop number is changeable by environment variable GGML_NLOOP or command line option.
Because, 1000 or 500 loop are too much to finish loop in a time.
test2.c:
n_threads is changeable by environment variable GGML_NTHREADS or command line option.
Because my 4-logical core cpu pc can't do test2 with 8 threads setting.
After adapted my modifications, the results of make test is as follows on my old SandyBridge Linux pc.