Added openblas_set_num_threads dummy function on Windows. We plan to implement this feature in next version.
This commit is contained in:
parent
422359d09a
commit
853d16ed7e
|
@ -63,6 +63,14 @@ static blas_pool_t pool;
|
||||||
static HANDLE blas_threads [MAX_CPU_NUMBER];
|
static HANDLE blas_threads [MAX_CPU_NUMBER];
|
||||||
static DWORD blas_threads_id[MAX_CPU_NUMBER];
|
static DWORD blas_threads_id[MAX_CPU_NUMBER];
|
||||||
|
|
||||||
|
void goto_set_num_threads(int num)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void openblas_set_num_threads(int num)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
|
static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
|
||||||
|
|
||||||
if (!(mode & BLAS_COMPLEX)){
|
if (!(mode & BLAS_COMPLEX)){
|
||||||
|
|
|
@ -2759,6 +2759,10 @@ if ($ARGV[0] eq "aix"){
|
||||||
if ($ARGV[0] eq "win2k"){
|
if ($ARGV[0] eq "win2k"){
|
||||||
print "EXPORTS\n";
|
print "EXPORTS\n";
|
||||||
$count = 1;
|
$count = 1;
|
||||||
|
|
||||||
|
#remove openblas_set_num_threads
|
||||||
|
@underscore_objs = grep /[^openblas_set_num_threads]/,@underscore_objs;
|
||||||
|
|
||||||
foreach $objs (@underscore_objs) {
|
foreach $objs (@underscore_objs) {
|
||||||
$uppercase = $objs;
|
$uppercase = $objs;
|
||||||
$uppercase =~ tr/[a-z]/[A-Z]/;
|
$uppercase =~ tr/[a-z]/[A-Z]/;
|
||||||
|
@ -2769,7 +2773,11 @@ if ($ARGV[0] eq "win2k"){
|
||||||
print "\t$uppercase=$objs", "_ \@", $count, "\n";
|
print "\t$uppercase=$objs", "_ \@", $count, "\n";
|
||||||
$count ++;
|
$count ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#for openblas_set_num_threads
|
||||||
|
print "\topenblas_set_num_threads_=openblas_set_num_threads_ \@", $count, "\n";
|
||||||
|
$count ++;
|
||||||
|
|
||||||
# if ($ARGV[4] == 0) {
|
# if ($ARGV[4] == 0) {
|
||||||
foreach $objs (@no_underscore_objs) {
|
foreach $objs (@no_underscore_objs) {
|
||||||
print "\t",$objs,"=$objs"," \@", $count, "\n";
|
print "\t",$objs,"=$objs"," \@", $count, "\n";
|
||||||
|
|
Loading…
Reference in New Issue