Thanks, Paul! I did try using the flags, but it still failed with the same error.
The output of module list is as follows:
1) craype-x86-rome
4) craype/2.7.15
7) craype-network-ofi
10) cray-pals/1.1.6
13) cray-pmi/6.1.1
2) perftools-base/22.04.0
5) cray-dsmml/0.2.2
8) cray-mpich/8.1.15
11) PrgEnv-gnu/8.3.3
14) cuda/11.6.2
3) gcc/11.2.0
6) libfabric/1.11.0.4.125
9) cray-libsci/
21.08.1.212) openmpi/4.1.5-gcc11
15) craype-accel-nvidia80
I navigated to the specific part of the configure file, throwing an error. It was unable to locate the cuda library -lcuda. I found those files under the stubs directory within the cuda library directory. Adding this to LD_LIBRARY_PATH did the trick. I was able to compile & install upcxx, thanks once again for the support.
Regards, Adi