Skip to content
Advertisement

Tag: c++

Do i need to install Nvidia’s SDK(CUDA) for OpenCL to detect Nvidia GPU?

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*

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

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 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

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

Advertisement