- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to use this function “ dpct::atomic_compare_exchange_strong” . and then I try to run pybind11 and python demo. Then I encountered this problem “Segmentation fault (core dumped)”. Do you have some suggestions to solve this problem.
This is dpct::atomic_compare_exchange_strong function
uint64_t prev = dpct::atomic_compare_exchange_strong<
unsigned long long, sycl::access::address_space::generic_space>(
(unsigned long long *)&p.evHash[idx.get()], (unsigned long long)0,
(unsigned long long)key);
This function is converted form https://github.com/NVlabs/nvdiffrast/blob/main/nvdiffrast/common/antialias.cu
Dpct convert this file successfully
Best
Lisa Shi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have found out this is a problem about cpu tensor and cuda tensor. I should make cpu tensor in python program to call the dpct::atomic_compare_exchange_strong function
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have found out this is a problem about cpu tensor and cuda tensor. I should make cpu tensor in python program to call the dpct::atomic_compare_exchange_strong function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us. Glad to know that your issue is resolved. If you need any further assistance, please post a new question as this thread will no longer be monitored by Intel.
Regards,
Shwetha
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page