cuda_device :: default_alignment() not implemented

Issue #210 resolved
Dan Bonachea created an issue

cuda_device::default_alignment() is not implemented as specified:

#include <upcxx/upcxx.hpp>

int main() {
  upcxx::init();

  std::size_t x = upcxx::cuda_device::default_alignment<int>();

  upcxx::finalize();
  return 0;
}
defal.cpp: In function 'int main()':
defal.cpp:7:39: error: 'default_alignment' is not a member of 'upcxx::cuda_device'
   std::size_t x = upcxx::cuda_device::default_alignment<int>();
                                       ^~~~~~~~~~~~~~~~~
defal.cpp:7:57: error: expected primary-expression before 'int'
   std::size_t x = upcxx::cuda_device::default_alignment<int>();
                                                         ^~~
{pcp-d-6 ~/UPC/code} ../upcxx/inst-par_mutex/bin/upcxx -g defal.cpp
defal.cpp: In function 'int main()':
defal.cpp:6:39: error: 'default_alignment' is not a member of 'upcxx::cuda_device'
   std::size_t x = upcxx::cuda_device::default_alignment<int>();
                                       ^~~~~~~~~~~~~~~~~
defal.cpp:6:57: error: expected primary-expression before 'int'
   std::size_t x = upcxx::cuda_device::default_alignment<int>();

Comments (3)

  1. Log in to comment