Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vkEnumeratePhysicalDevices(*(this->mInstance) ... doesn't work on Linux i386 #208

Merged
merged 4 commits into from
Apr 17, 2021

Conversation

unexploredtest
Copy link
Contributor

@unexploredtest unexploredtest commented Apr 16, 2021

The code doesn't compile on Linux i386 if vkEnumeratePhysicalDevices(*(this->mInstance), &deviceCount, nullptr); is used(src/Manager.cpp, line 293; I don't know the issue), using this->mInstance->enumeratePhysicalDevices(&deviceCount, nullptr); instead solves the problem.
More info:

  /project/src/Manager.cpp: In member function ‘void kp::Manager::createDevice(const std::vector<unsigned int>&, uint32_t, const std::vector<std::basic_string<char> >&)’:
  /project/src/Manager.cpp:293:32: error: cannot convert ‘std::__shared_ptr_access<vk::Instance, __gnu_cxx::_S_atomic, false, false>::element_type’ {aka ‘vk::Instance’} to ‘VkInstance’ {aka ‘VkInstance_T*’}
    293 |     vkEnumeratePhysicalDevices(*(this->mInstance), &deviceCount, nullptr);
        |                                ^~~~~~~~~~~~~~~~~~
        |                                |
        |                                std::__shared_ptr_access<vk::Instance, __gnu_cxx::_S_atomic, false, false>::element_type {aka vk::Instance}

@axsaucedo axsaucedo merged commit ae7eca0 into KomputeProject:master Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants