Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

file path problem while using jupyterlab

Wei-Chih
Novice
369 Views

Hello intel oneapi devcloud team

 

I have a question about file path while using jupyterlab as below description and picture:

 

In my .cpp file, I need to use the data .in that exist in a file, so I define something as a path (for example:  #define DATA_DIR "C:/Users/user/Desktop/TRYONECPP/data/bm1"). It can run when i use visual studio in my local system.

Then, I wanna run it on jupyter cause I have to try cpu, gup and fpga, So I change the path define to #define DATA_DIR "TRYONECPP20220705/data/bm1". It will run fail when I perform it by qsub as below

 

WeiChih_2-1657063755287.png

 

Do you know how to write the correct path if i want to read data from u136316@s001-n012:~/TRYONECPP20220705/data/bm1.

 

 

WeiChih_3-1657063863852.png

 

file path and cpp code as below. How to modify the path in my .cpp code?

WeiChih_0-1657063153481.png

data in the bm1 file

WeiChih_1-1657063393146.png

 

 

 

 

0 Kudos
2 Replies
hareesh
Employee
336 Views

Hi Wei-Chih,

did you try giving entire path from root directory.

can you please share more details of code how you are calling that file and complete path of TRYONECPP20220705.



thank you.


Wei-Chih
Novice
322 Views
0 Kudos
Reply