0

I am trying to port a GCC function to MSVC, and am stuck at this code:

 void __attribute__((constructor)) init() {
    // Setup GPU Memory Management
    cuda::gpu_mat_allocator = new cuda::Allocator();
  }

this answer is similar, but I do not understand it. __attribute__((constructor)) equivalent in VC?

Is the answer posted there, my answer too? Or is there a simpler way? thank you.

Community
  • 1
  • 1
anti
  • 2,789
  • 5
  • 29
  • 75

0 Answers0