I have a code written in C (using opencl specs) to list all the available devices. My PC has an AMD FirePro as well as Nvidia’s Tesla graphics card installed. I first installed AMD-APP-SDK-v3.0-0.113.50-Beta-linux64.tar.bz2 but it didn’t seem to work so thereafter I installed OpenCL™ Runtime 15.1 for Intel® Core™ and Intel® Xeon® Processors for Red Hat* and SLES* Linux*
Tag: c++
How to read a file from a remote device from C program and Ubuntu OS? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I am trying to read a file located at remote device, it has Debian OS. My C program is running
Javacpp: liblept.4.dylib library not loaded
On my 64 bit Mac OSX Trying to use a native C++ library from a java project just as described in this link: https://github.com/bytedeco/javacpp-presets/tree/master/tesseract But I get this error when I run the example, library liblept.4.dylib is not loaded, and I have no idea what to do. UPDATE: I tried to install tesseract and leptonica libraries via mac ports, this
confusing segmentation fault involving ldap_url_parse function from openldap library
On a CentOS 6.6 server the following code compiles (with gcc version 4.4.7 or with clang version 3.4.2) without incident but results in a segmentation fault when run: However if I modify it to remove the string declaration, like so: then it runs without incident as well. On my Mac OS X 10.10.3 (Yosemite) both versions (with and without the
How to trap memory reads and writes using sigsegv?
How do I trick linux into thinking a memory read/write was successful? I am writing a C++ library such that all reads/writes are redirected and handled transparently to the end user. Anytime a variable is written or read from, the library will need to catch that request and shoot it off to a hardware simulation which will handle the data
How to print the void * in a function and how to access the void * variable in a function?
I’m trying to pass a function as argument to another function with void pointer and it doesn’t work I Am getting errors like this: How do I fix the problem? Answer To print a pointer you need the “%p” printf format. But it seems that you don’t actually want to print the actual pointer but what it points to, and
how to determine directory or file in linux in c
I want to print only file names without printing Directory Names. So, I implement this function I checked that Directory names ends with ‘/’ character. So, I checked that if there are ‘/’ character at the end of name, don’t print that name but when I run the function, all of them is printed in selected directory? Can you lead
The Majority of Unix tools are written in what programming language? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question Here is an example of using two Unix tools: ls and grep are two Unix tools. I believe that both
How to grep a string in a program?
Description: The str_buf_to_grep is given in any way, which might be the content of a text file, and might be very long and complex, even contains special characters, such as |, “, etc. I want to use the grep command to find matched lines, and the patterns might be very complex. How should I implement it? Answer Use popen: The
Does libfreenect2 support Kinect v2
I have to work with the Kinect v2 in Linux for a project and am searching for compatible libraries. It is unclear as to whether the Open Kinect project has cracked the Kinect v2 yet. Answer Yes, this library is for the kinect v2. This library (libfreenect2) does not work with the older kinect (360) for which you would use