Forum Discussion
Hi DDIAKITE, thanks for your reply. Unfortunately, "tools_setup" is not found when I log in interactively. (See transcript below.) Can you please give me the full path to that command, so that I can try forcing a run of that command?
Thank you!
Transcript:
u40073@login-2:~$ qsub -q batch@v-qsvr-fpga -I -l nodes=1:darby:ppn=2 -d .
qsub: waiting for job 7103.v-qsvr-fpga.aidevcloud to start
qsub: job 7103.v-qsvr-fpga.aidevcloud ready
########################################################################
# Date: Fri Jul 17 09:55:47 PDT 2020
# Job ID: 7103.v-qsvr-fpga.aidevcloud
# User: u40073
# Resources: neednodes=1:darby:ppn=2,nodes=1:darby:ppn=2,walltime=06:00:00
########################################################################
u40073@s005-n008:~$ tools_setup -t S10DS
-bash: tools_setup: command not found
Hi JSchr20,
Try those command:
source /data/intel_fpga/devcloudLoginToolSetup.sh
tools_setup -t S10DS
If it works then you should add the following in your bashrc:
if [ -f /data/intel_fpga/devcloudLoginToolSetup.sh ]; then
source /data/intel_fpga/devcloudLoginToolSetup.sh
fi
And after that "tool_setup" will be found anytime without sourcing devcloudLoginToolSetup.sh manually.
Regards!
- JSchr205 years ago
Occasional Contributor
Thank you! That has improved matters, but my code still does not run, possibly due to the gcc version I'm using in my host code (I need access to gmp). I will look more into that and perhaps I can get something sorted out. I at least have tools_setup running now.
- AnilErinch_A_Intel5 years ago
Frequent Contributor
Hi
Please let us know which gcc version you are using , and whether you are able to run the code now.
If not please let us know the error message which you are seeing while trying to compile/execute the code.
Thanks and Regards
Anil
- JSchr205 years ago
Occasional Contributor
Hi Anil,
I am still unable to run, but I'm failing on a 'higher level' now, I think.
Sorry about my slight misstatement earlier: I am using the default gcc in /usr/bin/gcc, which is version 4.8.5. What I need, though, in addition to that, is gmp. Previously, Intel pointed me to a shared version of that code in
/opt/.intel/inteloneapi/compiler/2021.1-beta04/linux/lib/oclfpga/linux64/lib/dspba/include
with library in
/jhub/lib
but that version often disappears even on arria10 nodes, so I eventually gave up and compiled my own copy of gmp-6.2.0 in my home directory. Since I last posted, I recompiled gmp-6.2.0 on a darby node, and my host code now appears to run (or at least it gets farther than it did).
I now set up my darby environment, upon interactive login, according the the advice above:
source /data/intel_fpga/devcloudLoginToolSetup.sh
tools_setup -t S10DSHowever, now I am seeing the following error when I try to run my host code:
u40073@s005-n008:~/calculator_s10/mult_multi_limb_wide$ bin_monster_1_4_8/host -n=10
N = 10, Nunit = 10
Initializing OpenCL
ERROR: CL_DEVICE_NOT_FOUND
Location: ../common/src/AOCLUtils/opencl.cpp:356
Query for number of devices failedwhere ../common is a soft link to
/glob/development-tools/versions/fpgasupportstack/d5005/2.0.1/inteldevstack/hld/examples_aoc/common/
It appears I'm unable to see the actual S10 card. Can you suggest my next step?
Thank you!
Jenn