mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-07-02 12:26:57 +02:00
Remove assert for extention not available in macOS
The cl_nv_device_attribute_query extention is not available on the Apple platform. This caused failures during debug builds at runtime.
This commit is contained in:
parent
7084311e45
commit
cf4907942c
|
@ -18,13 +18,13 @@
|
||||||
// =================================================================================================
|
// =================================================================================================
|
||||||
//
|
//
|
||||||
// Copyright 2015 SURFsara
|
// Copyright 2015 SURFsara
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
@ -358,8 +358,10 @@ class Device {
|
||||||
|
|
||||||
// Returns if the Nvidia chip is a Volta or later archicture (sm_70 or higher)
|
// Returns if the Nvidia chip is a Volta or later archicture (sm_70 or higher)
|
||||||
bool IsPostNVIDIAVolta() const {
|
bool IsPostNVIDIAVolta() const {
|
||||||
assert(HasExtension("cl_nv_device_attribute_query"));
|
if(HasExtension("cl_nv_device_attribute_query")) {
|
||||||
return GetInfo<cl_uint>(CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV) >= 7;
|
return GetInfo<cl_uint>(CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV) >= 7;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieves the above extra information (if present)
|
// Retrieves the above extra information (if present)
|
||||||
|
|
Loading…
Reference in a new issue